From dd230662bf2c15e5feb4bae24b284de78ef4dff4 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 14:45:26 +0200 Subject: [PATCH 01/74] test: record automatic naming performance baseline --- REUSE.toml | 1 + .../tests/signal_performance.py | 899 + performance/README.md | 37 + performance/baselines/existing-feature.json | 125591 +++++++++++++++ performance/baselines/existing-feature.md | 29 + 5 files changed, 126557 insertions(+) create mode 100644 netbox_interface_name_rules/tests/signal_performance.py create mode 100644 performance/README.md create mode 100644 performance/baselines/existing-feature.json create mode 100644 performance/baselines/existing-feature.md diff --git a/REUSE.toml b/REUSE.toml index 4772834..f48bb26 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -24,6 +24,7 @@ path = [ "README.md", "CONTRIBUTING.md", "docs/**", + "performance/**", ] SPDX-FileCopyrightText = "2025 Marcin Zieba " SPDX-License-Identifier = "Apache-2.0" diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py new file mode 100644 index 0000000..35af353 --- /dev/null +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -0,0 +1,899 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Record the automatic naming signal-path performance baseline. + +This module is intentionally outside Django's default ``test*.py`` discovery. Run it by its full +module label when a before/after implementation comparison is needed. The runner uses the real +NetBox models, PostgreSQL connection, Django signals, and committed callbacks. +""" + +import contextlib +import gc +import hashlib +import json +import math +import os +import platform +import re +import statistics +import subprocess +import time +from collections import Counter +from collections.abc import Callable +from dataclasses import dataclass +from datetime import UTC, datetime +from pathlib import Path +from typing import Any + +import django +from dcim.choices import InterfaceTypeChoices +from dcim.models import ( + Device, + DeviceRole, + DeviceType, + Interface, + InterfaceTemplate, + Manufacturer, + Module, + ModuleBay, + ModuleBayTemplate, + ModuleType, + Site, + VirtualChassis, +) +from django.conf import settings +from django.db import DatabaseError, connection, transaction +from django.test import TestCase + +from netbox_interface_name_rules import __version__ as plugin_version +from netbox_interface_name_rules.choices import BreakoutModeChoices +from netbox_interface_name_rules.engine import supports_channelization, supports_vc_position_token +from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.signals import _apply_rules_deferred, _apply_rules_for_device_deferred + +_OUTPUT_VARIABLE = "INTERFACE_FAMILY_PERFORMANCE_OUTPUT" +_SAMPLE_VARIABLE = "INTERFACE_FAMILY_PERFORMANCE_SAMPLES" +_WARMUP_VARIABLE = "INTERFACE_FAMILY_PERFORMANCE_WARMUPS" +_PLUGIN_REVISION_VARIABLE = "INTERFACE_FAMILY_PERFORMANCE_SOURCE_REVISION" +_NETBOX_REVISION_VARIABLE = "NETBOX_PERFORMANCE_SOURCE_REVISION" +_DEFAULT_SAMPLES = 15 +_DEFAULT_WARMUPS = 3 + +_CHANNEL_TYPE = getattr(InterfaceTypeChoices, "TYPE_CHANNEL", "channel") +_PARENT_TYPE = InterfaceTypeChoices.TYPE_40GE_QSFP_PLUS +_PLAIN_TYPE = InterfaceTypeChoices.TYPE_10GE_SFP_PLUS + +_SPACE_RE = re.compile(r"\s+") +_STRING_LITERAL_RE = re.compile(r"(?i)(?:e|u&)?'(?:''|[^'])*'") +_DOLLAR_LITERAL_RE = re.compile(r"\$(?P[A-Za-z_][A-Za-z_0-9]*)?\$.*?\$(?P=tag)\$", re.DOTALL) +_NUMBER_RE = re.compile(r"(?[\[{].*)", re.DOTALL) + +_PLAN_TIME_KEYS = { + "Actual Startup Time", + "Actual Total Time", + "Execution Time", + "Planning Time", +} +_PLAN_PRIVATE_KEYS = {"Query Parameters", "Query Text"} +_PLAN_EXPRESSION_KEYS = { + "Conflict Filter", + "Filter", + "Function Call", + "Hash Cond", + "Hash Key", + "Index Cond", + "Join Filter", + "Merge Cond", + "Output", + "Recheck Cond", + "Sort Key", + "TID Cond", +} +_WORK_COUNTER_KEYS = ( + "Shared Hit Blocks", + "Shared Read Blocks", + "Shared Dirtied Blocks", + "Shared Written Blocks", + "Local Hit Blocks", + "Local Read Blocks", + "Local Dirtied Blocks", + "Local Written Blocks", + "Temp Read Blocks", + "Temp Written Blocks", + "WAL Records", + "WAL FPI", + "WAL Bytes", +) +_PLANNER_SETTINGS = ( + "block_size", + "cpu_index_tuple_cost", + "cpu_operator_cost", + "cpu_tuple_cost", + "default_statistics_target", + "effective_cache_size", + "effective_io_concurrency", + "jit", + "max_parallel_workers_per_gather", + "plan_cache_mode", + "random_page_cost", + "seq_page_cost", + "shared_buffers", + "work_mem", +) +_PROFILE_MODELS = ( + Device, + DeviceRole, + DeviceType, + Interface, + InterfaceTemplate, + Manufacturer, + Module, + ModuleBay, + ModuleBayTemplate, + ModuleType, + Site, + VirtualChassis, + InterfaceNameRule, +) + + +@dataclass(frozen=True) +class _PreparedScenario: + """One prepared fixture and the operation measured against it.""" + + operation: Callable[[], None] + verify: Callable[[], dict[str, Any]] + fixture: dict[str, int] + work_units: int + + +@dataclass(frozen=True) +class _Scenario: + """A stable scenario definition used by both measurement passes.""" + + name: str + description: str + layer: str + prepare: Callable[[], _PreparedScenario] + + +def _positive_integer_from_environment(name: str, default: int, *, allow_zero: bool = False) -> int: + """Read an integer run setting and reject values that cannot produce useful evidence.""" + raw = os.environ.get(name, str(default)) + try: + value = int(raw) + except ValueError as error: + raise AssertionError(f"{name} must be an integer, got {raw!r}.") from error + minimum = 0 if allow_zero else 1 + if value < minimum: + raise AssertionError(f"{name} must be at least {minimum}, got {value}.") + return value + + +def _output_path() -> Path: + """Return the requested artifact path or fail before the expensive measurements start.""" + raw = os.environ.get(_OUTPUT_VARIABLE) + if not raw: + raise AssertionError(f"Set {_OUTPUT_VARIABLE} to an absolute .json artifact path.") + output = Path(raw) + if not output.is_absolute() or output.suffix != ".json": + raise AssertionError(f"{_OUTPUT_VARIABLE} must be an absolute path ending in .json.") + output.parent.mkdir(parents=True, exist_ok=True) + return output + + +def _normalize_sql(sql: str) -> str: + """Remove values and formatting differences from a SQL statement.""" + normalized = _DOLLAR_LITERAL_RE.sub("'?'", str(sql)) + normalized = _STRING_LITERAL_RE.sub("'?'", normalized) + normalized = _SAVEPOINT_RE.sub("s?_x?", normalized) + normalized = _DJANGO_CURSOR_RE.sub(r"_django_curs_?_\1_?", normalized) + normalized = _NUMBER_RE.sub("?", normalized) + return _SPACE_RE.sub(" ", normalized).strip() + + +def _fingerprint(value: str) -> str: + """Return a stable identifier for normalized evidence.""" + return hashlib.sha256(value.encode()).hexdigest() + + +def _percentile(samples: list[int], percentile: float) -> float: + """Return an interpolated percentile without a benchmark dependency.""" + ordered = sorted(samples) + if len(ordered) == 1: + return float(ordered[0]) + rank = (len(ordered) - 1) * percentile + lower = math.floor(rank) + upper = math.ceil(rank) + if lower == upper: + return float(ordered[lower]) + fraction = rank - lower + return ordered[lower] + (ordered[upper] - ordered[lower]) * fraction + + +def _summary(samples: list[int]) -> dict[str, Any]: + """Return raw nanoseconds plus median and p95 values in milliseconds.""" + return { + "samples_ns": samples, + "median_ms": statistics.median(samples) / 1_000_000, + "p95_ms": _percentile(samples, 0.95) / 1_000_000, + } + + +def _optional_summary(samples: list[int]) -> dict[str, Any]: + """Summarize optional warm-up samples while allowing a zero-warm-up smoke run.""" + if not samples: + return {"samples_ns": []} + return _summary(samples) + + +def _sanitize_expression(value: Any) -> Any: + """Remove literal values from one plan expression or expression list.""" + if isinstance(value, str): + return _normalize_sql(value) + if isinstance(value, list): + return [_sanitize_expression(child) for child in value] + return value + + +def _sanitize_plan(value: Any) -> Any: + """Remove query values and node timing from an auto_explain document.""" + if isinstance(value, dict): + sanitized = {} + for key, child in value.items(): + if key in _PLAN_PRIVATE_KEYS or key in _PLAN_TIME_KEYS or key.endswith(" I/O Time"): + continue + if key in _PLAN_EXPRESSION_KEYS or key.endswith((" Cond", " Filter", " Key")): + sanitized[key] = _sanitize_expression(child) + else: + sanitized[key] = _sanitize_plan(child) + return sanitized + if isinstance(value, list): + return [_sanitize_plan(child) for child in value] + return value + + +def _plan_envelope(document: Any) -> dict[str, Any]: + """Return the auto_explain envelope from either accepted JSON shape.""" + if isinstance(document, list) and len(document) == 1 and isinstance(document[0], dict): + return document[0] + if isinstance(document, dict): + return document + raise AssertionError(f"auto_explain returned an unexpected JSON document: {type(document).__name__}.") + + +def _parse_notice(message: str) -> tuple[str, dict[str, Any]] | None: + """Parse one JSON auto_explain notice and discard all original query values.""" + match = _AUTO_EXPLAIN_PLAN_RE.search(message) + if not match: + return None + envelope = _plan_envelope(json.loads(match.group("document"))) + normalized_sql = _normalize_sql(str(envelope.get("Query Text", "unknown statement"))) + return normalized_sql, _sanitize_plan(envelope) + + +def _plan_nodes(plan: dict[str, Any]) -> list[dict[str, Any]]: + """Return every plan node from a sanitized EXPLAIN envelope.""" + root = plan.get("Plan") + if not isinstance(root, dict): + return [] + pending = [root] + nodes = [] + while pending: + node = pending.pop() + nodes.append(node) + pending.extend(child for child in node.get("Plans", ()) if isinstance(child, dict)) + return nodes + + +def _root_work(plan: dict[str, Any]) -> dict[str, float | int]: + """Extract additive work measures from the root plan node.""" + root = plan.get("Plan", {}) + loops = int(root.get("Actual Loops", 0) or 0) + rows = int(root.get("Actual Rows", 0) or 0) + work: dict[str, float | int] = { + "planner_total_cost": float(root.get("Total Cost", 0) or 0), + "planner_rows": int(root.get("Plan Rows", 0) or 0), + "actual_loops": loops, + "actual_rows_times_loops": rows * loops, + } + for key in _WORK_COUNTER_KEYS: + work[key.lower().replace(" ", "_")] = int(root.get(key, 0) or 0) + return work + + +def _add_work(total: dict[str, float | int], work: dict[str, float | int]) -> None: + """Add one plan execution's work to an aggregate.""" + for key, value in work.items(): + total[key] = total.get(key, 0) + value + + +def _group_plans(notices: list[str]) -> list[dict[str, Any]]: + """Group identical sanitized plans and retain one full representative plan.""" + grouped: dict[str, dict[str, Any]] = {} + for message in notices: + parsed = _parse_notice(message) + if parsed is None: + continue + normalized_sql, plan = parsed + serialized = json.dumps(plan, sort_keys=True, separators=(",", ":")) + identity = _fingerprint(f"{normalized_sql}\0{serialized}") + entry = grouped.setdefault( + identity, + { + "fingerprint": identity, + "statement_fingerprint": _fingerprint(normalized_sql), + "normalized_sql": normalized_sql, + "calls": 0, + "aggregate": {}, + "indexes": set(), + "node_types": Counter(), + "plan": plan, + }, + ) + entry["calls"] += 1 + _add_work(entry["aggregate"], _root_work(plan)) + for node in _plan_nodes(plan): + if index_name := node.get("Index Name"): + entry["indexes"].add(index_name) + if node_type := node.get("Node Type"): + entry["node_types"][node_type] += 1 + plans = [] + for entry in grouped.values(): + entry["indexes"] = sorted(entry["indexes"]) + entry["node_types"] = dict(sorted(entry["node_types"].items())) + plans.append(entry) + return sorted(plans, key=lambda item: item["fingerprint"]) + + +class _StatementRecorder: + """Django execute wrapper that records statement shapes without parameter values.""" + + def __init__(self) -> None: + self._statements: dict[str, dict[str, Any]] = {} + + def __call__(self, execute, sql, params, many, context): + """Record one completed statement and return its normal result.""" + result = execute(sql, params, many, context) + normalized = _normalize_sql(str(sql)) + identity = _fingerprint(normalized) + entry = self._statements.setdefault( + identity, + { + "fingerprint": identity, + "normalized_sql": normalized, + "calls": 0, + "rows_affected": 0, + }, + ) + entry["calls"] += 1 + row_count = context["cursor"].rowcount + if isinstance(row_count, int) and row_count > 0: + entry["rows_affected"] += row_count + return result + + def result(self) -> list[dict[str, Any]]: + """Return statements in stable fingerprint order.""" + return sorted(self._statements.values(), key=lambda item: item["fingerprint"]) + + +@contextlib.contextmanager +def _auto_explain_notices(): + """Capture JSON plans from the active PostgreSQL session or fail explicitly.""" + if connection.vendor != "postgresql": + raise AssertionError(f"Performance profiling requires PostgreSQL, got {connection.vendor!r}.") + connection.ensure_connection() + raw_connection = connection.connection + if not hasattr(raw_connection, "add_notice_handler"): + raise AssertionError("Performance profiling requires psycopg 3 notice handlers.") + + notices: list[str] = [] + + def handle_notice(diagnostic) -> None: + notices.append(str(diagnostic.message_primary)) + + configured = False + raw_connection.add_notice_handler(handle_notice) + try: + try: + with transaction.atomic(), connection.cursor() as cursor: + cursor.execute("LOAD 'auto_explain'") + cursor.execute("SET client_min_messages = notice") + cursor.execute("SET auto_explain.log_min_duration = 0") + cursor.execute("SET auto_explain.log_analyze = on") + cursor.execute("SET auto_explain.log_timing = off") + cursor.execute("SET auto_explain.log_buffers = on") + cursor.execute("SET auto_explain.log_wal = on") + cursor.execute("SET auto_explain.log_nested_statements = on") + cursor.execute("SET auto_explain.log_triggers = on") + cursor.execute("SET auto_explain.log_verbose = off") + cursor.execute("SET auto_explain.log_settings = off") + cursor.execute("SET auto_explain.log_format = json") + cursor.execute("SET auto_explain.log_level = notice") + cursor.execute("SET auto_explain.log_parameter_max_length = 0") + cursor.execute("SET auto_explain.sample_rate = 1") + except DatabaseError as error: + raise AssertionError("PostgreSQL auto_explain profiling is unavailable.") from error + configured = True + yield notices + finally: + if configured: + with connection.cursor() as cursor: + cursor.execute("SET auto_explain.log_min_duration = -1") + raw_connection.remove_notice_handler(handle_notice) + + +def _git_revision(path: Path) -> str | None: + """Return the source revision for a checkout, if the checkout metadata is present.""" + result = subprocess.run( + ["git", "-C", str(path), "rev-parse", "HEAD"], + check=False, + capture_output=True, + text=True, + ) + return result.stdout.strip() if result.returncode == 0 else None + + +def _cpu_model() -> str: + """Return a stable processor description without recording the host identity.""" + cpuinfo = Path("/proc/cpuinfo") + if cpuinfo.exists(): + for line in cpuinfo.read_text().splitlines(): + if line.lower().startswith("model name"): + return line.partition(":")[2].strip() + return platform.processor() or "unknown" + + +def _planner_environment() -> dict[str, str]: + """Read the PostgreSQL revision and planner settings used by the run.""" + with connection.cursor() as cursor: + cursor.execute("SHOW server_version") + server_version = cursor.fetchone()[0] + cursor.execute("SHOW server_version_num") + server_version_num = cursor.fetchone()[0] + planner = {} + for setting in _PLANNER_SETTINGS: + cursor.execute(f"SHOW {setting}") # noqa: S608 - names come only from the fixed tuple above + planner[setting] = cursor.fetchone()[0] + return { + "server_version": server_version, + "server_version_num": server_version_num, + "planner_settings": planner, + } + + +def _source_environment() -> dict[str, Any]: + """Return source and machine revisions without an environment-specific host name.""" + plugin_root = Path(__file__).resolve().parents[2] + plugin_revision = os.environ.get(_PLUGIN_REVISION_VARIABLE) or _git_revision(plugin_root) + netbox_revision = os.environ.get(_NETBOX_REVISION_VARIABLE) + if not netbox_revision: + netbox_revision = _git_revision(Path(settings.BASE_DIR).resolve().parent) + if not plugin_revision: + raise AssertionError(f"Set {_PLUGIN_REVISION_VARIABLE} when the plugin Git checkout is not readable.") + if not netbox_revision: + raise AssertionError(f"Set {_NETBOX_REVISION_VARIABLE} when NetBox does not run from a Git checkout.") + return { + "plugin_revision": plugin_revision, + "plugin_version": plugin_version, + "netbox_revision": netbox_revision, + "netbox_version": settings.RELEASE.full_version, + "django_version": django.get_version(), + "python_implementation": platform.python_implementation(), + "python_version": platform.python_version(), + "operating_system": platform.system(), + "operating_system_release": platform.release(), + "machine_architecture": platform.machine(), + "cpu_model": _cpu_model(), + } + + +def _work_totals(statements: list[dict[str, Any]], plans: list[dict[str, Any]], work_units: int) -> dict[str, Any]: + """Summarize database work and derive scale-normalized values.""" + totals: dict[str, float | int] = {"statement_calls": sum(item["calls"] for item in statements)} + totals["planned_statement_calls"] = sum(item["calls"] for item in plans) + for plan in plans: + _add_work(totals, plan["aggregate"]) + return { + **totals, + "work_units": work_units, + "statement_calls_per_work_unit": totals["statement_calls"] / work_units, + "planner_total_cost_per_work_unit": totals.get("planner_total_cost", 0) / work_units, + "actual_rows_per_work_unit": totals.get("actual_rows_times_loops", 0) / work_units, + "shared_hit_blocks_per_work_unit": totals.get("shared_hit_blocks", 0) / work_units, + } + + +def _markdown_summary(artifact: dict[str, Any]) -> str: + """Render the comparison fields that a reviewer usually needs first.""" + lines = [ + "# Existing automatic naming performance", + "", + "This file is generated by `netbox_interface_name_rules.tests.signal_performance`.", + "Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits.", + "", + "| Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) |", + "| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: |", + ] + for scenario in artifact["scenarios"]: + totals = scenario["database"]["totals"] + wall = scenario["machine_time"]["wall"] + cpu = scenario["machine_time"]["process_cpu"] + lines.append( + f"| `{scenario['name']}` | {scenario['layer']} | {totals['statement_calls']} | " + f"{totals.get('planner_total_cost', 0):.3f} | {totals.get('shared_hit_blocks', 0)} | " + f"{wall['median_ms']:.3f} | {wall['p95_ms']:.3f} | {cpu['median_ms']:.3f} |" + ) + lines.extend( + [ + "", + f"Plugin revision: `{artifact['environment']['plugin_revision']}`", + "", + f"NetBox revision: `{artifact['environment']['netbox_revision']}`", + "", + f"PostgreSQL: `{artifact['environment']['postgresql']['server_version']}`", + "", + f"Samples per scenario: `{artifact['configuration']['samples']}`", + "", + ] + ) + return "\n".join(lines) + + +class SignalPathPerformanceTest(TestCase): + """Generate retained evidence for the existing automatic naming implementation.""" + + maxDiff = None + + def _build_device(self, prefix: str, bay_positions=(), **device_kwargs): + """Create a device and its module bays.""" + slug = prefix.lower() + manufacturer = Manufacturer.objects.create(name=f"{prefix}Mfg", slug=f"{slug}-mfg") + device_type = DeviceType.objects.create( + manufacturer=manufacturer, + model=f"{prefix}-Device", + slug=f"{slug}-device", + ) + for position in bay_positions: + ModuleBayTemplate.objects.create(device_type=device_type, name=f"Bay {position}", position=str(position)) + role = DeviceRole.objects.create(name=f"{prefix}Role", slug=f"{slug}-role") + site = Site.objects.create(name=f"{prefix}Site", slug=f"{slug}-site") + device = Device.objects.create( + name=f"{slug}-device", + device_type=device_type, + role=role, + site=site, + **device_kwargs, + ) + return manufacturer, device + + @staticmethod + def _plain_module_type(manufacturer: Manufacturer, model: str, name: str = "{module}") -> ModuleType: + """Create one module type with one plain interface template.""" + module_type = ModuleType.objects.create(manufacturer=manufacturer, model=model, part_number=model) + InterfaceTemplate.objects.create(module_type=module_type, name=name, type=_PLAIN_TYPE) + return module_type + + @staticmethod + def _channelized_module_type(manufacturer: Manufacturer, model: str) -> ModuleType: + """Create one native parent plus four channel interface templates.""" + module_type = ModuleType.objects.create(manufacturer=manufacturer, model=model, part_number=model) + parent = InterfaceTemplate.objects.create( + module_type=module_type, + name="{module}", + type=_PARENT_TYPE, + channels=4, + ) + for channel_id in range(1, 5): + InterfaceTemplate.objects.create( + module_type=module_type, + name=f"{{module}}:{channel_id}", + type=_CHANNEL_TYPE, + parent=parent, + channel_id=channel_id, + ) + return module_type + + @staticmethod + def _fixture(module_type: ModuleType, device: Device) -> dict[str, int]: + """Record the exact scenario sizes before the measured operation.""" + return { + "devices": 1, + "module_bays": ModuleBay.objects.filter(device=device).count(), + "modules_before": Module.objects.filter(device=device).count(), + "interfaces_before": Interface.objects.filter(device=device).count(), + "interface_templates": InterfaceTemplate.objects.filter(module_type=module_type).count(), + "enabled_rules": InterfaceNameRule.objects.filter(enabled=True).count(), + } + + def _module_operation(self, device, module_type, direct, expected_names) -> _PreparedScenario: + """Prepare either a complete install path or its deferred callback only.""" + bay = ModuleBay.objects.get(device=device, position="3") + holder: dict[str, Module] = {} + if direct: + holder["module"] = Module.objects.create(device=device, module_bay=bay, module_type=module_type) + + def operation(): + with self.captureOnCommitCallbacks(execute=True): + _apply_rules_deferred(holder["module"].pk, bay.pk) + + else: + + def operation(): + with self.captureOnCommitCallbacks(execute=True): + holder["module"] = Module.objects.create( + device=device, + module_bay=bay, + module_type=module_type, + ) + + def verify(): + names = sorted(Interface.objects.filter(module=holder["module"]).values_list("name", flat=True)) + self.assertEqual(names, expected_names) + return {"interface_names": names, "interfaces_after": len(names)} + + return _PreparedScenario( + operation=operation, + verify=verify, + fixture=self._fixture(module_type, device), + work_units=len(expected_names), + ) + + def _prepare_module(self, prefix: str, kind: str, direct: bool) -> _PreparedScenario: + """Build one module-install scenario.""" + manufacturer, device = self._build_device(prefix, ("3",)) + if kind in {"existing_family", "reconciliation"}: + module_type = self._channelized_module_type(manufacturer, f"{prefix}-Module") + else: + module_type = self._plain_module_type(manufacturer, f"{prefix}-Module") + + if kind == "no_matching_rule": + other_type = ModuleType.objects.create( + manufacturer=manufacturer, + model=f"{prefix}-Other", + part_number=f"{prefix}-Other", + ) + InterfaceNameRule.objects.create(module_type=other_type, name_template="unused-{bay_position}") + expected = ["3"] + elif kind == "plain_rename": + InterfaceNameRule.objects.create(module_type=module_type, name_template="et-0/0/{bay_position}") + expected = ["et-0/0/3"] + elif kind == "structural_creation": + InterfaceNameRule.objects.create( + module_type=module_type, + name_template="xe-0/0/{bay_position}:{channel}", + parent_name_template="et-0/0/{bay_position}", + breakout_mode=BreakoutModeChoices.CHANNELIZED, + channel_count=4, + channel_start=0, + ) + expected = ["et-0/0/3", "xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:2", "xe-0/0/3:3"] + elif kind == "existing_family": + InterfaceNameRule.objects.create(module_type=module_type, name_template="et-0/0/{bay_position}") + expected = ["et-0/0/3", "et-0/0/3:1", "et-0/0/3:2", "et-0/0/3:3", "et-0/0/3:4"] + elif kind == "reconciliation": + InterfaceNameRule.objects.create( + module_type=module_type, + name_template="{base}:{channel}", + parent_name_template="et-0/0/{bay_position}", + breakout_mode=BreakoutModeChoices.CHANNELIZED, + channel_count=4, + channel_start=1, + ) + expected = ["3:1", "3:2", "3:3", "3:4", "et-0/0/3"] + else: + raise AssertionError(f"Unknown module scenario {kind!r}.") + return self._module_operation(device, module_type, direct, expected) + + def _prepare_vc(self, prefix: str, module_count: int, direct: bool) -> _PreparedScenario: + """Build a VC reapply scenario with one or eight installed modules.""" + virtual_chassis = VirtualChassis.objects.create(name=f"{prefix}-VC") + manufacturer, device = self._build_device( + prefix, + tuple(str(position) for position in range(1, module_count + 1)), + virtual_chassis=virtual_chassis, + vc_position=1, + ) + module_type = self._plain_module_type( + manufacturer, + f"{prefix}-Module", + name="xe-{vc_position:0}/0/{module}", + ) + with self.captureOnCommitCallbacks(execute=True): + for position in range(1, module_count + 1): + bay = ModuleBay.objects.get(device=device, position=str(position)) + Module.objects.create(device=device, module_bay=bay, module_type=module_type) + InterfaceNameRule.objects.create( + module_type=module_type, + name_template="et-{vc_position}/0/{bay_position}", + ) + + if direct: + + def operation(): + Device.objects.filter(pk=device.pk).update(vc_position=2) + with self.captureOnCommitCallbacks(execute=True): + _apply_rules_for_device_deferred(device.pk) + + else: + + def operation(): + device.vc_position = 2 + with self.captureOnCommitCallbacks(execute=True): + device.save() + + expected = [f"et-2/0/{position}" for position in range(1, module_count + 1)] + + def verify(): + names = sorted(Interface.objects.filter(device=device).values_list("name", flat=True)) + self.assertEqual(names, expected) + return {"interface_names": names, "interfaces_after": len(names)} + + return _PreparedScenario( + operation=operation, + verify=verify, + fixture=self._fixture(module_type, device), + work_units=module_count, + ) + + def _scenarios(self) -> list[_Scenario]: + """Return the stable scenario matrix in report order.""" + scenarios = [] + module_kinds = ( + ("no_matching_rule", "No matching rule"), + ("plain_rename", "Plain interface rename"), + ("structural_creation", "Four-channel structural creation"), + ("existing_family", "Existing parent plus four channels rename"), + ("reconciliation", "Deferred channel reconciliation"), + ) + for kind, description in module_kinds: + for direct in (False, True): + layer = "direct_callback" if direct else "complete_model_save" + name = f"module.{layer}.{kind}" + prefix = "Perf" + _fingerprint(name)[:8] + scenarios.append( + _Scenario( + name=name, + description=description, + layer=layer, + prepare=lambda prefix=prefix, kind=kind, direct=direct: self._prepare_module( + prefix, kind, direct + ), + ) + ) + for module_count in (1, 8): + for direct in (False, True): + layer = "direct_callback" if direct else "complete_model_save" + name = f"vc.{layer}.reapply_{module_count}" + prefix = "Perf" + _fingerprint(name)[:8] + scenarios.append( + _Scenario( + name=name, + description=f"Virtual chassis reapply across {module_count} module(s)", + layer=layer, + prepare=lambda prefix=prefix, module_count=module_count, direct=direct: self._prepare_vc( + prefix, module_count, direct + ), + ) + ) + return scenarios + + @staticmethod + def _analyze_tables() -> None: + """Refresh planner statistics after each fixture is prepared.""" + tables = sorted({model._meta.db_table for model in _PROFILE_MODELS}) + with connection.cursor() as cursor: + for table in tables: + cursor.execute(f"ANALYZE {connection.ops.quote_name(table)}") + + def _profile_scenario(self, scenario: _Scenario) -> dict[str, Any]: + """Record SQL statements and PostgreSQL work for one operation.""" + savepoint = transaction.savepoint() + try: + prepared = scenario.prepare() + self._analyze_tables() + recorder = _StatementRecorder() + with _auto_explain_notices() as notices, connection.execute_wrapper(recorder): + prepared.operation() + semantic = prepared.verify() + statements = recorder.result() + plans = _group_plans(notices) + if not statements: + self.fail(f"{scenario.name} did not execute any recorded SQL statements.") + if not plans: + self.fail(f"{scenario.name} did not produce any auto_explain plans.") + return { + "fixture": prepared.fixture, + "semantic_result": semantic, + "database": { + "statements": statements, + "plans": plans, + "totals": _work_totals(statements, plans, prepared.work_units), + }, + } + finally: + transaction.savepoint_rollback(savepoint) + + def _time_scenario(self, scenario: _Scenario, samples: int, warmups: int) -> dict[str, Any]: + """Measure the uninstrumented operation with fresh fixtures for every sample.""" + warmup_wall_samples = [] + warmup_cpu_samples = [] + wall_samples = [] + cpu_samples = [] + for sample_index in range(warmups + samples): + savepoint = transaction.savepoint() + try: + prepared = scenario.prepare() + self._analyze_tables() + gc_enabled = gc.isenabled() + if gc_enabled: + gc.disable() + try: + wall_start = time.perf_counter_ns() + cpu_start = time.process_time_ns() + prepared.operation() + cpu_elapsed = time.process_time_ns() - cpu_start + wall_elapsed = time.perf_counter_ns() - wall_start + finally: + if gc_enabled: + gc.enable() + prepared.verify() + if sample_index < warmups: + warmup_wall_samples.append(wall_elapsed) + warmup_cpu_samples.append(cpu_elapsed) + else: + wall_samples.append(wall_elapsed) + cpu_samples.append(cpu_elapsed) + finally: + transaction.savepoint_rollback(savepoint) + return { + "warmup": { + "wall": _optional_summary(warmup_wall_samples), + "process_cpu": _optional_summary(warmup_cpu_samples), + }, + "wall": _summary(wall_samples), + "process_cpu": _summary(cpu_samples), + } + + def test_record_existing_signal_path_performance(self): + """Write the retained before-refactor database and machine-time evidence.""" + output = _output_path() + samples = _positive_integer_from_environment(_SAMPLE_VARIABLE, _DEFAULT_SAMPLES) + warmups = _positive_integer_from_environment(_WARMUP_VARIABLE, _DEFAULT_WARMUPS, allow_zero=True) + self.assertTrue(supports_channelization(), "The baseline requires NetBox channelization support.") + self.assertTrue(supports_vc_position_token(), "The baseline requires NetBox VC position token support.") + + scenario_results = [] + for scenario in self._scenarios(): + profiled = self._profile_scenario(scenario) + scenario_results.append( + { + "name": scenario.name, + "description": scenario.description, + "layer": scenario.layer, + **profiled, + "machine_time": self._time_scenario(scenario, samples, warmups), + } + ) + + artifact = { + "schema_version": 1, + "baseline_kind": "existing_implementation", + "generated_at": datetime.now(UTC).isoformat(), + "configuration": { + "samples": samples, + "warmups": warmups, + "postgresql_node_timing": False, + "machine_time_ci_gate": False, + }, + "environment": { + **_source_environment(), + "postgresql": _planner_environment(), + }, + "scenarios": scenario_results, + } + output.write_text(json.dumps(artifact, indent=2, sort_keys=True) + "\n") + output.with_suffix(".md").write_text(_markdown_summary(artifact)) diff --git a/performance/README.md b/performance/README.md new file mode 100644 index 0000000..d4b4c24 --- /dev/null +++ b/performance/README.md @@ -0,0 +1,37 @@ +# Automatic naming performance evidence + +The performance runner records the current implementation before an interface-family refactor. It +uses real NetBox models, signals, committed callbacks, and PostgreSQL. It is not part of default test +discovery or CI. + +Run it from a fixed NetBox `feature` source checkout that supports channelized interfaces. Use the +same NetBox revision, PostgreSQL version, planner settings, sample counts, and hardware for the +after run. NetBox `main` does not contain the channelization feature while its development takes +place on `feature`. + +```bash +export PYTHONPATH="$PWD/.devcontainer/config" +export TEST_DB_NAME="inr_performance_74" +export INTERFACE_FAMILY_PERFORMANCE_SOURCE_REVISION="$(git rev-parse HEAD)" +export NETBOX_PERFORMANCE_SOURCE_REVISION="$(git -C /path/to/netbox rev-parse HEAD)" +export INTERFACE_FAMILY_PERFORMANCE_OUTPUT="$PWD/performance/baselines/existing-feature.json" +export INTERFACE_FAMILY_PERFORMANCE_SAMPLES="15" +export INTERFACE_FAMILY_PERFORMANCE_WARMUPS="3" + +cd /path/to/netbox/netbox +python manage.py test \ + netbox_interface_name_rules.tests.signal_performance \ + --settings=isolated_test_settings \ + --verbosity=2 \ + --noinput +``` + +The JSON artifact contains normalized statements, PostgreSQL plans, rows and loops, buffer and WAL +work, fixture sizes, planner settings, and raw wall and process CPU samples. The generated Markdown +file contains the main comparison fields. PostgreSQL node timing stays disabled. The runner observes +the statements issued by the operation and does not replay mutating SQL. + +The complete model-save scenarios include NetBox model creation, plugin signal scheduling, and the +committed callback. Direct-callback scenarios isolate the deferred callback for diagnosis. Compare +the complete model-save scenarios first when deciding whether the refactor changed production-path +performance. diff --git a/performance/baselines/existing-feature.json b/performance/baselines/existing-feature.json new file mode 100644 index 0000000..144f4d6 --- /dev/null +++ b/performance/baselines/existing-feature.json @@ -0,0 +1,125591 @@ +{ + "baseline_kind": "existing_implementation", + "configuration": { + "machine_time_ci_gate": false, + "postgresql_node_timing": false, + "samples": 15, + "warmups": 3 + }, + "environment": { + "cpu_model": "Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz", + "django_version": "6.1", + "machine_architecture": "x86_64", + "netbox_revision": "d7f79bd50162b2b8a8d07b52348d332bd9404f3c", + "netbox_version": "4.7.0-beta1", + "operating_system": "Linux", + "operating_system_release": "6.12.96+deb13-amd64", + "plugin_revision": "ccadd0bb5b2852ff81f2747769d61746254173e1", + "plugin_version": "1.5.1", + "postgresql": { + "planner_settings": { + "block_size": "8192", + "cpu_index_tuple_cost": "0.005", + "cpu_operator_cost": "0.0025", + "cpu_tuple_cost": "0.01", + "default_statistics_target": "100", + "effective_cache_size": "4GB", + "effective_io_concurrency": "16", + "jit": "on", + "max_parallel_workers_per_gather": "2", + "plan_cache_mode": "auto", + "random_page_cost": "4", + "seq_page_cost": "1", + "shared_buffers": "128MB", + "work_mem": "4MB" + }, + "server_version": "18.3 (Debian 18.3-1.pgdg13+1)", + "server_version_num": "180003" + }, + "python_implementation": "CPython", + "python_version": "3.14.4" + }, + "generated_at": "2026-08-23T12:26:03.664648+00:00", + "scenarios": [ + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.29, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "06206f29a19a7d0a97454136cdb1f673a3e88ccde61e00e8ba6df0e7481174b8", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 340, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 340, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 122, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 114, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 86, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_modulebaytemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_modulebaytemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0810b524418676bab577a04282c826d55b4b0a64faee10dc6f1bec75705668f1", + "indexes": [ + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0b55ea786aa3e924e1a37965073194de2d970f854fb7762f2b4341eee3bab196", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1af2e3ed2389aca1a9be82b187cf2ce490c09f3cc3f849f434ba8addd11e34a0", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.29, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2189a56c4e3982e953c29a677882731ea25be41f8ecfd4b989e791801c4b5cab", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 524, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 516, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 508, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 480, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3e6859865c1d8d0b856c2b95a90dd13dc673672514521bc4b9d97bb4772c5937", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 593, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 593, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "408bdb91fd9d9c0755ed8d0e789baf7d229e0ee9db8ad22cf0536fea356a2144", + "indexes": [ + "dcim_consoleserverport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + }, + { + "aggregate": { + "actual_loops": 13, + "actual_rows_times_loops": 13, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 13, + "planner_total_cost": 150.40999999999997, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 91, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 13, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 13, + "Hash Join": 13, + "Limit": 13, + "Seq Scan": 26 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "48fe47d419bf32d923c66dbfa7bb2d0cad50614f70ff129ec171b1c114d99313", + "indexes": [ + "dcim_coolingintake_device_id_df1c3674" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "504e8318c5865dc37adb5ccafc796b62e32a19be779e12d2ae6a0896c41fc9bd", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1313, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1313, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1305, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1095, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1087, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1059, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "54b4f16cd4a2c416b08ec2913d6824ba1ce8a0924b03c62403b71265d5fb3bcf", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1453, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1453, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1445, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1235, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1199, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintaketemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingintaketemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "67a9f02849d293f05873f91eeb6b326f31ac2879a5c8fa154c9d697a26b06f09", + "indexes": [ + "dcim_consoleporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1157, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1157, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1149, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 939, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 931, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 903, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 39.73, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Hash": 1, + "Hash Join": 1, + "Index Scan": 2, + "Nested Loop": 2, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 1.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "6dffb88a054abbdbb54651c7118f6d871cac76637454977f5d35f15ac219c17f", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.03, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6fd786a4a81615d8593f7554b92cb12753e113c7531beb290596845b51913d06", + "indexes": [ + "dcim_frontporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1187, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1187, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1179, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 969, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 961, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 933, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7114c0059e14fdd8a10d40692bea73b57749b0faef0edbde98e799d23117f8a5", + "indexes": [ + "dcim_consoleserverporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1157, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1157, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1149, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 939, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 931, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 903, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleserverporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.29, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7785a0390809312918e3b9973101097c74971463e000a4c4cdca12d3adb808a1", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 524, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 516, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 508, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 480, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "785d2a61ab4e37cda0e3f74a04dff29dc10bd949bae7d42c30baed955ffb6e3c", + "indexes": [ + "dcim_coolingoutflow_device_id_74dd615f" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingoutflow.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.29, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7ff54ce212f8d86c4142c20e53f8a00c0628328601c944e5791508de8cf44b14", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 524, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 516, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 508, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 480, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 1.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "863df58815c08333f539652ada9c3327bc163cbed55d2ac111736f89bc1a5dd1", + "indexes": [ + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 22, + "shared_hit_blocks": 10, + "shared_read_blocks": 22, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1570, + "wal_fpi": 0, + "wal_records": 22 + }, + "calls": 1, + "fingerprint": "8de0db48ef419b4bcf8c8f5eac26cf17ed752c427c4d02f4bf23f93101d4eef8", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2017, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 99, + "WAL FPI": 0, + "WAL Records": 1 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 22, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 22, + "Shared Written Blocks": 1, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1570, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a06a980f11bc57e3d313826e9bf1bf403a61a8381c35ad240e81f25de3057739", + "indexes": [ + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 12.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 60, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 80, + "planner_total_cost": 397.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ad37ed0db0539ffe3dedf1f47f3b2757e3da665bfffa5e0282742e71cd761f78", + "indexes": [ + "dcim_powerport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_powerport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b3bff66142d5e690009adb7fb318191abc32bf167dc1678957bb1a909acf1c60", + "indexes": [ + "dcim_powerporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1165, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1165, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1157, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 947, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 939, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 911, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_powerporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b40ee2004e1381b1c35c972a38b95ca6d9cdbae03b13eea742cf9749ace2e1ae", + "indexes": [ + "dcim_poweroutlet_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_poweroutlet.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b584fd9ac7f031342296c313d58aca112ecf21f664e7ed558e47200ff16a5446", + "indexes": [ + "dcim_rearporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1187, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1187, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1179, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 969, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 961, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 933, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_rearporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "cae38e5f48c3e564eae905efc63139fcf11f4466d22c83299422b1f50480d278", + "indexes": [ + "dcim_consoleport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.07, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ccf01569668a8722459231c1c83cf9603bc6bf75ead8b7eb77a522d7bd6ebe81", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 117, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 117, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 2, + "Plan Width": 27, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.06, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d72c38cd42007207976ad4c116debf8d189737906f7241415dbaa56577b96d9e", + "indexes": [ + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e14e3d70ecab33031e7797a568bb26051a6d4368ced40c3696c1c56b2d80b7fc", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ef4265b146a5f8f641698a9de34de4077466098debaee0205b7ba6100eafd185", + "indexes": [ + "dcim_poweroutlettemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1311, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1311, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1303, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1093, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1085, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1057, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlettemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_poweroutlettemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "f7cd403f20bd8c0f9ea1faeafd4cd12350bf5dcbf2b654a9e64bbaa14c4e39a5", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 9, + "shared_hit_blocks": 10, + "shared_read_blocks": 9, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 674, + "wal_fpi": 0, + "wal_records": 9 + }, + "calls": 1, + "fingerprint": "f8f93e853960871881f545a2ffff6e4fc141967f936d611af771e51266dee888", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 896, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 896, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 99, + "WAL FPI": 0, + "WAL Records": 1 + } + ], + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 9, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 9, + "Shared Written Blocks": 1, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 674, + "WAL FPI": 0, + "WAL Records": 9 + }, + "Triggers": [] + }, + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "fccf0edb44ae7fcf2cedac244fee4ce00119c2ccb9f7bab91f34054a7e451b01", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 892, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 13, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 13 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 60, + "actual_rows_per_work_unit": 24.0, + "actual_rows_times_loops": 24, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 60, + "planner_rows": 139, + "planner_total_cost": 837.36, + "planner_total_cost_per_work_unit": 837.36, + "shared_dirtied_blocks": 31, + "shared_hit_blocks": 173, + "shared_hit_blocks_per_work_unit": 173.0, + "shared_read_blocks": 33, + "shared_written_blocks": 2, + "statement_calls": 60, + "statement_calls_per_work_unit": 60.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 2402, + "wal_fpi": 0, + "wal_records": 33, + "work_units": 1 + } + }, + "description": "No matching rule", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 96.561495, + "p95_ms": 113.26580919999999, + "samples_ns": [ + 110272117, + 120251091, + 102597692, + 100166685, + 93222788, + 95666790, + 94880010, + 96561495, + 99133995, + 93028420, + 96164233, + 95441354, + 94915683, + 102015236, + 103133662 + ] + }, + "wall": { + "median_ms": 138.677677, + "p95_ms": 157.0459138, + "samples_ns": [ + 155046934, + 161710200, + 143074871, + 143466542, + 132391653, + 132537353, + 138677677, + 137351867, + 141050274, + 131139595, + 134044217, + 131043483, + 135056656, + 146459121, + 144284318 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 103.921608, + "p95_ms": 115.16875590000001, + "samples_ns": [ + 116418439, + 103921608, + 98012044 + ] + }, + "wall": { + "median_ms": 149.182747, + "p95_ms": 163.77704169999998, + "samples_ns": [ + 165398630, + 149182747, + 142027337 + ] + } + } + }, + "name": "module.complete_model_save.no_matching_rule", + "semantic_result": { + "interface_names": [ + "3" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6b8be6c886d06ab4c122b8ee6e3f855e8da9b541608c8ab1395409873082a320", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 1.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.07, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8502c403320213c0a5367e7191a9bf3fccb562f5a9c6eab1d1985333156db61e", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 117, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 117, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 2, + "Plan Width": 27, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 4.07, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8e9cd053c36b2735abee079bc23b514f3cc6233565524f2c338bbabffdfec40a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bd7be6e037fa878d6f4e85283b3afc261ea529529b4b7e7a1c6ac6fd4644384f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 593, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 593, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e615d9ce3938e707ce6129cb888a09a30332aa294561bef6beea1f1ee195b19d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 7, + "actual_rows_per_work_unit": 7.0, + "actual_rows_times_loops": 7, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 7, + "planner_rows": 7, + "planner_total_cost": 15.44, + "planner_total_cost_per_work_unit": 15.44, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_hit_blocks_per_work_unit": 15.0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 7, + "statement_calls_per_work_unit": 7.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0, + "work_units": 1 + } + }, + "description": "No matching rule", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 14.661071, + "p95_ms": 16.4409447, + "samples_ns": [ + 14661071, + 13818250, + 15544934, + 14628494, + 13248391, + 15073425, + 16327419, + 14634632, + 15157939, + 16705838, + 14380405, + 13422493, + 14684754, + 15206452, + 13196150 + ] + }, + "wall": { + "median_ms": 18.348196, + "p95_ms": 20.588929699999998, + "samples_ns": [ + 18214722, + 18089224, + 19857704, + 18348196, + 16671780, + 18910772, + 20273447, + 18248897, + 18576787, + 21325056, + 17919780, + 17417051, + 18430861, + 19146100, + 16875277 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 13.786413, + "p95_ms": 19.8554964, + "samples_ns": [ + 13598683, + 13786413, + 20529839 + ] + }, + "wall": { + "median_ms": 17.64712, + "p95_ms": 23.359251699999998, + "samples_ns": [ + 17647120, + 17373053, + 23993933 + ] + } + } + }, + "name": "module.direct_callback.no_matching_rule", + "semantic_result": { + "interface_names": [ + "3" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "02f9514231e62a5b92ea9bad1d1b19a743d17eb223edbf7df90510cc86fa08f7", + "indexes": [ + "dcim_poweroutlet_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_poweroutlet.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 10.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "07d0b1a461fc73908d3a3d043f0413a7d81c21f904be486ba38426754f802472", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "08fc57972bcb4033aba2dc9cc4049142a50e1ae8c8b36af1d26c751ce5078b71", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "16458f9e97add86666a050c8659de6390c320da2a3a6f9ff39ea5c9d8985e49f", + "indexes": [ + "dcim_powerporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 948, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 912, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_powerporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "16cb0355dd3d9843a350cff777ca1d3b3eccb668b92bb1cac767077c4eca154b", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "195d71ae3baa4349466f68c290f455f85ce261a3394470ba606d669f1c1814b2", + "indexes": [ + "dcim_consoleserverport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1d856463f65485da6728024f3e3861286905c1b195a608c76ad96dcaeb84fe3a", + "indexes": [ + "core_config_created_ef9552_idx" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" ORDER BY \"core_configrevision\".\"created\" DESC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 467, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_configrevision", + "Async Capable": false, + "Disabled": false, + "Index Name": "core_config_created_ef9552_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 160, + "Plan Width": 467, + "Relation Name": "core_configrevision", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 46.55, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "36779d9ccb85180d87fa18b2ceb539ddc06ed4464322a9fbc938eff9a5833525" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 892, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "20d25dc3c3300e330e34e7d551ceb5231f2a05f74bd811f5f82915df1a6ae583", + "indexes": [ + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 21, + "planner_total_cost": 3.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2527b21abb371ea7d8c9c6904a71e8fb79d222fe9cdef52ba0cb0ff1b1697477", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" WHERE \"core_configrevision\".\"active\" LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 21, + "Plan Width": 467, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_configrevision", + "Async Capable": false, + "Disabled": false, + "Filter": "active", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 80, + "Plan Width": 467, + "Relation Name": "core_configrevision", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.6, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4087d301fb9fc54548c18069a19c8651b10741983b7479f5e4ccf366462a4f0b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2a843fe7805b7b63a4b34ca238aec47e40c15719205ab856ff0d352b6efa305f", + "indexes": [ + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "300033ffe0b8e9d864442ef5b912441b8d2e350186c0922b67a2bd957b956c7d", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 2.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "36f9e914f7f3fce527b7487ddbdaf9ee28c98e39cbb9bee50cb38df77190cfc4", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 26.54, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 26, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "41228b73c64588d722573957951cdc87738eb581736de2e9631cf91df094b381", + "indexes": [], + "node_types": { + "Nested Loop": 10, + "Seq Scan": 12, + "Sort": 2 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "42d49c3c74033eaa9de8874f60f6e7ff537fd0524957fdc05fa9175552a30e40", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 19, + "actual_rows_times_loops": 19, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 19, + "planner_total_cost": 219.82999999999993, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 133, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 19, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 19, + "Hash Join": 19, + "Limit": 19, + "Seq Scan": 38 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.19, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "5083710324782a87826b1c5ae73596853248babc5dea02a0d01e9bdef76b7ed0", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "51854455a0841950408a349c01f621f47ce4655c291333b0dcbe8ff92aa09279", + "indexes": [ + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5dcedc295de80e3c9f92e427ab5efccd80dbce14f5753cb6862a84edad2b19f1", + "indexes": [ + "dcim_powerport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_powerport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 158.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Hash": 4, + "Hash Join": 4, + "Index Scan": 8, + "Nested Loop": 8, + "Seq Scan": 4, + "Sort": 4 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6c47f6baceff0c2a901c4eed5d5b0ef33d75740a34536deca59436e9ca46787a", + "indexes": [ + "dcim_consoleport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6efee9c237bf4cde9ea6512b1eedd5dc3d1b124166aa3895bde2bdb436a45a9d", + "indexes": [ + "dcim_poweroutlettemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1304, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1094, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1086, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1058, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlettemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_poweroutlettemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "723d7644030ad7308612044bc8b36ce7a545c72597ce09bec25d3372f3fe0819", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 333, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 123, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 115, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_modulebaytemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_modulebaytemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7e0d50e9a259c2b5e5d198779f17ff725be2dc143ffcf50c0490c9d9b7eaf4ea", + "indexes": [ + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7fe199fa55c86bab56af1fe60ad663b79b2da13d821d1e5cf9abc3008ac6b967", + "indexes": [ + "dcim_consoleporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 1.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8851ed9055f90e32729dcfa23f41d4aa9f4097f3cc470e9753bb53177d85af06", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 10.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "88e92a2c7b21a65695aa5f2183401c01bd7621598e2fa631680c566a2953cb3d", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8bc22fcb99e95003c1e57d5bfae4ee11d601927804a08b8ce908534eacb8c14e", + "indexes": [ + "dcim_rearporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_rearporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 7.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8be7495247b21f5edcd612b3068892539637e7c1e14b2ffb4db4fde2f51b4708", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3069, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2938, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2046, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1915, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a1be5327106c188aa1c39ad6513e25b727630c8d047e79ee35435a6e33a6df6f", + "indexes": [ + "dcim_coolingoutflow_device_id_74dd615f" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingoutflow.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a1d7c936498856dba2b0108d991e759fabc09b35dd08a52f01a1c6aee77e7a05", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 23, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1471, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "a426945f30de8d044efc3ea0c795780470bc8b33120daed282301d3ae5dd301f", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 23, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1471, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 12.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 60, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 80, + "planner_total_cost": 397.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.47, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ad08c4d87a3f2bbf2fb24298a3cfe0e6c6f0d814983efbc1eeae1f10a1eb191c", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b0614a28c4efc1210f05b1919aeab6d0ee04c692ede268ffc9e6429369a14a77", + "indexes": [ + "dcim_coolingintake_device_id_df1c3674" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b4687637886711523b4aa01c721c650537c013b56604b19f071494b530570234", + "indexes": [ + "dcim_frontporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c005086af0fd32235ce0580d614eeaf9682550da498c36573698f70dea81614f", + "indexes": [ + "dcim_consoleserverporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleserverporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 4, + "shared_hit_blocks": 0, + "shared_read_blocks": 4, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "c4f813bce4ed6c8837d6442669dd167e2be34f84a7b53bc068a7f6cff0d279d1", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 4, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 4, + "Shared Written Blocks": 1, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "cafdd5f5e3e1dfa771dd6f693d840f3a9dd85caa4b0808525ecf1de024e4935b", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "cb77feea120324c27b1b6ddc723fe3423efc11289c8eaeb3e2d6d2075898382a", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d51442b54fe270b70ae07f271ccb6059197632b525fbfe5edc506b696435143a", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.05, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d6691b2a7a9790a8282724ab3c1256a38e53f72fd4acfdaeff751c964e17d712", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 6.04, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 1.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 82, + "shared_read_blocks": 9, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1464, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "d980e5ffbaa0c33ec46ea1e8b4a3c8b1300ae211a7d843e3847ad5cf871a9fd9", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 82, + "Shared Read Blocks": 9, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 1464, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e0f4302b1d35a8d09538405e8c704a4fa939409885902b15c76249eb3dc270d5", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "e571da5d8db72eeba2e5671a3d2c94a93abfb7e292641797b52543c803946df8", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 20.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e82affde9bd460e15c717c90a08c7aed62ab8454efdf80a8014fe6523ee686a1", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1446, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1236, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1228, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintaketemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingintaketemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ea900781e8f661867ecd332e69d961c7104251c07056153e368026156bd49db6", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 64, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 575, + "wal_fpi": 0, + "wal_records": 8 + }, + "calls": 1, + "fingerprint": "ffc747d4b5aa05800619d986d0257ff3f22963f7effa65304a8b6b998c4f5e65", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 896, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 896, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 64, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 575, + "WAL FPI": 0, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "36779d9ccb85180d87fa18b2ceb539ddc06ed4464322a9fbc938eff9a5833525", + "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" ORDER BY \"core_configrevision\".\"created\" DESC LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4087d301fb9fc54548c18069a19c8651b10741983b7479f5e4ccf366462a4f0b", + "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" WHERE \"core_configrevision\".\"active\" LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 3, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 19, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 19 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", + "normalized_sql": "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\" = %s) LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 90, + "actual_rows_per_work_unit": 42.0, + "actual_rows_times_loops": 42, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 90, + "planner_rows": 214, + "planner_total_cost": 1272.83, + "planner_total_cost_per_work_unit": 1272.83, + "shared_dirtied_blocks": 4, + "shared_hit_blocks": 463, + "shared_hit_blocks_per_work_unit": 463.0, + "shared_read_blocks": 13, + "shared_written_blocks": 1, + "statement_calls": 96, + "statement_calls_per_work_unit": 96.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 3987, + "wal_fpi": 0, + "wal_records": 56, + "work_units": 1 + } + }, + "description": "Plain interface rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 170.79908, + "p95_ms": 191.16176929999997, + "samples_ns": [ + 172354659, + 175850867, + 166171206, + 165932174, + 167186500, + 198662760, + 172133535, + 169943099, + 159497927, + 170799080, + 169192190, + 167323944, + 187947059, + 171673360, + 181307875 + ] + }, + "wall": { + "median_ms": 238.024988, + "p95_ms": 254.2980661, + "samples_ns": [ + 241726765, + 242935137, + 229797801, + 227549431, + 231243888, + 260879604, + 241354744, + 238024988, + 219145033, + 238728203, + 234312296, + 228204357, + 251477407, + 235393856, + 247302991 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 178.658185, + "p95_ms": 184.172017, + "samples_ns": [ + 184784665, + 178658185, + 168561117 + ] + }, + "wall": { + "median_ms": 241.448316, + "p95_ms": 247.893027, + "samples_ns": [ + 248609106, + 241448316, + 228515644 + ] + } + } + }, + "name": "module.complete_model_save.plain_rename", + "semantic_result": { + "interface_names": [ + "et-0/0/3" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.05, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 9, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0960052a4689a1c77e4206a2dc140d306197ee9da7c7110d1c4d44080d5354a7", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.04, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "16cb0355dd3d9843a350cff777ca1d3b3eccb668b92bb1cac767077c4eca154b", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 1.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "34d891f58a1beeb7acbd7a0b98522859d73eec49092a0084107fe945bbc415ac", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 7.05, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3da9f3c1db8902e588d367f220d4fa0cd6f85f322507d62c47f6140a68a4e993", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 7.04, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 17.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 17, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3f0ecb76e79bc9e6b94d4dc18df1a0fb2bc4bbd90b0ef9c5ade8630c9d7a41ba", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 16, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 17.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 6, + "actual_rows_times_loops": 6, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 69.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 42, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 6, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 6, + "Hash Join": 6, + "Limit": 6, + "Seq Scan": 12 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 6.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "454ced89a1990d8cf0551538d3880cb0af39eafd73a24bef91b657a04945f939", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.19, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 26, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1464, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "5b11ff978c3afd4c46b83f6c38218c07462e0293a594abfbf5a0ba31edaf1d43", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 26, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1464, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 24, + "planner_total_cost": 119.19, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 3, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 3, + "Bitmap Index Scan": 3, + "Hash": 3, + "Hash Join": 3, + "Index Scan": 6, + "Nested Loop": 6, + "Seq Scan": 3, + "Sort": 3 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 14.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "7a13ce256d4f2702bfc01fc442ff8cc2ee4887dbf76d157d46a89b95c5f2df24", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 1.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8e9cd053c36b2735abee079bc23b514f3cc6233565524f2c338bbabffdfec40a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.05, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 9, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c17fb4f9cb449289cd74e543ad60fcfc8d315ca110552c91a274f91c4e60ad2c", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.04, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 12.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "c264941a16fde450a7f2039a40a3dbd14a4606ff784f1f837df6887cc33c8865", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 4.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "cdce8c3da096a358abc76f2dc19f3031674bc8775e8c39891cbf074f16db775e", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 7.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "dd561e6bce12797303bb287dc72b7c9f302b10db2a60c60c71b0459ae948c366", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e9ee92f1b5b49f37c77e00f16e9d6dea77904be34506f56d4ff8fa644e4515a9", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ea900781e8f661867ecd332e69d961c7104251c07056153e368026156bd49db6", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 7.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "fd0e7f906a604aef29695c8faaf5dce16f0792bad49443ca31d4be2b80767bc1", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 6 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 34, + "actual_rows_per_work_unit": 24.0, + "actual_rows_times_loops": 24, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 34, + "planner_rows": 59, + "planner_total_cost": 324.53999999999996, + "planner_total_cost_per_work_unit": 324.53999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 182, + "shared_hit_blocks_per_work_unit": 182.0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 40, + "statement_calls_per_work_unit": 40.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1783, + "wal_fpi": 0, + "wal_records": 25, + "work_units": 1 + } + }, + "description": "Plain interface rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 87.404473, + "p95_ms": 101.33072089999999, + "samples_ns": [ + 84498264, + 90001056, + 89124851, + 89452540, + 87404473, + 83278209, + 84564168, + 84977832, + 89663853, + 105167514, + 83340018, + 85112978, + 99686381, + 81998459, + 88890230 + ] + }, + "wall": { + "median_ms": 116.84338, + "p95_ms": 128.4954699, + "samples_ns": [ + 115100924, + 120588109, + 121366746, + 118169861, + 119239324, + 112792425, + 114731262, + 113791384, + 120414633, + 133177282, + 112029456, + 112505567, + 126488979, + 109817667, + 116843380 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 82.788864, + "p95_ms": 88.8890532, + "samples_ns": [ + 82788864, + 81480023, + 89566852 + ] + }, + "wall": { + "median_ms": 109.335762, + "p95_ms": 117.3411, + "samples_ns": [ + 109335762, + 106937758, + 118230582 + ] + } + } + }, + "name": "module.direct_callback.plain_rename", + "semantic_result": { + "interface_names": [ + "et-0/0/3" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "03473b78e7390c5c67e704037e0577c616f4f4ed0b4f646eecf3b3f2ee47dd27", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 2.02, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 19.63, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "08a14fd83a735c21f6b8d0ea736b541a36db385a9e6225206e92a860ccfa8fa3", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 2, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 19.58, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 11.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0a375977f39a551f8c5984c640634aba3f6e5e745dcc18359376501732163285", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ANY ('?'::bigint[]))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 11.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1032411ad7c320616e1c3ac6373cf80cf16b057668f30c94891b64d2f0f1cbd1", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "127af72de855f3683433d5cb3d458a06d59b513da24ac7a9a9b1e146f6ba7d5d", + "indexes": [ + "dcim_rearporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_rearporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 892, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "21413640789c0e0ad9e69a3e79358c5484c1e04e7cab858dbe308d116df1bd32", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "25423355a3aafb7e57228b55e4b75f4c0310feede7e15c1840ac72c693fb621a", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 23.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "260e23d00ff4b1359317ec395ed01749bc72036f2c1fcb5e40f61dee40cb2b7d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2bad17d2d4805cb13cce33339d4a16c90df3a3110c745512a91336858ed39c20", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.0, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "34a8f832c2911950ab3a2024a0b9c7b0bcdb877877e0d20de97ce9697bd64f17", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 10.05, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3faa08767aa5263a2609261613d80fca47c4793d480d6dff232d152e148f7bd3", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 156, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 156, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 136, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 10.04, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4233ea527cc0c7647ee8da773a30d9995cb21eaf6bc0ab4c642d2e8857fe48cd", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1446, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1236, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1228, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintaketemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingintaketemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "43c062329a93ff0674b262cf8302ebd88702be65794af0b7413a30889ded156e", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "442cb11b10354bbfeacee559b52687ee6ac7b43e0f62cb72a59d9bb4b2ec90d7", + "indexes": [ + "dcim_consoleporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + }, + { + "aggregate": { + "actual_loops": 39, + "actual_rows_times_loops": 39, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 39, + "planner_total_cost": 451.2299999999998, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 273, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 39, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 39, + "Hash Join": 39, + "Limit": 39, + "Seq Scan": 78 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.19, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4d5af9f152307a9df4f43fb6d5c6ad9d3ac97c4638fdeaad4184fcde5b081cfd", + "indexes": [ + "dcim_powerporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 948, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 912, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_powerporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 22.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "54b93df58dc8d65464e2f7eb8664bb9bfdd691e0bc2d239b615a19b79ef2a914", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 333, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 123, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 115, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_modulebaytemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_modulebaytemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 22.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5f0f03e589749cf1c7af723cb259b891d1518c023e693ff300e0f1233f88ff63", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 23.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 19.63, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "63dc26ddb7ef8b5f15573b9d281c51292c01e3785c820f8767b2f70c4f8d841c", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 2, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 19.58, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "66b725a3e4696b45ed695d66297f2f46bd22ad612b45173b014e0e4f1e61f895", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6a250ea2a0c7f445cb802719ca76651a364263a07b34702a3aef716601a48040", + "indexes": [ + "dcim_coolingoutflow_device_id_74dd615f", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingoutflow.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + }, + { + "aggregate": { + "actual_loops": 16, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 128, + "planner_total_cost": 635.6800000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 16, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 16, + "Bitmap Index Scan": 16, + "Hash": 16, + "Hash Join": 16, + "Index Scan": 32, + "Nested Loop": 32, + "Seq Scan": 16, + "Sort": 16 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6c897b050a515671da1a7440af1415036a969264e619f20de6d07dd67b86764d", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 113, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 113, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 2.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 0.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", + "indexes": [], + "node_types": { + "Limit": 4, + "Result": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "One-Time Filter": "false", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 0, + "Plan Width": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6ff21baa021ac7ff51b30607e4072d8ddf915cc7e6dae2eb5df79f29751ce37a", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "762d501e081f48edd74a88728916d1d5c8539bd2abdf7ca579de1ba470fd6b43", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_powerport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_powerport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 11.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7c4b84f384a05155200e4ef0af95386fcddce62865ead5ed0ad83008d10c1940", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 11.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "7c8da4e9fc03a3c9e01a4436665fbff56cbc91496ae3c1765350db8ec7778c76", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1611, + "wal_fpi": 0, + "wal_records": 20 + }, + "calls": 1, + "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", + "indexes": [], + "node_types": { + "Function Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "unnest", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Function Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 20, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.1, + "WAL Buffers Full": 0, + "WAL Bytes": 1611, + "WAL FPI": 0, + "WAL Records": 20 + }, + "Triggers": [] + }, + "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 5.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "870f15a8572e4c2ebbfaf4fa1c52019f9318818f7ccc7566b430f62a7f3a7821", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_poweroutlet_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_poweroutlet.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 0.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 88, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 5988, + "wal_fpi": 0, + "wal_records": 84 + }, + "calls": 4, + "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Result": 4 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 22, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1497, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8a9e3d17e234d4b785ce0a053ac931621326ebd45661582df0d869552e6ae425", + "indexes": [ + "dcim_frontporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8dfba5ff85da1d046fd21c2f7d60f6cb76c3f4a88939df96e1b00796d2ed8cb1", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 6, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 18.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 6, + "fingerprint": "93c2335339c1e48bec03adbe1da7c53f8c131c8d9ce2b2e5fcb4b1ff8c4cb956", + "indexes": [], + "node_types": { + "Limit": 6, + "Seq Scan": 6 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 11.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "966353c27fa3f96107e557417f5b5dcf71c87204555905f41320e8f7c4f75426", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 11.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9942b707c2a05a6df5a76631f46c7af2b3690999925814bcdb93bb5469400eeb", + "indexes": [ + "dcim_consoleserverport_unique_device_name", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9cd805dab6f15af00acba1e106b3c05520eca0bd8d05fb43563248a439ed0514", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 11.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a255df86789a547559776ff2af6bc0cb9dd8e57a5270de5a79889742db72f183", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 11.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 23, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1471, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "a426945f30de8d044efc3ea0c795780470bc8b33120daed282301d3ae5dd301f", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 23, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1471, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 12.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 60, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a4e4a0721285db15dd0291ffc9fe42b766bf9ab30a07f063692ca27738dbf72f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 19.63, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a73506699a702b61647f49d1e71b6bbbcc78315a87dbe72a000bf7e8330e688b", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 2, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 19.58, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a8b516f999ebee5826a066db69fa8df13327e64a670cba85d400f2e2b9698de8", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 80, + "planner_total_cost": 397.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "acae54e9a8724a8e4a2798a9307fc965ce0c1c02277b027e97ab5c16155573ad", + "indexes": [ + "dcim_coolingintake_device_id_df1c3674", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b09e5df3bd10998267d74d1dfadecc0a4de79cb3567985c48c4cd935416e22bc", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 19.63, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b0be09a501d7dd38996dbc406480ce64cbbe83c0066b5a1fd62f861856f0fad5", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 2, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 19.58, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 12.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "b2ee713465b16c3bc2572a3ab8901e977e853ff49fadf7cea81641ca3d63af2b", + "indexes": [], + "node_types": { + "Limit": 4, + "Seq Scan": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bb65489f214364bd7a4711bf0ed584c001fb40342825c060369896bb95d3cc3d", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id > ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.0, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 4.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 1.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bfeafd0f838b1b475a1e000531fa5b472e1be0e64dedbed0d94269c5db6101c6", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "cbb9a10b4593e9d42704eb4a0cd702640b92d73e3bf4723327225bdfcad5f0ab", + "indexes": [ + "dcim_poweroutlettemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1304, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1094, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1086, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1058, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlettemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_poweroutlettemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1494, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "cde23e1325f70f12f608a6bd764a77c3c11a7abea86c4d0a2255fe5cfb33dac8", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 27, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 1494, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 40.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 395, + "wal_fpi": 0, + "wal_records": 5 + }, + "calls": 5, + "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 5, + "ModifyTable": 5 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d0a6a41bca6dc869a69abf9ef35e3d28370fd236bd0b8856ba8d84f5f5717c40", + "indexes": [ + "dcim_consoleport_unique_device_name", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d4380a2085cf4e34dd7d90960a8c93d24ff15095904e768bdfa4427ca990f5e3", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 46.54, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 46, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "d6e52a432a0edde85da39f2fdb5616d196381e74e1d1ecaf9b349b0b9e266d6a", + "indexes": [], + "node_types": { + "Nested Loop": 10, + "Seq Scan": 12, + "Sort": 2 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 20, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 23, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 23, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 23.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 40.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 5, + "Limit": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "de9c48311a995ce95271677eae423daf49ced1a97d8b0bc6a7cb4f25b898a54d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.11, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e10d34d7eb8b531004b5ec8758433f429c42cd04ffee4915a6a8c1368284b41b", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3069, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2938, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2046, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1915, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 52, + "shared_read_blocks": 12, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 575, + "wal_fpi": 0, + "wal_records": 8 + }, + "calls": 1, + "fingerprint": "e89816763ca6a9e380295812e114bf8c5957e04c8a1901c8a2a5829614ea5ebf", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 896, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 896, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 52, + "Shared Read Blocks": 12, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 575, + "WAL FPI": 0, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "eaf4dfa413b0a0454816c86c42dd7383e364e3e96e734f349b3efb1ad5420b26", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "eb74ce038ebe19caf98c892dc75932a202d86522bcbd797e086e46287f61cd78", + "indexes": [ + "dcim_consoleserverporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleserverporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 16, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 39, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 39 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 2 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 164, + "actual_rows_per_work_unit": 17.8, + "actual_rows_times_loops": 89, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 164, + "planner_rows": 366, + "planner_total_cost": 2404.0199999999995, + "planner_total_cost_per_work_unit": 480.8039999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 849, + "shared_hit_blocks_per_work_unit": 169.8, + "shared_read_blocks": 12, + "shared_written_blocks": 0, + "statement_calls": 172, + "statement_calls_per_work_unit": 34.4, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 11613, + "wal_fpi": 0, + "wal_records": 160, + "work_units": 5 + } + }, + "description": "Four-channel structural creation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 270.402238, + "p95_ms": 278.6248663, + "samples_ns": [ + 275226669, + 275482462, + 272102138, + 264080830, + 269762733, + 277265155, + 270402238, + 266712659, + 281797526, + 266829829, + 276611211, + 265763275, + 267205385, + 275804686, + 265841089 + ] + }, + "wall": { + "median_ms": 372.509497, + "p95_ms": 391.9926933, + "samples_ns": [ + 379509726, + 377376186, + 372509497, + 362330943, + 372844629, + 382825528, + 371005862, + 368780512, + 391660428, + 365714782, + 374612508, + 366267268, + 367796742, + 392767979, + 363195803 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 267.421506, + "p95_ms": 268.7223336, + "samples_ns": [ + 268866870, + 267421506, + 257200195 + ] + }, + "wall": { + "median_ms": 367.896083, + "p95_ms": 371.6355074, + "samples_ns": [ + 372050999, + 367896083, + 354895839 + ] + } + } + }, + "name": "module.complete_model_save.structural_creation", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "xe-0/0/3:0", + "xe-0/0/3:1", + "xe-0/0/3:2", + "xe-0/0/3:3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 2.02, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" + }, + { + "aggregate": { + "actual_loops": 6, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 30.119999999999997, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 6, + "fingerprint": "167e3754be964932c89c5efd8cf19d9caca6affea559681d9fdff895ecbf2bce", + "indexes": [], + "node_types": { + "Limit": 6, + "Seq Scan": 6 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 10.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "200b2b14a1fc7f832a2ee1d0fc3bcfda93db384e6cdebc2cef110a475d921469", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 156, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 156, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 136, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 10.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 95.96, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "2409738863295e05242c5072edaf0f94166ffd597832df23439c6908461d6023", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Hash": 4, + "Hash Join": 4, + "Incremental Sort": 4, + "Index Only Scan": 4, + "Nested Loop": 4, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2266, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.6, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.01, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 23.95, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.99, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 10.049999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.53, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2ccbe643c8d936834cb011e9f76a572ea803c9619eca5f9383a18d6e11e6b85b", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 735, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.34, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.5, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.52, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 23.53, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.53, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 26, + "actual_rows_times_loops": 26, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 26, + "planner_total_cost": 300.8199999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 182, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 26, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 26, + "Hash Join": 26, + "Limit": 26, + "Seq Scan": 52 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.19, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "55b32ff4bf74c62c5599c638babb7dbb30db884c304adc8c0cc2a24eacf53136", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id > ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.02, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 14.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5cb23fe2a5e58eb2396605c5bd1bc3d50be9a918e1a6a8a0cb0869b6bf70df1b", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 23, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1497, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "6713909a026c080d690ba09da361f39be222c78cc25e2338cefa7b5114511c78", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 23, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1497, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" + }, + { + "aggregate": { + "actual_loops": 15, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 120, + "planner_total_cost": 595.95, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 15, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 15, + "Bitmap Index Scan": 15, + "Hash": 15, + "Hash Join": 15, + "Index Scan": 30, + "Nested Loop": 30, + "Seq Scan": 15, + "Sort": 15 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6c897b050a515671da1a7440af1415036a969264e619f20de6d07dd67b86764d", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 113, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 113, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 2.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 0.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", + "indexes": [], + "node_types": { + "Limit": 4, + "Result": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "One-Time Filter": "false", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 0, + "Plan Width": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1611, + "wal_fpi": 0, + "wal_records": 20 + }, + "calls": 1, + "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", + "indexes": [], + "node_types": { + "Function Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "unnest", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Function Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 20, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.1, + "WAL Buffers Full": 0, + "WAL Bytes": 1611, + "WAL FPI": 0, + "WAL Records": 20 + }, + "Triggers": [] + }, + "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8815048e69a3879fd1f377ef605855112fe3d50337d7a3758921ffb7097e936e", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.02, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8826a696bf104d3b6190e57164770b2534873b0f17b03a459df308408d9d8892", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 3, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 3, + "planner_total_cost": 0.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 66, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 4491, + "wal_fpi": 0, + "wal_records": 63 + }, + "calls": 3, + "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", + "indexes": [], + "node_types": { + "ModifyTable": 3, + "Result": 3 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 22, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1497, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9b78bff13f85174069adaf01a9d759cce5389a90c8b45fa11437ee49b60a585d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 29, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1494, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "9d40b58581dbab1ba414240df2a25e6c786fd5292e0e4525a4a09f688989b2e2", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 29, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1494, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a0fbd0603f9ff5f710a7b3adb3afe9e9b3a90c7bd802f3d6f38a267a77f9b97f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b248dc89f1ff2b101dccdd5295eefec5e8b75a05e331456bc2364382ab3eed96", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b812a5fb26ca5d7c63ff4681716d50d144016eb9b505d26aad297b6f6b3e3ad3", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 2.49, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bed6c13fbd045b41c2637787758f90d2d42ea4620c282c85bce0a2adab38b400", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 4.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 13.22, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c6c1469a9e3888c03790334f3baab436ef73b646b5c7334fd97de871df04a558", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ANY ('?'::bigint[]))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 13.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 32.56, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 316, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 4, + "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 4, + "ModifyTable": 4 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d34ed9bc3b276775059bda33d19c77d55c2b5e377f215eb57a8b5dc491fe68ec", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d999dbf8ed72ed08471e7ed451d5740c865d85e4dd6c5d3067cdb67b862e9e9c", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "da68ccf0688b8b3b4f7188debe29a3d422cbbc42903e99db5516afbd07af9520", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 20.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "e3caeac7d2c46b4bee93087a339a04bd75f571767c82d6b08e746322fac2396f", + "indexes": [], + "node_types": { + "Limit": 4, + "Seq Scan": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 13.22, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e683ed305970d9c71a730d103291c9f388665abe680683cb21e5199150366627", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 13.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 40.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 5, + "Limit": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 13.22, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ffa93b3259b9b5f4cb08237b5a044a58c564ce10f872b5701a7ffc6afb8d50c3", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 13.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 15, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 4 + }, + { + "calls": 4, + "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 4 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 26, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 26 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 111, + "actual_rows_per_work_unit": 14.4, + "actual_rows_times_loops": 72, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 111, + "planner_rows": 223, + "planner_total_cost": 1360.2599999999995, + "planner_total_cost_per_work_unit": 272.0519999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 555, + "shared_hit_blocks_per_work_unit": 111.0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 119, + "statement_calls_per_work_unit": 23.8, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 9409, + "wal_fpi": 0, + "wal_records": 129, + "work_units": 5 + } + }, + "description": "Four-channel structural creation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 185.68411, + "p95_ms": 203.9185975, + "samples_ns": [ + 188978308, + 184841622, + 182275466, + 178054573, + 183930761, + 197364837, + 193691889, + 181983968, + 202080811, + 184921492, + 208206766, + 181976954, + 187775371, + 185684110, + 186832591 + ] + }, + "wall": { + "median_ms": 251.240225, + "p95_ms": 289.2050866999999, + "samples_ns": [ + 255889545, + 250371037, + 247360910, + 239092081, + 246519178, + 265489860, + 318339660, + 246204765, + 265811883, + 251240225, + 276718841, + 246914060, + 249636958, + 251485639, + 253063371 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 177.709034, + "p95_ms": 179.68738159999998, + "samples_ns": [ + 177709034, + 176250517, + 179907198 + ] + }, + "wall": { + "median_ms": 240.311548, + "p95_ms": 244.4507875, + "samples_ns": [ + 240311548, + 239926960, + 244910703 + ] + } + } + }, + "name": "module.direct_callback.structural_creation", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "xe-0/0/3:0", + "xe-0/0/3:1", + "xe-0/0/3:2", + "xe-0/0/3:3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 55.599999999999994, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 35, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 5, + "Nested Loop": 5, + "Seq Scan": 10 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0a27c415a31a84e1ad4440f3771a7fd4f43682a125eb96949af1465ca9569309", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0c415e57213854714bfbf0f0a10c2f30457251d6eb9731a2b8aef3c3cac5b830", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_poweroutlettemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1304, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1094, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1086, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1058, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlettemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_poweroutlettemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0c4e873d480574e1aa26e97f7c19769acfabb65429baa7753243db19545112c6", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0fc101cf8db3e8a0a45e243e194d29797872c45ad16125275df97f3b58c3c35b", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.36, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", + "indexes": [ + "dcim_cabletermination_unique_termination" + ], + "node_types": { + "Index Only Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cabletermination", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 32.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 140, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 5868, + "wal_fpi": 0, + "wal_records": 84 + }, + "calls": 4, + "fingerprint": "134c43025b43f63b3edf55ad33427cf5ae1d9deb499322cf01f49824013ab8dd", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Seq Scan": 4 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 35, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 1467, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "141e3db0eaa2540d5e7b2369dd0fb5fc75e58d83f5c8d9b9bb1d483c02067b7d", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "1adc62bdf334fe7c7a687363200e0c39f5d7a7be9e83b4e080d246392a977288", + "indexes": [], + "node_types": { + "Limit": 4, + "Seq Scan": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 3.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1b7a8d6d0595b82a8dce4ba02c6af45b36ee4650dacb670df2887e9e70570087", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 15.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 9, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "21ecd05884633629db8352d4d92216beef8468af3eea886fa355f72424264b0c", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 15.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 64.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 64, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "2484ec2928c29206e477378038a89f6d3044368214d828a844c1c6cd3c69de66", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2005, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.53, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "24f473198eeb64d98b4a613d0bbbf37b80ebc244f015889f40b4bac2ffa52b72", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 333, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 123, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 115, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_modulebaytemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.34, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.5, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.52, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_modulebaytemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 23.53, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.53, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "26b71b8afa098c135690c5adc6c1cb7831abc9ff7068e1b8487e45be6a51bdb1", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "27bd86446c5cf0800909c1ec902fa21fd9fd243ecc1ca24d0d3cbc013792074c", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 2.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2d3a0e703cf2e207cc924558a58b0677c41eef7e55ab94d7b992a72e98c2d922", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 18.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 0.07, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 117, + "shared_read_blocks": 1, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 7417, + "wal_fpi": 0, + "wal_records": 106 + }, + "calls": 1, + "fingerprint": "3397ae75665803d484b2e870de785e2be338fc3f3da69af9b03a3db8acace896", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Values Scan": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "*VALUES*", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Values Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 117, + "Shared Read Blocks": 1, + "Shared Written Blocks": 1, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.07, + "WAL Buffers Full": 0, + "WAL Bytes": 7417, + "WAL FPI": 0, + "WAL Records": 106 + }, + "Triggers": [] + }, + "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "34a8f832c2911950ab3a2024a0b9c7b0bcdb877877e0d20de97ce9697bd64f17", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 10.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "34ade45165f859b900607b0e12ff6b568c9d187974bbbfccad45ed197fbe7de3", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 10.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3a2d1ec90f82e310b983f873308c5a74efa1ea5d7ee9abc6761d47672e528940", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_rearporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_rearporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 24.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "42056e4d4a2cf73a3fd9670ed59790bb1f650c8bfc873fd3ea457389d32a40d7", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 722, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 504, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 476, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.55, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 24.58, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + }, + { + "aggregate": { + "actual_loops": 63, + "actual_rows_times_loops": 63, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 63, + "planner_total_cost": 728.9100000000007, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 441, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 63, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 63, + "Hash Join": 63, + "Limit": 63, + "Seq Scan": 126 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 73.71, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 9, + "Sort": 9 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", + "indexes": [ + "dcim_consoleserverport_unique_device_name", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "69c249674607ef4bd898562d5dd5e73e51dcb399cd5d9c0b319442c9419e111e", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1446, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1236, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1228, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintaketemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingintaketemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.67, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6a250ea2a0c7f445cb802719ca76651a364263a07b34702a3aef716601a48040", + "indexes": [ + "dcim_coolingoutflow_device_id_74dd615f", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingoutflow.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + }, + { + "aggregate": { + "actual_loops": 24, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 192, + "planner_total_cost": 953.5200000000002, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 24, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 24, + "Bitmap Index Scan": 24, + "Hash": 24, + "Hash Join": 24, + "Index Scan": 48, + "Nested Loop": 48, + "Seq Scan": 24, + "Sort": 24 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6f05d3f772d0946bae70bbe42fa47f409fd4cca753c83f34e85a740d8033bfe1", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 12.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "6f5ab77e1a32861ae79db6f122db01ac4dd1c0a8c37762d132bbc637fbcfe5b6", + "indexes": [], + "node_types": { + "Limit": 4, + "Seq Scan": 4 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 440, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6ff21baa021ac7ff51b30607e4072d8ddf915cc7e6dae2eb5df79f29751ce37a", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "750dfb2edf517badb6259c2efa4bb9f8c1cafeae57c2de4c2caefc8de067b5de", + "indexes": [], + "node_types": { + "Limit": 4, + "Seq Scan": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2005, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "762d501e081f48edd74a88728916d1d5c8539bd2abdf7ca579de1ba470fd6b43", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_powerport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_powerport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 64.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 64, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "7ac79afa7986990f3c2e2e2acce74927e1df3d4aff5a8e8b085cd62f4350006e", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 24.75, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 23, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "80a2bf5f8fd08e26deb258ea658a6636a7f35f020d49280bb692d26a20658f0b", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 5, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 23, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 23, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 24.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.75, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 3.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "82e71217ad82cfa71cf62df3f09258bae44e32965456b9ce1e398287a8948fd0", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 31, + "shared_read_blocks": 0, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1800, + "wal_fpi": 0, + "wal_records": 24 + }, + "calls": 1, + "fingerprint": "82e94d03295b01ac3708bd8f6b3d963646a1ec5c4a4c851a5c30b0ae767c5634", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 2, + "Shared Hit Blocks": 31, + "Shared Read Blocks": 0, + "Shared Written Blocks": 1, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 1800, + "WAL FPI": 0, + "WAL Records": 24 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "84ae5c14b22940578d08dfd39a21112c935d479c590a61ef16ad9a6ba1e6a2ab", + "indexes": [ + "dcim_consoleporttemplate_unique_module_type_name", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "870f15a8572e4c2ebbfaf4fa1c52019f9318818f7ccc7566b430f62a7f3a7821", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_poweroutlet_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_poweroutlet.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8d20638f59875d24dea6586ef4c5eb88f08ba9059633074dc322dc840fc84a5a", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_powerporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 948, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 912, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_powerporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8e6fa8212ab4b0e5d94a9a05057f30f6d722f8f2b550cba4d090b06a7ab6314f", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 892, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 98.52, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 44, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "9433c348618e06de7d3bd6b0e63bef2e75fc94d381647a2d2f47e9337bf91c51", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 4, + "Index Only Scan": 4, + "Index Scan": 4, + "Nested Loop": 8, + "Seq Scan": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 24.58, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9cd805dab6f15af00acba1e106b3c05520eca0bd8d05fb43563248a439ed0514", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 14.11, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9f905952c5f102fc6ba193a7451fcdca547f872fc3cae608c39a9bc263b7e705", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3069, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2938, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2046, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1915, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 72, + "planner_total_cost": 129.33, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 9, + "Bitmap Index Scan": 9 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 12.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 60, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a8b516f999ebee5826a066db69fa8df13327e64a670cba85d400f2e2b9698de8", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 80, + "planner_total_cost": 397.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + }, + { + "aggregate": { + "actual_loops": 18, + "actual_rows_times_loops": 18, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 18, + "planner_total_cost": 146.51999999999998, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 54, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 18, + "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 18, + "Limit": 18 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ac9a27be4b943b95246f0d3b619bf4a6a945cae9bcbd58cb29ef2b50b1a8cc78", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "acae54e9a8724a8e4a2798a9307fc965ce0c1c02277b027e97ab5c16155573ad", + "indexes": [ + "dcim_coolingintake_device_id_df1c3674", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1292, + "wal_fpi": 0, + "wal_records": 16 + }, + "calls": 4, + "fingerprint": "ae91bf70df76c2d71a9696dee0d5b7f2f4a1315c1e9653522ee343423fdf2fe8", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Result": 4 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 323, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "aeb4e7d4fdad067afaf827e1b891057257abff35122086cdf527096099aca37a", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id > ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.0, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 24.75, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bab19a8e2658ef955a2d8b741902e765e1fd8154bfb730a43e8764cb6c0811b1", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 5, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 24.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.75, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bbdf80cc1eb87cf3559061f33f4a439f0b101281bd81e6c6e57d02e173a78472", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 24.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bca1ffe75a54701d8bdc08955414208f1233aaf01f9f237fb471ae28dcac99f0", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 4, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 4, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 4, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 24.69, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 18.089999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 24.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 237, + "wal_fpi": 0, + "wal_records": 3 + }, + "calls": 3, + "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 3, + "ModifyTable": 3 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 3.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d7c5ab22cb2daf70c17bbda47840d9dc1d9d2ff787ba45076a7bb443165f652e", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 73.26, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 9, + "Limit": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "dc3e878838ceab8d6aa80af82a7364832362844a7630e764ec7843a6e61e2758", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", + "indexes": [ + "dcim_consoleport_unique_device_name", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 52, + "shared_read_blocks": 12, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 575, + "wal_fpi": 0, + "wal_records": 8 + }, + "calls": 1, + "fingerprint": "e89816763ca6a9e380295812e114bf8c5957e04c8a1901c8a2a5829614ea5ebf", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 896, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 896, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 52, + "Shared Read Blocks": 12, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 575, + "WAL FPI": 0, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 3.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e91040485f4f9ae782fa19d77b9db83850c3cbca973a2d85e86e1bd98793c4e4", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "eaf4dfa413b0a0454816c86c42dd7383e364e3e96e734f349b3efb1ad5420b26", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + }, + { + "aggregate": { + "actual_loops": 14, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 14, + "planner_total_cost": 112.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 112, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 14, + "fingerprint": "ebe800ac343a48a675c36befa6f8bd7ad9b5c6874689db4ca18eea16aa6a0310", + "indexes": [], + "node_types": { + "Limit": 14, + "Seq Scan": 14 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f2a00f976e5f69992e82b118c695553090aca0e8fe7182ecf4f005efa338ef0b", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f7c67f872dd953320fad7a638ef416b2315a0b5a751ef7e6ada66cbc5fc6de92", + "indexes": [ + "dcim_consoleserverporttemplate_unique_module_type_name", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleserverporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 34, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1562, + "wal_fpi": 0, + "wal_records": 22 + }, + "calls": 1, + "fingerprint": "f8157f105aadd015d037744a697d777a82529cc0e8c15cd71897999caf99be3d", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 34, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 1562, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f8ca762ffeab5ac78dc0ccddb5f56f319f1dcd34dfdbc48f5b63987a878ad6b3", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_frontporttemplate_unique_module_type_name", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 18.089999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 3.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "fbcddf7bb5b1f788f986300970a2d78acfbf8abe11891e9d0029a33091f627bc", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 32.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 136, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 5856, + "wal_fpi": 0, + "wal_records": 84 + }, + "calls": 4, + "fingerprint": "fde43f0d411efede8be4967d949eaaa80144aa8d9d8d88c3a0b86e166b349db5", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Seq Scan": 4 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 34, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 1464, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 4 + }, + { + "calls": 9, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 8, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 24, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 18, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 18 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 5 + }, + { + "calls": 16, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 14, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 16, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 63, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 63 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 10 + }, + { + "calls": 9, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 5, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 8, + "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 301, + "actual_rows_per_work_unit": 38.0, + "actual_rows_times_loops": 190, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 301, + "planner_rows": 618, + "planner_total_cost": 3993.1799999999994, + "planner_total_cost_per_work_unit": 798.6359999999999, + "shared_dirtied_blocks": 3, + "shared_hit_blocks": 1895, + "shared_hit_blocks_per_work_unit": 379.0, + "shared_read_blocks": 13, + "shared_written_blocks": 2, + "statement_calls": 333, + "statement_calls_per_work_unit": 66.6, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 25084, + "wal_fpi": 0, + "wal_records": 353, + "work_units": 5 + } + }, + "description": "Existing parent plus four channels rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 579.243993, + "p95_ms": 606.8015297999999, + "samples_ns": [ + 579243993, + 560161354, + 591693877, + 588207714, + 571524659, + 566865136, + 589309638, + 565139341, + 586887607, + 623069639, + 578152802, + 562149609, + 592317627, + 567539485, + 599829483 + ] + }, + "wall": { + "median_ms": 766.828205, + "p95_ms": 804.6346788999999, + "samples_ns": [ + 771956055, + 744986034, + 788089930, + 766828205, + 765685320, + 750628715, + 780958397, + 746096600, + 767891798, + 826664402, + 766543594, + 747662958, + 777646506, + 765955520, + 795193369 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 597.420704, + "p95_ms": 599.0206313, + "samples_ns": [ + 597420704, + 592914521, + 599198401 + ] + }, + "wall": { + "median_ms": 788.433765, + "p95_ms": 795.1548507, + "samples_ns": [ + 788433765, + 780689909, + 795901638 + ] + } + } + }, + "name": "module.complete_model_save.existing_family", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "et-0/0/3:1", + "et-0/0/3:2", + "et-0/0/3:3", + "et-0/0/3:4" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 55.599999999999994, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 35, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 5, + "Nested Loop": 5, + "Seq Scan": 10 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 33.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 128, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 5868, + "wal_fpi": 0, + "wal_records": 84 + }, + "calls": 4, + "fingerprint": "0652b3db5103daa905517e440c5d58abd95d89f06adcbd7da81dc85dbe04cac9", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "ModifyTable": 4 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 32, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1467, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", + "indexes": [ + "dcim_cabletermination_unique_termination" + ], + "node_types": { + "Index Only Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cabletermination", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 26.75, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "133a84cf7b2f8065a05c661a60d445ccf3c482bf1f2a5070d4cb88f96348f110", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 5, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 26.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.75, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 10, + "planner_total_cost": 82.89999999999998, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "1dc8a2e3485086e606f51c5109c6862a737ac2249b72634003e63ae924447091", + "indexes": [ + "dcim_interface_unique_device_name" + ], + "node_types": { + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Limit": 10 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1465, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "20092052b41370072a97fe0735bedacb48b99db3bd00267723975013cb6e4aee", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 30, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1465, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.78, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "24d57674e856185006ed36b4ed8527a503c8d4ea9662ad8fbf3d5ec632cf12ad", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 10.049999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 3, + "planner_total_cost": 21.32, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "311666c6609515b436be56eba7277ead3dfec470e1ce5bfedde7397c8d94fd07", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 3, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 3, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 3, + "Plan Width": 981, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 21.26, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 30, + "actual_rows_times_loops": 30, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 30, + "planner_total_cost": 347.09999999999985, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 210, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 30, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 30, + "Hash Join": 30, + "Limit": 30, + "Seq Scan": 60 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 40.949999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 5, + "Sort": 5 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.29, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4b16644b8edb223e66746e053be6329d3bab697a85c226956d0b151caedf144f", + "indexes": [ + "dcim_interface_unique_parent_channel_id" + ], + "node_types": { + "Index Only Scan": 1, + "Limit": 1, + "Result": 1 + }, + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Parent Relationship": "InitPlan", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Backward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.26, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.26, + "Subplan Name": "InitPlan 1", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5791eaab3c87483dee707c59b280a81d836b64e0babbde1432d2641f14e163ae", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 11.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 15, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 120, + "planner_total_cost": 595.95, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 15, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 15, + "Bitmap Index Scan": 15, + "Hash": 15, + "Hash Join": 15, + "Index Scan": 30, + "Nested Loop": 30, + "Seq Scan": 15, + "Sort": 15 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 10, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 10, + "planner_total_cost": 81.4, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 10, + "Limit": 10 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "761ee19763539df632793b4962082a63bf204538423024055fc45495b06467b2", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 24, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1292, + "wal_fpi": 0, + "wal_records": 16 + }, + "calls": 4, + "fingerprint": "7ac476970b2348d91b81cbe1ecd8fa5d3e96d4a39cb05eea975e20538ee26e26", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Result": 4 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 323, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 18.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8de796ea6c1b707c099273dafe72ad0a0120f905cd5d5951fd15ad57605937b1", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.49, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "90d608e7d84938007eeb8f7529e305a9c8fd8b07a46188af1873a9138c099763", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.78, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9411893adff0c553e236e22a59a76622f700318344845b2275bde44ea6435c89", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.78, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9848f4db3cda0cd62e84e47bf96750eb8bbb5ada50a5ed44edd46f32aa073004", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 40, + "planner_total_cost": 71.85, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 5, + "Bitmap Index Scan": 5 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.78, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a7f8af528dabb822f0393a1382e9af345d8f4ea8074b8ff4c01820127c091560", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.78, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b07515b1fe6b7bb479b88f539607863996330941d3c0a1c2b285f0b238969826", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b6c2663b9f6e35dba9b11f2ad2906e3ff83e265ed01bc9f3ed0a739b8c619575", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 10.049999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 21.41, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c1c1f3e867d042c288661eeb857e7d733b3fad634fd3e7baf3f564a249d39a55", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 981, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 21.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "c34dcc7ad1be5e812ab7c578f70cae35a117d6250b4f815eeb1ee6968da07bed", + "indexes": [ + "dcim_interface_unique_parent_channel_id" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((parent_id = ?) AND (channel_id = ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "d60225a64cb8335877e0c2eb1f8a8512f0bc03ff8e847ec93ca17f6b1d2c5508", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.96, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "dc68cc397cbb3d07d875dbc3c8d17beade82d9721286337073243e79d91934bd", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Incremental Sort": 4, + "Index Only Scan": 4, + "Nested Loop": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 40.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 5, + "Limit": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 10.049999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 5, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 15, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 10, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 10 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 5 + }, + { + "calls": 16, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 10, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 16, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 30, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 30 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 148, + "actual_rows_per_work_unit": 20.2, + "actual_rows_times_loops": 101, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 148, + "planner_rows": 288, + "planner_total_cost": 1766.3299999999995, + "planner_total_cost_per_work_unit": 353.2659999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 706, + "shared_hit_blocks_per_work_unit": 141.2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 180, + "statement_calls_per_work_unit": 36.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 8944, + "wal_fpi": 0, + "wal_records": 125, + "work_units": 5 + } + }, + "description": "Existing parent plus four channels rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 5, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 355.06779, + "p95_ms": 374.4911956, + "samples_ns": [ + 374400199, + 361976158, + 372367363, + 347571998, + 361578332, + 355067790, + 343955309, + 350905882, + 352819289, + 348743805, + 364904769, + 374703521, + 327753100, + 340526295, + 372696696 + ] + }, + "wall": { + "median_ms": 460.578018, + "p95_ms": 492.98233369999997, + "samples_ns": [ + 496363522, + 484420339, + 491533253, + 451914166, + 467038823, + 460578018, + 444361625, + 452533750, + 458413743, + 454024390, + 479787333, + 491119893, + 433349512, + 443991498, + 489240174 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 398.054239, + "p95_ms": 423.5860933, + "samples_ns": [ + 385662806, + 426422966, + 398054239 + ] + }, + "wall": { + "median_ms": 519.327591, + "p95_ms": 557.4672654, + "samples_ns": [ + 516148167, + 561705007, + 519327591 + ] + } + } + }, + "name": "module.direct_callback.existing_family", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "et-0/0/3:1", + "et-0/0/3:2", + "et-0/0/3:3", + "et-0/0/3:4" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 100.08000000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 63, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 9, + "Nested Loop": 9, + "Seq Scan": 18 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0557709e2d8b3849ddb158031de17a5a720f8cdc33be4bc28e7cea2772c75230", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.6, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "0de296f6069a7728e0c818ffdc0d0708cc2bf33c222de22b5e36701e0804c26a", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 284.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", + "indexes": [ + "dcim_interface_vdcs_interface_id_6d58dbaf", + "dcim_virtua_name_079d4d_idx" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Incremental Sort": 4, + "Index Scan": 4, + "Materialize": 4, + "Nested Loop": 4 + }, + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 154, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 154, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_virtualdevicecontext", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_virtua_name_079d4d_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 90, + "Plan Width": 154, + "Relation Name": "dcim_virtualdevicecontext", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 45.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_vdcs", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_vdcs", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.36, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 70.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_virtualdevicecontext.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_virtualdevicecontext.name COLLATE natural_sort", + "dcim_virtualdevicecontext.id" + ], + "Startup Cost": 12.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 71.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.36, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", + "indexes": [ + "dcim_cabletermination_unique_termination" + ], + "node_types": { + "Index Only Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cabletermination", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 0.07, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 136, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 7365, + "wal_fpi": 0, + "wal_records": 105 + }, + "calls": 1, + "fingerprint": "1175acc2976b3d9dd6977b36d72332ebefee97c38f16ec3616b0eadd99d38a6f", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Values Scan": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "*VALUES*", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Values Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 136, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.07, + "WAL Buffers Full": 0, + "WAL Bytes": 7365, + "WAL FPI": 0, + "WAL Records": 105 + }, + "Triggers": [] + }, + "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "130a9c68e430a3cd6fd9977034ac17749d4ecf787ecccbeca066a016bbe92006", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Aggregate": 1, + "Index Scan": 1 + }, + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(channel_id > ?)", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 31, + "shared_read_blocks": 1, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1800, + "wal_fpi": 0, + "wal_records": 24 + }, + "calls": 1, + "fingerprint": "13654a06bacfac254fb06750f6d8a093129072cbc1c4c861af5e55c39289c486", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 2, + "Shared Hit Blocks": 31, + "Shared Read Blocks": 1, + "Shared Written Blocks": 1, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 1800, + "WAL FPI": 0, + "WAL Records": 24 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "13edc9d8b03c8192c752b0990ddec8628a0f89986aad094104f550b8ceee862b", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1446, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1236, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1228, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintaketemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingintaketemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.67, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.97, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "170089e639b60f660b823122e1dcd9f0ed100696c3c405ba66841e9a0a449e1e", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 25.53, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "17a433a868fc1c1bf882caf0745e1cee53b5bf6e987536bd207cb9a0357071bc", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 333, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 123, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 115, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_modulebaytemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.34, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.5, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.52, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_modulebaytemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 25.53, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.53, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.97, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1eef6a7f7b66b50b828eac092308401ecf0ecd7ac3e9f0f35bd8c2f5b2ca9077", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "1f3b36d8d13681dd41fb47eee39756eb8ee878347d2e444d42f6e225c1e0ae83", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Only Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 18.11, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2302d9b2f2d3af41c0a2c7ebb80cc28133e199b56139a0b449b04c5be391f327", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3069, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2938, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2046, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1915, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 33.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 156, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 6020, + "wal_fpi": 0, + "wal_records": 88 + }, + "calls": 4, + "fingerprint": "2ad63997c549a7fa9f09dbedec8f942933ec1aa124890a9a844a7568e3a5a8c3", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 4, + "ModifyTable": 4 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1505, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 18.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 49.54, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "332b5fd54c25ed756e674b40b64846fd49d3fd970c88bdbb8a8ee2e58057733d", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 2, + "Index Only Scan": 2, + "Index Scan": 4, + "Nested Loop": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.72, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 24.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.77, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "34a8f832c2911950ab3a2024a0b9c7b0bcdb877877e0d20de97ce9697bd64f17", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 29.75, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 17, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "36eb3f3d3369a6cdf593087fcc6577273b7d8d8cf4a9bf642aa7ad41e7918300", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 5, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.75, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 7, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.07, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 42, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 2205, + "wal_fpi": 0, + "wal_records": 28 + }, + "calls": 7, + "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", + "indexes": [], + "node_types": { + "ModifyTable": 7, + "Result": 7 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 315, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3cea1be9e5aa6d886c08bf6caf1a479a3b93cdc6c5e23af232ba84bf1e4de72a", + "indexes": [ + "dcim_consoleserverporttemplate_unique_module_type_name", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleserverporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.97, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "421f594faa0731f74fbb4a6851605c6c9d972471047d1c09f1cbd9fd54ea4d36", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 24.77, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4459502543f48c38817e6fc567f67e3a24796f336ba4bc0908836b987611d30f", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 2, + "Nested Loop": 2 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.72, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 24.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.77, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 83, + "actual_rows_times_loops": 83, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 83, + "planner_total_cost": 960.3100000000017, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 581, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 83, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 83, + "Hash Join": 83, + "Limit": 83, + "Seq Scan": 166 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "45bf8d6c0ee76807d0df879c6c274fccec89426f89da8a8588953b733c889a9a", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 141, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 141, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 121, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 11.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 137.8, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "45d5d2ed9d0ad1d23c9b95d52ec2e7b5b9237af2c643d322e9fd77ef60343dc9", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "ipam_vlangroup_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Hash": 4, + "Hash Join": 4, + "Index Scan": 4, + "Materialize": 4, + "Nested Loop": 8, + "Seq Scan": 8, + "Sort": 4 + }, + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 253, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 253, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(ipam_vlan.site_id = dcim_site.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 35, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 26, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "ipam_vlan", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 80, + "Plan Width": 26, + "Relation Name": "ipam_vlan", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.8, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 25, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 25, + "Relation Name": "dcim_site", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.61, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "ipam_vlangroup", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ipam_vlan.group_id)", + "Index Name": "ipam_vlangroup_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 226, + "Relation Name": "ipam_vlangroup", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.71, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.61, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 34.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_site.name COLLATE natural_sort", + "ipam_vlangroup.name COLLATE natural_sort", + "ipam_vlangroup.id", + "ipam_vlan.vid", + "ipam_vlan.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 34.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 34.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "48cabb300aea102df938a4632d5ab9692f4467a1cc8bc25922ca15793bb45743", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 2, + "Index Only Scan": 2, + "Index Scan": 2, + "Nested Loop": 2 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 13, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 13, + "planner_total_cost": 106.46999999999998, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 26, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 13, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 13, + "Sort": 13 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.6, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "4abb0442e2c8e75f799e2ff4277b53c8ed7a46e038b9bed2d16fd68ce8d1f9ae", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5161a089d32944aacde3d6b32a6937b401a635adbffa8e6e86f42032f39d5d19", + "indexes": [ + "dcim_consoleporttemplate_unique_module_type_name", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 23.88, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 24, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 216, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 4, + "fingerprint": "55d43a24ed589958003bf84c280f6c6cd39d4852c5abd6439b48afe9f325a9e9", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Seq Scan": 4 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 54, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", + "indexes": [ + "dcim_consoleserverport_unique_device_name", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 27.089999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "667d66c002552c9f55767cd7c49d660dc98fe86803bbdfe7d106ddd39a3c4d41", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_poweroutlettemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1304, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1094, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1086, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1058, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlettemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_poweroutlettemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6a250ea2a0c7f445cb802719ca76651a364263a07b34702a3aef716601a48040", + "indexes": [ + "dcim_coolingoutflow_device_id_74dd615f", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1116, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingoutflow.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 270, + "wal_fpi": 0, + "wal_records": 5 + }, + "calls": 1, + "fingerprint": "6b65fea395e35ff1a90c9b084dafc67c8bef2c225c62e5c4f460f157dda03015", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Scan": 2, + "LockRows": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "LockRows", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3092, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 2, + "Plan Width": 3092, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3092, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 863, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ANY ('?'::bigint[]))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2011, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.31, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 16.31, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 270, + "WAL FPI": 0, + "WAL Records": 5 + }, + "Triggers": [] + }, + "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" + }, + { + "aggregate": { + "actual_loops": 6, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 48.9, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 6, + "fingerprint": "6b9bcac00def8b4ff7fd59a573cb26a2a0fbd25315922a0c45a603903b813b76", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 6, + "Limit": 6 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 32, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 256, + "planner_total_cost": 1271.3600000000004, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 32, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 32, + "Bitmap Index Scan": 32, + "Hash": 32, + "Hash Join": 32, + "Index Scan": 64, + "Nested Loop": 64, + "Seq Scan": 32, + "Sort": 32 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6ff21baa021ac7ff51b30607e4072d8ddf915cc7e6dae2eb5df79f29751ce37a", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "762d501e081f48edd74a88728916d1d5c8539bd2abdf7ca579de1ba470fd6b43", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_powerport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_powerport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "77b8e4f8414ca97ddfb2defbe2072cc755e3736a1cdb523f7bdd09483c833a95", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 722, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 504, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 476, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.55, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.58, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.58, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "79b3f288d06d57cc72840fbfe5d222eb2e8203361ba9b6d88df42f2e87708e9c", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 2, + "Index Only Scan": 2, + "Index Scan": 2, + "Nested Loop": 2 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7ea46d85f0aa9c4aaeaa11dffdfdd0aab1897ddadad7c3987a8b0f96962328ed", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "82816bdc6b383a0bfb3655562991ff322c35f9e92caaef0da7f1bb26676f3585", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2005, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((name)::text = '?'::text)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "870f15a8572e4c2ebbfaf4fa1c52019f9318818f7ccc7566b430f62a7f3a7821", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_poweroutlet_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_poweroutlet.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "8d2173ab0cfc71a79faa199c07304df9f9fad9ee06c7edfa8134a2fa6ffcf0aa", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Only Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 892, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 53, + "shared_read_blocks": 11, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 575, + "wal_fpi": 0, + "wal_records": 8 + }, + "calls": 1, + "fingerprint": "95bc4b19ce9991973ddf719e69b14ff46f3213e1194be89cf320b40041a28791", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 896, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 896, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 53, + "Shared Read Blocks": 11, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 575, + "WAL FPI": 0, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 48, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 3611, + "wal_fpi": 0, + "wal_records": 35 + }, + "calls": 1, + "fingerprint": "9647c8a930f4400e04fc171adcea9ecd76a1ba413102db5b153f2b3c8d88e95c", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 378, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 48, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 3611, + "WAL FPI": 0, + "WAL Records": 35 + }, + "Triggers": [] + }, + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" + }, + { + "aggregate": { + "actual_loops": 13, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 104, + "planner_total_cost": 186.81000000000003, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 26, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 13, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 13, + "Bitmap Index Scan": 13 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 12.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 60, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a8b516f999ebee5826a066db69fa8df13327e64a670cba85d400f2e2b9698de8", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 80, + "planner_total_cost": 397.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + }, + { + "aggregate": { + "actual_loops": 18, + "actual_rows_times_loops": 18, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 18, + "planner_total_cost": 146.51999999999998, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 54, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 18, + "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 18, + "Limit": 18 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "acae54e9a8724a8e4a2798a9307fc965ce0c1c02277b027e97ab5c16155573ad", + "indexes": [ + "dcim_coolingintake_device_id_df1c3674", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ad681ef6c1663ff4cc32dfd9d7df0a0ac044a5742ed635bc2102eb5964ce9089", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_rearporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_rearporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b223da72643e47731a86e14b2fa6979a3b468cb411a85afda78aa1c160ba4554", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 65.76, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "b3777b38207c60808a9fdc334525ad008c42e43de9ede4317147890f1d3e5335", + "indexes": [ + "extras_tag_pkey", + "extras_tagg_content_717743_idx" + ], + "node_types": { + "Index Scan": 8, + "Nested Loop": 8, + "Seq Scan": 4, + "Sort": 4, + "Unique": 4 + }, + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Unique", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 916, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 916, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 916, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_taggeditem", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((content_type_id = django_content_type.id) AND (object_id = ?))", + "Index Name": "extras_tagg_content_717743_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 12, + "Relation Name": "extras_taggeditem", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_tag", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_taggeditem.tag_id)", + "Index Name": "extras_tag_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 916, + "Relation Name": "extras_tag", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_tag.weight", + "extras_tag.name", + "extras_tag.slug", + "extras_tag.created", + "extras_tag.last_updated", + "extras_tag.owner_id", + "extras_tag.id", + "extras_tag.color", + "extras_tag.description" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 16.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 16.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.44, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 29.75, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b6cfc8460b8da9c85a12b70c38baffa79e7d0a13dbe0222762076a17e2e3c818", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 5, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.75, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bc5b049f9ef8807616f1dbbaad1225c17a329dabd8dfea4ed10f2cbdbcea791f", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_powerporttemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 948, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 912, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_powerporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 34, + "shared_read_blocks": 1, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1554, + "wal_fpi": 0, + "wal_records": 22 + }, + "calls": 1, + "fingerprint": "bd5d2251ba765a9a1851eda8391904940c67d699aa9f8735d6cfea5c377a5174", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 2, + "Shared Hit Blocks": 34, + "Shared Read Blocks": 1, + "Shared Written Blocks": 1, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1554, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 24.77, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bf6cc0427bd3c868aea955603374ea990c8b9a3e558143fe5a49d74e5dd89183", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 2, + "Nested Loop": 2 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.72, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 24.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.77, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.97, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c2bc17f7c58694d993c7c94459e7aa951e2e20ce8ae53b60c3e64039fa7f7b8f", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 33, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1562, + "wal_fpi": 0, + "wal_records": 22 + }, + "calls": 1, + "fingerprint": "c38dbda229325d6f93975ea329f72a3639c9437fec35aee86ac8b286e0cf3495", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 33, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1562, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 24.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 237, + "wal_fpi": 0, + "wal_records": 3 + }, + "calls": 3, + "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 3, + "ModifyTable": 3 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 398.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", + "indexes": [ + "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "wireless_wi_ssid_64a9ce_idx" + ], + "node_types": { + "Index Only Scan": 8, + "Nested Loop": 4 + }, + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 90, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "wireless_wirelesslan", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Name": "wireless_wi_ssid_64a9ce_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 90, + "Relation Name": "wireless_wirelesslan", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 45.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_wireless_lans", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", + "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_interface_wireless_lans", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.91, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.29, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 99.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "cbf24f565034e8d7d8c2d32786b7d3399007f6cd1faa701190c829080c5bef86", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 5.97, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "cc506ef5115eea72cb6a71290ec18a9ad3da8ca5c16a42cb1b6bb3516117e602", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d725c59c89d2583c8bfad235e00854b605817bc129fe0003e0b0a5efae22aaf2", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + }, + { + "aggregate": { + "actual_loops": 13, + "actual_rows_times_loops": 13, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 13, + "planner_total_cost": 39.12999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 39, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 13, + "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", + "indexes": [], + "node_types": { + "Limit": 13, + "Seq Scan": 13 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 73.26, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 9, + "Limit": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 3, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 49.050000000000004, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 3, + "fingerprint": "dbf887eda54c114262ac17443fbd21da78fac511a996b047ad18481182001ec0", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 3, + "Index Only Scan": 3, + "Index Scan": 3, + "Nested Loop": 3 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "dc62d53b05e3896ac6f7631697e41dd5456e3f7b4d467934e2e7ff2b62ebdfad", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "dc74d7b6bbc2e49a504929642bda23ec48d5559f343a7e3d9dc5657b4102df8f", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 2, + "Index Only Scan": 2, + "Index Scan": 2, + "Nested Loop": 2 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 29.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 17, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "def8b7ee80ebc202e4e128a770dac6119ea37083560bc945294082f6bb3ad80a", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 4, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 4, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 4, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.69, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", + "indexes": [ + "dcim_consoleport_unique_device_name", + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 24.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 24, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "e419040bed4af7c6635bb2d9563b77bcbe142851b57b4ff3f7d02a06e92a691d", + "indexes": [], + "node_types": { + "Limit": 4, + "Seq Scan": 4 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 440, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e4b054f7183b15834f375d967f24be75186ab06fec35f196958c16e5845f19e9", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "e7302348e6f139d6f96e5bec9fcd1a4eb13cb984bd92a907433dfea86d00c387", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2005, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e91d170e25e21c9ea751a115f62397dd14d8c5dceee4b3bf42fbafce22979497", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.31, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 35, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1467, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "e98f740b1f002a34c1f818c3b8094af4f7a11beb450f3a9e2edd93f79aeab8da", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 378, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 35, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1467, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "eaf4dfa413b0a0454816c86c42dd7383e364e3e96e734f349b3efb1ad5420b26", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ee3649403cbd94a1e7fe43aa285e583280201118851313e1369cab04339b3f71", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_frontporttemplate_unique_module_type_name", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f03a1ca4f343b2c372eb5c922b534ed55347cb8726549baa7dfa62dae39e1765", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 24.81, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 99, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 4392, + "wal_fpi": 0, + "wal_records": 63 + }, + "calls": 3, + "fingerprint": "f6ae27a1d1d0012d8151e687d7c1a99487317e44b84a14e36d9ac87d1c0b59a7", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 3, + "ModifyTable": 3 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 33, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1464, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 315, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "fd7f7d7e00dea712d1718d2e3c7791c1d1e3ee0874e220736b1939f31e75aa8f", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 315, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 16.54, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 70, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 3140, + "wal_fpi": 0, + "wal_records": 44 + }, + "calls": 2, + "fingerprint": "fe3d62ee28e4d07ed66153d1d62f08e4e6551fc6b3f7c40bad23a534c3bbe68f", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 2, + "ModifyTable": 2 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 378, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 35, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1570, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 13, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 13 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 4 + }, + { + "calls": 13, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", + "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 32, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 4 + }, + { + "calls": 4, + "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", + "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 18, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 18 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 9 + }, + { + "calls": 29, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 10, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 29, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 83, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 83 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 10 + }, + { + "calls": 9, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 13, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 9, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 4, + "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 8, + "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", + "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 374, + "actual_rows_per_work_unit": 45.2, + "actual_rows_times_loops": 226, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 374, + "planner_rows": 852, + "planner_total_cost": 5782.180000000005, + "planner_total_cost_per_work_unit": 1156.436000000001, + "shared_dirtied_blocks": 5, + "shared_hit_blocks": 2155, + "shared_hit_blocks_per_work_unit": 431.0, + "shared_read_blocks": 13, + "shared_written_blocks": 2, + "statement_calls": 432, + "statement_calls_per_work_unit": 86.4, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 35206, + "wal_fpi": 0, + "wal_records": 482, + "work_units": 5 + } + }, + "description": "Deferred channel reconciliation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 803.235956, + "p95_ms": 848.0808356, + "samples_ns": [ + 798372323, + 800602717, + 799669034, + 820011919, + 795613685, + 816421480, + 813162635, + 852515372, + 781088870, + 818529457, + 811806137, + 803235956, + 792318643, + 785467324, + 846180320 + ] + }, + "wall": { + "median_ms": 1060.546962, + "p95_ms": 1100.3173511, + "samples_ns": [ + 1045920672, + 1060546962, + 1053462512, + 1089974855, + 1054155693, + 1081024935, + 1060655402, + 1096798403, + 1043082744, + 1062803215, + 1062186350, + 1058722249, + 1030355445, + 1032190579, + 1108528230 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 816.177775, + "p95_ms": 822.7844995, + "samples_ns": [ + 807435328, + 816177775, + 823518580 + ] + }, + "wall": { + "median_ms": 1079.16022, + "p95_ms": 1079.4812203, + "samples_ns": [ + 1051882097, + 1079160220, + 1079516887 + ] + } + } + }, + "name": "module.complete_model_save.reconciliation", + "semantic_result": { + "interface_names": [ + "3:1", + "3:2", + "3:3", + "3:4", + "et-0/0/3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 100.08000000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 63, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 9, + "Nested Loop": 9, + "Seq Scan": 18 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 21.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 21, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0c3c3db888027a7cb714ba6460d5833f6acc7de31821030b16b976ad0e83427a", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 284.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", + "indexes": [ + "dcim_interface_vdcs_interface_id_6d58dbaf", + "dcim_virtua_name_079d4d_idx" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Incremental Sort": 4, + "Index Scan": 4, + "Materialize": 4, + "Nested Loop": 4 + }, + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 154, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 154, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_virtualdevicecontext", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_virtua_name_079d4d_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 90, + "Plan Width": 154, + "Relation Name": "dcim_virtualdevicecontext", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 45.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_vdcs", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_vdcs", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.36, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 70.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_virtualdevicecontext.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_virtualdevicecontext.name COLLATE natural_sort", + "dcim_virtualdevicecontext.id" + ], + "Startup Cost": 12.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 71.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", + "indexes": [ + "dcim_cabletermination_unique_termination" + ], + "node_types": { + "Index Only Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cabletermination", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "20e0995c371f1f4692b2b66f7bee28347d77e5dcebbbafed0a9e1d8b70ce4a1f", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 39, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 2181, + "wal_fpi": 0, + "wal_records": 35 + }, + "calls": 1, + "fingerprint": "24726d5fc034be27f24b9a593fe9bee1eec87962ad16b58ab2283e89b8d962ef", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 2181, + "WAL FPI": 0, + "WAL Records": 35 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "258d7240a18c19ddd4eccc28989e74afa286047daa4df47cbac2302556d0f23f", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 141, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 141, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 121, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 11.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 48, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 2520, + "wal_fpi": 0, + "wal_records": 32 + }, + "calls": 8, + "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", + "indexes": [], + "node_types": { + "ModifyTable": 8, + "Result": 8 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 315, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 24.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", + "indexes": [ + "dcim_interface_unique_device_name" + ], + "node_types": { + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 50, + "actual_rows_times_loops": 50, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 50, + "planner_total_cost": 578.5, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 350, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 50, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 50, + "Hash Join": 50, + "Limit": 50, + "Seq Scan": 100 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 137.8, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "45d5d2ed9d0ad1d23c9b95d52ec2e7b5b9237af2c643d322e9fd77ef60343dc9", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "ipam_vlangroup_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Hash": 4, + "Hash Join": 4, + "Index Scan": 4, + "Materialize": 4, + "Nested Loop": 8, + "Seq Scan": 8, + "Sort": 4 + }, + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 253, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 253, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(ipam_vlan.site_id = dcim_site.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 35, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 26, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "ipam_vlan", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 80, + "Plan Width": 26, + "Relation Name": "ipam_vlan", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.8, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 25, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 25, + "Relation Name": "dcim_site", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.61, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "ipam_vlangroup", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ipam_vlan.group_id)", + "Index Name": "ipam_vlangroup_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 226, + "Relation Name": "ipam_vlangroup", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.71, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.61, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 34.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_site.name COLLATE natural_sort", + "ipam_vlangroup.name COLLATE natural_sort", + "ipam_vlangroup.id", + "ipam_vlan.vid", + "ipam_vlan.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 34.43, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 34.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 73.71, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 9, + "Sort": 9 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 32.64, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 216, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 4, + "fingerprint": "4ebe96fcf1fa62ccb17cd925d5b56db555732a443856816365f2a0da85e41211", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 4, + "ModifyTable": 4 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 54, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.28, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 34, + "shared_read_blocks": 1, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1562, + "wal_fpi": 0, + "wal_records": 22 + }, + "calls": 1, + "fingerprint": "5f179a09e193e472f6a5cf65d73adb07df376694bb72684128bcf2a9d5420a1b", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 2, + "Shared Hit Blocks": 34, + "Shared Read Blocks": 1, + "Shared Written Blocks": 1, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1562, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 15.049999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 3, + "planner_total_cost": 27.77, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "62dfc859714bc3e63f5bf2d06a35d167268493044fc8d078f59e76d49703e4dd", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 3, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 3, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Filter": "(channel_id IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 3, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(parent_id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.51, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.29, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 27.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.77, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1658, + "wal_fpi": 0, + "wal_records": 23 + }, + "calls": 1, + "fingerprint": "6649831d856b035c194aeef7c01bec4a480a8e6bcf0f528211c090a547f00feb", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 40, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1658, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 33.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 140, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 6280, + "wal_fpi": 0, + "wal_records": 88 + }, + "calls": 4, + "fingerprint": "6ba4d5011022ae20a9a29882519f481a9ebafff1b1a1bff410f8cf3f66a2875a", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "ModifyTable": 4 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 378, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 35, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1570, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" + }, + { + "aggregate": { + "actual_loops": 23, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 184, + "planner_total_cost": 913.7900000000002, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 23, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 23, + "Bitmap Index Scan": 23, + "Hash": 23, + "Hash Join": 23, + "Index Scan": 46, + "Nested Loop": 46, + "Seq Scan": 23, + "Sort": 23 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 10, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 10, + "planner_total_cost": 81.4, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 10, + "Limit": 10 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "86538109715723a243393c67cc277ff7e4ec13d48d425a9559056296a2f33bd4", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 31.75, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 21, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8690e4eb99399ac127942b52b55c0addd389e39a35c694e93a11380b6b23ed53", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 5, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.73, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.75, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.49, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "86de9cd145df632d3c8df49f0e359fe5764d799e91b6d3e8279e2f23ad403124", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 49.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "94a7f4df46a323222c424b26c7669806fff4925d9b34373455d02896cfbd1985", + "indexes": [ + "dcim_interface_unique_device_name" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 15.049999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.29, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9f6d1c068ddcacef5e49e9dc4abff6ba7a8d5691ad921b40085ec7b33cdd60c3", + "indexes": [ + "dcim_interface_unique_parent_channel_id" + ], + "node_types": { + "Index Only Scan": 1, + "Limit": 1, + "Result": 1 + }, + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Parent Relationship": "InitPlan", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Backward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.26, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.26, + "Subplan Name": "InitPlan 1", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 12.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 72, + "planner_total_cost": 129.33, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 9, + "Bitmap Index Scan": 9 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 65.76, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "b3777b38207c60808a9fdc334525ad008c42e43de9ede4317147890f1d3e5335", + "indexes": [ + "extras_tag_pkey", + "extras_tagg_content_717743_idx" + ], + "node_types": { + "Index Scan": 8, + "Nested Loop": 8, + "Seq Scan": 4, + "Sort": 4, + "Unique": 4 + }, + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Unique", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 916, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 916, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 916, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_taggeditem", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((content_type_id = django_content_type.id) AND (object_id = ?))", + "Index Name": "extras_tagg_content_717743_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 12, + "Relation Name": "extras_taggeditem", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_tag", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_taggeditem.tag_id)", + "Index Name": "extras_tag_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 916, + "Relation Name": "extras_tag", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_tag.weight", + "extras_tag.name", + "extras_tag.slug", + "extras_tag.created", + "extras_tag.last_updated", + "extras_tag.owner_id", + "extras_tag.id", + "extras_tag.color", + "extras_tag.description" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 16.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 16.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.44, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 33.41, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b522042a5e58eb4cbf5ab6ec38a5f1c3b101feb993b2bc1978d455321cacf49d", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 981, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 27, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 33.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 27, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 33.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 33.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 398.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", + "indexes": [ + "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "wireless_wi_ssid_64a9ce_idx" + ], + "node_types": { + "Index Only Scan": 8, + "Nested Loop": 4 + }, + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 90, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "wireless_wirelesslan", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Name": "wireless_wi_ssid_64a9ce_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 90, + "Relation Name": "wireless_wirelesslan", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 45.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_wireless_lans", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", + "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_interface_wireless_lans", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.91, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.29, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 99.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 270, + "wal_fpi": 0, + "wal_records": 5 + }, + "calls": 1, + "fingerprint": "cdd8b253e3555e87200c8c049d183c5b05ad3ffa03a4c40b1cc1c397eb34c6ce", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Incremental Sort": 1, + "Index Scan": 1, + "LockRows": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "LockRows", + "Parallel Aware": false, + "Plan Rows": 4, + "Plan Width": 2068, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 2068, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 2068, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 863, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 4, + "Plan Width": 987, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 12.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ANY ('?'::bigint[]))", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 4, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.54, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ANY ('?'::bigint[]))", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 12.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.9, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 12.67, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 32.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 32.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 32.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 32.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 32.24, + "WAL Buffers Full": 0, + "WAL Bytes": 270, + "WAL FPI": 0, + "WAL Records": 5 + }, + "Triggers": [] + }, + "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 27.089999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 16.56, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 78, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 3010, + "wal_fpi": 0, + "wal_records": 44 + }, + "calls": 2, + "fingerprint": "df2bb8f8ad1d3c70935c5bb6221d37363568ccf21d5912c40b35d10e0f4fc3c4", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "ModifyTable": 2 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1505, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "e6e60d8b3657c14565a93f604893ff25728f38324c3044c04a7e7ef22387de45", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 40.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 5, + "Limit": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 49.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "ef078615183a2af4c7a7cf6542c85158d0f32b5e3215f5982636460dfcafe135", + "indexes": [ + "dcim_interface_unique_parent_channel_id" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((parent_id = ?) AND (channel_id = ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 131.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 48, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "f5931459c983b29c0bd13c439547d43d830e882b8c02ded63145eecb3651d40e", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f9c75c7c0b6a4c79ed9f5bf5fa1407b8b3db30b7fee5eac241d6389b0d63400e", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 5, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 9, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", + "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 23, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 9 + }, + { + "calls": 9, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", + "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 10, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 10 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 9 + }, + { + "calls": 29, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 29, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 50, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 50 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 4, + "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 4, + "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", + "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 221, + "actual_rows_per_work_unit": 27.4, + "actual_rows_times_loops": 137, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 221, + "planner_rows": 524, + "planner_total_cost": 3582.48, + "planner_total_cost_per_work_unit": 716.496, + "shared_dirtied_blocks": 3, + "shared_hit_blocks": 1203, + "shared_hit_blocks_per_work_unit": 240.6, + "shared_read_blocks": 1, + "shared_written_blocks": 1, + "statement_calls": 279, + "statement_calls_per_work_unit": 55.8, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 18016, + "wal_fpi": 0, + "wal_records": 257, + "work_units": 5 + } + }, + "description": "Deferred channel reconciliation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 5, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 611.081947, + "p95_ms": 648.4423437, + "samples_ns": [ + 656362108, + 638913795, + 625321449, + 608223919, + 611081947, + 630979060, + 619425656, + 645048159, + 600751209, + 598939545, + 607361097, + 603659027, + 578782478, + 578349726, + 630436856 + ] + }, + "wall": { + "median_ms": 807.278396, + "p95_ms": 838.6323405, + "samples_ns": [ + 847391017, + 834878622, + 814319102, + 805535997, + 798704794, + 829072908, + 815917352, + 833921287, + 788875884, + 783367589, + 807278396, + 778341068, + 754220403, + 760423630, + 812662400 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 639.800823, + "p95_ms": 655.5630288, + "samples_ns": [ + 639800823, + 615660308, + 657314385 + ] + }, + "wall": { + "median_ms": 826.714249, + "p95_ms": 853.2754378, + "samples_ns": [ + 826714249, + 812707141, + 856226681 + ] + } + } + }, + "name": "module.direct_callback.reconciliation", + "semantic_result": { + "interface_names": [ + "3:1", + "3:2", + "3:3", + "3:4", + "et-0/0/3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 45, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1430, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "00685b0543ee8173ab522e12e049489bf5ebb80e9ff76a7ad597a93905550b4c", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 45, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1430, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0aec08a209907d95ef005ef34cc8b388ef5956d9e4b0bddfb0f210ad849b479e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "((id > ?) AND (id = ?))", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 16.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0fd70dee23075f61e903c6213865a3716cb55a296527729a166f09226a2eb0d9", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_devicebay_unique_device_name" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_devicebay", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_devicebay_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_devicebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "309131009a04f8af46c29da2903ee003d1a6d55a02c37ee24dd51eac2b3c793b", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 46, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 55, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "35edc223229aecec068d5880a7db8e587245a3e3765f27c0f3b550ca1f2d48f9", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 774, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 564, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 556, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 528, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 44, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 46, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 48, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 52, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 55, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 55, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.32, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 4.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 104.13, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 63, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 9, + "Hash Join": 9, + "Limit": 9, + "Seq Scan": 18 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.14, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 0, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 601, + "wal_fpi": 1, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "496ca2e09c3ba0e0efbd07738272f236602e331c9ef673890afcbaf2a3959e6a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.13, + "WAL Buffers Full": 0, + "WAL Bytes": 601, + "WAL FPI": 1, + "WAL Records": 1 + } + ], + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.14, + "WAL Buffers Full": 0, + "WAL Bytes": 601, + "WAL FPI": 1, + "WAL Records": 1 + } + ], + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 1.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.14, + "WAL Buffers Full": 0, + "WAL Bytes": 601, + "WAL FPI": 1, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.38, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 2, + "Sort": 2 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", + "indexes": [], + "node_types": { + "Result": 1 + }, + "normalized_sql": "SELECT pg_advisory_lock(?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 158.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Hash": 4, + "Hash Join": 4, + "Index Scan": 8, + "Nested Loop": 8, + "Seq Scan": 4, + "Sort": 4 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", + "indexes": [], + "node_types": { + "Result": 1 + }, + "normalized_sql": "SELECT pg_advisory_unlock(?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8b5bd3784921b667c5a167073be74d82279688df52604ad05fae8a06cf7136f8", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Filter": "(job_id = '?'::uuid)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "97b5fa96c9cf664b0e108230bb7240da416dcf62c0264d9229f618b719988111", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "97f18453092460d3cfc02cef47252029d1c898446e962867f08f634501875467", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 40, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 40, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 25.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 25, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 43.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 15, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9d2d4f98c2cfb9d4f88f4f219d98bf91e750416dab0950ff83b405b5a030c2fd", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" + ], + "node_types": { + "Hash": 1, + "Hash Join": 1, + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2994, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2863, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2791, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2084, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", + "Inner Unique": true, + "Join Type": "Right", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1895, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(device_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.4, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 43.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9fc916cdc69ae021285de1cecbc14947d0a811e460b8ee7b7a6390204c93ed9f", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 39, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 40, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 40, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.47, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ad08c4d87a3f2bbf2fb24298a3cfe0e6c6f0d814983efbc1eeae1f10a1eb191c", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1735, + "wal_fpi": 0, + "wal_records": 23 + }, + "calls": 1, + "fingerprint": "deb1a179ea341060c677d4d152ebb01cbd16b149e6f51dc3fa4e7a80c7d2c7e7", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1684, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 30, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 1735, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 72, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 7, + "shared_hit_blocks": 11, + "shared_read_blocks": 8, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1453, + "wal_fpi": 6, + "wal_records": 8 + }, + "calls": 1, + "fingerprint": "f3f133de4243a4f21ac6390901c2a7a0a3fd6c106581404fbd8b828d19fc1189", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 99, + "WAL FPI": 0, + "WAL Records": 1 + } + ], + "Relation Name": "core_job", + "Shared Dirtied Blocks": 7, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 8, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1453, + "WAL FPI": 6, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "00a48dac0e50d45e8aa347f6c079795d6c0cb09d3dffe4ee068f2874e8b385ed", + "normalized_sql": "SELECT %s AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = %s LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1919ddc31043c19525b5f3e5c2021bb0aaa0a6791b7391fe41aee034f5603368", + "normalized_sql": "SELECT pg_advisory_lock(%s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22b52f8fdd8b594e0f40265bea1076c4d7f0bd72bd33326a9a504ad5c757b278", + "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" > %s) ORDER BY ? ASC LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "26c8d42cff4acd7965798ced1cb2302a0de077fe35079bf687fd56e33ec956ab", + "normalized_sql": "SELECT pg_advisory_unlock(%s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3b2fd5e645edcb20006633441140723a008e260780c415f90ddb03e67f632970", + "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"description\" = %s, \"comments\" = %s, \"_config_context_data\" = %s, \"_config_context_generation\" = %s, \"local_context_data\" = %s, \"config_template_id\" = %s, \"device_type_id\" = %s, \"role_id\" = %s, \"tenant_id\" = %s, \"platform_id\" = %s, \"name\" = %s, \"serial\" = %s, \"asset_tag\" = %s, \"site_id\" = %s, \"location_id\" = %s, \"rack_id\" = %s, \"position\" = %s, \"face\" = %s, \"status\" = %s, \"airflow\" = %s, \"cooling_method\" = %s, \"primary_ip4_id\" = %s, \"primary_ip6_id\" = %s, \"oob_ip_id\" = %s, \"cluster_id\" = %s, \"virtual_chassis_id\" = %s, \"vc_position\" = %s, \"vc_priority\" = %s, \"latitude\" = %s, \"longitude\" = %s, \"console_port_count\" = %s, \"console_server_port_count\" = %s, \"power_port_count\" = %s, \"power_outlet_count\" = %s, \"cooling_intake_count\" = %s, \"cooling_outflow_count\" = %s, \"interface_count\" = %s, \"front_port_count\" = %s, \"rear_port_count\" = %s, \"device_bay_count\" = %s, \"module_bay_count\" = %s, \"inventory_item_count\" = %s WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3c389490b11937715c3d0964bc30ec7b13e51db1c13a2af0099105f714faa656", + "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = %s, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + %s) WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" IN (%s))", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5d7a97e86f815b27d234df91ae479de2138442699e863f4ff28d73aa304eb1fd", + "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::jsonb[]) RETURNING \"core_job\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "821b0cf47bc104eac1c0be61b6590a5102a2aaae1aa60ba1f6226bf8142dba44", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d4343dc9365f085be0168ec3e6c7882c1d9fbde207387e0851ebf489bfc0755d", + "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "e236397f933fab343403e0aa5aa12607f0cf386121c81a7e3d60ec370c91425e", + "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = %s AND \"core_job\".\"status\" IN (%s, %s, %s)) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", + "normalized_sql": "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\" = %s) LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 51, + "actual_rows_per_work_unit": 33.0, + "actual_rows_times_loops": 33, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 51, + "planner_rows": 83, + "planner_total_cost": 614.7899999999998, + "planner_total_cost_per_work_unit": 614.7899999999998, + "shared_dirtied_blocks": 8, + "shared_hit_blocks": 375, + "shared_hit_blocks_per_work_unit": 375.0, + "shared_read_blocks": 9, + "shared_written_blocks": 0, + "statement_calls": 59, + "statement_calls_per_work_unit": 59.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 5617, + "wal_fpi": 7, + "wal_records": 58, + "work_units": 1 + } + }, + "description": "Virtual chassis reapply across 1 module(s)", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 117.909426, + "p95_ms": 134.306368, + "samples_ns": [ + 119953022, + 117909426, + 133640587, + 112739606, + 121069008, + 112570927, + 110891003, + 124408162, + 122326080, + 122397335, + 101309699, + 111854918, + 106331204, + 135859857, + 115082624 + ] + }, + "wall": { + "median_ms": 155.170155, + "p95_ms": 177.4715785, + "samples_ns": [ + 159278508, + 155170155, + 177232576, + 149192727, + 158221042, + 151523288, + 149863797, + 163739305, + 166069682, + 164793496, + 143233532, + 146287704, + 142054780, + 178029251, + 154205860 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 104.190923, + "p95_ms": 119.0646713, + "samples_ns": [ + 120717310, + 103132835, + 104190923 + ] + }, + "wall": { + "median_ms": 140.867063, + "p95_ms": 158.8876694, + "samples_ns": [ + 160889959, + 140507929, + 140867063 + ] + } + } + }, + "name": "vc.complete_model_save.reapply_1", + "semantic_result": { + "interface_names": [ + "et-2/0/1" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 16089, + "wal_fpi": 4, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "2ed9c2a8a7a279e686f2abffed2b39c564d61dbd1fe32e7d7e545a1b36f0ba92", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 16089, + "WAL FPI": 4, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 43.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2f5ea9e95b777b13c03fda782807998220c59084445ba4912d844a9d78287f8e", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" + ], + "node_types": { + "Hash": 1, + "Hash Join": 1, + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2994, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2863, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2791, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2084, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", + "Inner Unique": true, + "Join Type": "Right", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1895, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(device_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.4, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 43.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 116787, + "wal_fpi": 23, + "wal_records": 23 + }, + "calls": 1, + "fingerprint": "35afe3ac0f6af997d233d59dfbab183a265c1c453925a977da4c5a892b6a3a09", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = ? WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 10, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 30, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 116787, + "WAL FPI": 23, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "e8b43469152c625ff5fb76776bc4ffc51e850db6a5e0e5672e7bfbcd6e308d29" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.32, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 4.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 6, + "actual_rows_times_loops": 6, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 69.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 42, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 6, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 6, + "Hash Join": 6, + "Limit": 6, + "Seq Scan": 12 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.19, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 24, + "planner_total_cost": 119.19, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 3, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 3, + "Bitmap Index Scan": 3, + "Hash": 3, + "Hash Join": 3, + "Index Scan": 6, + "Nested Loop": 6, + "Seq Scan": 3, + "Sort": 3 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 25.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 25, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c12f66423fd3ed8d7f927fece2c904e0a959cf025dbdb8f21e542373fa187492", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c3c7b17feaad93846aaf8a7102710fa97e0ad18ce97a0bf9b769d52516289501", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 13, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "dade775442c2ff56a4c2337c2f00d794a720aa01012003947aaa91bd0157d856", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 774, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 564, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 556, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 528, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 45, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 118693, + "wal_fpi": 21, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "e0ee11851bd1b96ad62e8463c88cc0d021f81044096ec775b2890988b1319268", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 45, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 118693, + "WAL FPI": 21, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 72, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 6 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "bc20d9e3dd0d64674cd73e58423e7090ace91f7ad989fb7d1aaabb21aea5169f", + "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = %s WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 36, + "actual_rows_per_work_unit": 24.0, + "actual_rows_times_loops": 24, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 36, + "planner_rows": 62, + "planner_total_cost": 484.69000000000005, + "planner_total_cost_per_work_unit": 484.69000000000005, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 240, + "shared_hit_blocks_per_work_unit": 240.0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 42, + "statement_calls_per_work_unit": 42.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 251569, + "wal_fpi": 48, + "wal_records": 48, + "work_units": 1 + } + }, + "description": "Virtual chassis reapply across 1 module(s)", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 93.752322, + "p95_ms": 106.101386, + "samples_ns": [ + 98114781, + 107370129, + 97105405, + 88881803, + 91792164, + 90240455, + 89742725, + 105557639, + 93752322, + 95930528, + 84866958, + 102515274, + 94754227, + 88552691, + 90935315 + ] + }, + "wall": { + "median_ms": 125.716252, + "p95_ms": 141.2369325, + "samples_ns": [ + 132809494, + 138619612, + 127538264, + 117957031, + 122703617, + 119473015, + 139887711, + 144385116, + 125716252, + 133737348, + 112912401, + 135787308, + 125292372, + 118159020, + 121413516 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 89.100886, + "p95_ms": 92.48249109999999, + "samples_ns": [ + 92858225, + 89100886, + 88720875 + ] + }, + "wall": { + "median_ms": 115.947712, + "p95_ms": 126.6983011, + "samples_ns": [ + 127892811, + 115947712, + 115412605 + ] + } + } + }, + "name": "vc.direct_callback.reapply_1", + "semantic_result": { + "interface_names": [ + "et-2/0/1" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 32.07999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 88.96000000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 56, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 8, + "Nested Loop": 8, + "Seq Scan": 16 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0aec08a209907d95ef005ef34cc8b388ef5956d9e4b0bddfb0f210ad849b479e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "((id > ?) AND (id = ?))", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 16.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0fd70dee23075f61e903c6213865a3716cb55a296527729a166f09226a2eb0d9", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_devicebay_unique_device_name" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_devicebay", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_devicebay_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_devicebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "16343db71cc16743dc5e78daf8dbe6c7627fdc3503f8fafc0c3c254d70b8bad9", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "249bad626e2303d58e84014db1019b03a333f5354f734d7e614dabd69689dd16", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "309131009a04f8af46c29da2903ee003d1a6d55a02c37ee24dd51eac2b3c793b", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 46, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 32.07999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "32da92a8d755e94997a327ed5a9045cd14824948734f8c152a16322a023a6298", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 24, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1276, + "wal_fpi": 0, + "wal_records": 16 + }, + "calls": 4, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Result": 4 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.32, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 4.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 43.99, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "39b6bd5ce6806fd8ee184b697b179ac0ef36c0cdbacb238d8912b4766bd92fdd", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" + ], + "node_types": { + "Hash": 2, + "Hash Join": 2, + "Index Scan": 3, + "Nested Loop": 4, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 2994, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2674, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2602, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", + "Inner Unique": true, + "Join Type": "Right", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1895, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 8, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(device_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.1, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.2, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 11.48, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.61, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 16, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 11.6, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.85, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 16, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 31, + "Startup Cost": 43.97, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.99, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 6, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 41.4, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 225, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 7410, + "wal_fpi": 0, + "wal_records": 110 + }, + "calls": 5, + "fingerprint": "3ff108e781065b2a0b5717a2bac4711aa2e75143c1f05a786e482a138e5f8b22", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 5, + "Bitmap Index Scan": 5, + "ModifyTable": 5 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 45, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1482, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 16, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 196.63999999999993, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 16, + "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", + "indexes": [ + "dcim_interface_unique_device_name" + ], + "node_types": { + "Bitmap Heap Scan": 16, + "Bitmap Index Scan": 16, + "Limit": 16 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "428a945ad48b67e3d1c5c2521ce4918dc8c6783e232a36efe061a49dd8cdbfa0", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 51, + "actual_rows_times_loops": 51, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 51, + "planner_total_cost": 590.07, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 357, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 51, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 51, + "Hash Join": 51, + "Limit": 51, + "Seq Scan": 102 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 73.71, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 9, + "Sort": 9 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5088068d602a7155f6772a6285f2cb0fa16b719c1838b67d1d20fb197384c168", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "530a98b11fd55786e4061f3051e338fa0d7ca35baae089ba1c57aa315d2baa9c", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 6, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "56af25ab48c8567b157de8f6b1598ae04a19d4f430012b5221cd64e10452811b", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 6, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "603d4bb63a8eb0ce4abf6fca9a12787bbcd59bf52f86ae4bde742c30b10a9b16", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 131.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "67f7c34189feff47adfe054d51fa804818fe89366e1ec51dab2226a33b13b5f7", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_module_id_05ca2da5" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_id = ?)", + "Index Name": "dcim_interface_module_id_05ca2da5", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", + "indexes": [], + "node_types": { + "Result": 1 + }, + "normalized_sql": "SELECT pg_advisory_lock(?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" + }, + { + "aggregate": { + "actual_loops": 25, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 200, + "planner_total_cost": 993.2500000000002, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 25, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 25, + "Bitmap Index Scan": 25, + "Hash": 25, + "Hash Join": 25, + "Index Scan": 50, + "Nested Loop": 50, + "Seq Scan": 25, + "Sort": 25 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", + "indexes": [], + "node_types": { + "Result": 1 + }, + "normalized_sql": "SELECT pg_advisory_unlock(?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" + }, + { + "aggregate": { + "actual_loops": 16, + "actual_rows_times_loops": 16, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 130.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 16, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 16, + "Limit": 16 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "82fc3244d9a6e9b21efd3aba5a844626da7200aa888e22307ca8f3509acdbad7", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8a098ef712214fb83c77ab6143964836a45b16f6057eb22f5e55c33166463f2b", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8b5bd3784921b667c5a167073be74d82279688df52604ad05fae8a06cf7136f8", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Filter": "(job_id = '?'::uuid)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8f0e110c5464b56237745430db0004dc62225de68398077e29fab6e90391f57a", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.28, + "shared_dirtied_blocks": 3, + "shared_hit_blocks": 46, + "shared_read_blocks": 0, + "shared_written_blocks": 2, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 4548, + "wal_fpi": 0, + "wal_records": 23 + }, + "calls": 1, + "fingerprint": "8f792049e9a571f0199e94d6cbfcbb66dea93a0152d5dfa5ba8bb258406725c0", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 3, + "Shared Hit Blocks": 46, + "Shared Read Blocks": 0, + "Shared Written Blocks": 2, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 4548, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 131.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "912269cae2b0ad8f7ffd7262eacb95a29f9230ce9727e1de8446ac0fd54814f4", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "94859a7b1e145b75e3afd6522a32cda4f17b9a114323889043aa832ae571dd26", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 6.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "97f18453092460d3cfc02cef47252029d1c898446e962867f08f634501875467", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 40, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 40, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 64, + "planner_total_cost": 114.96000000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.04, + "shared_dirtied_blocks": 4, + "shared_hit_blocks": 20, + "shared_read_blocks": 4, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1276, + "wal_fpi": 0, + "wal_records": 16 + }, + "calls": 4, + "fingerprint": "a7e329729b2108976886e9f2b9d844d95b698fbf1ffdf77f1bc1d6748abda579", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Result": 4 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 16.56, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 90, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 2860, + "wal_fpi": 0, + "wal_records": 42 + }, + "calls": 2, + "fingerprint": "ad06a3ef140190bf7e183dbf12fbbe555e2391eb889d023f10076dbca35de21c", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "ModifyTable": 2 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 45, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1430, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b0c3af9dd77ecd06025583861b96105386c82247a1ec941302309f6ba88d1291", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ba352944a218beb18642f08e148af80362a2d7ba4a4d9f822aaec56803505a3a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.13, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 1.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c3c7b17feaad93846aaf8a7102710fa97e0ad18ce97a0bf9b769d52516289501", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 269.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 120, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "c5bfd6bc21177c2d039c15980791f553f52d3040c29431aa6b6d6becd408dd6b", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 24, + "Nested Loop": 40, + "Seq Scan": 24, + "Sort": 8 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 774, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 564, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 556, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 528, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 33.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 33.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 33.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 6975, + "wal_fpi": 7, + "wal_records": 8 + }, + "calls": 1, + "fingerprint": "ceb8d2cd21d8c29dc42a914caa9d8960c98355e1c7954fbd6f67859f1729daab", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 99, + "WAL FPI": 0, + "WAL Records": 1 + } + ], + "Relation Name": "core_job", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 6975, + "WAL FPI": 7, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 5, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "de362d20efdc5b497a50660b54df9e8fe1b288c3dc202f5a5cf74c55a3bada4f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1735, + "wal_fpi": 0, + "wal_records": 23 + }, + "calls": 1, + "fingerprint": "deb1a179ea341060c677d4d152ebb01cbd16b149e6f51dc3fa4e7a80c7d2c7e7", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1684, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 30, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 1735, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 8.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 72, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ed28bd0e723f0906cde38d991df31df81e12a97152c3cda47dd150e851b2f545", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f02e7413432cf9ff90ebf8ba4af3a0e73f0d286908517a8fe6df435380039ab2", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 7, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 23.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f7a4661bd2b4ab5ba40f73e515c00b2d1f4c0e034312b3c56e17ca735335d102", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "00a48dac0e50d45e8aa347f6c079795d6c0cb09d3dffe4ee068f2874e8b385ed", + "normalized_sql": "SELECT %s AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = %s LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "1919ddc31043c19525b5f3e5c2021bb0aaa0a6791b7391fe41aee034f5603368", + "normalized_sql": "SELECT pg_advisory_lock(%s)", + "rows_affected": 1 + }, + { + "calls": 8, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "22b52f8fdd8b594e0f40265bea1076c4d7f0bd72bd33326a9a504ad5c757b278", + "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" > %s) ORDER BY ? ASC LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "26c8d42cff4acd7965798ced1cb2302a0de077fe35079bf687fd56e33ec956ab", + "normalized_sql": "SELECT pg_advisory_unlock(%s)", + "rows_affected": 1 + }, + { + "calls": 8, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "3b2fd5e645edcb20006633441140723a008e260780c415f90ddb03e67f632970", + "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"description\" = %s, \"comments\" = %s, \"_config_context_data\" = %s, \"_config_context_generation\" = %s, \"local_context_data\" = %s, \"config_template_id\" = %s, \"device_type_id\" = %s, \"role_id\" = %s, \"tenant_id\" = %s, \"platform_id\" = %s, \"name\" = %s, \"serial\" = %s, \"asset_tag\" = %s, \"site_id\" = %s, \"location_id\" = %s, \"rack_id\" = %s, \"position\" = %s, \"face\" = %s, \"status\" = %s, \"airflow\" = %s, \"cooling_method\" = %s, \"primary_ip4_id\" = %s, \"primary_ip6_id\" = %s, \"oob_ip_id\" = %s, \"cluster_id\" = %s, \"virtual_chassis_id\" = %s, \"vc_position\" = %s, \"vc_priority\" = %s, \"latitude\" = %s, \"longitude\" = %s, \"console_port_count\" = %s, \"console_server_port_count\" = %s, \"power_port_count\" = %s, \"power_outlet_count\" = %s, \"cooling_intake_count\" = %s, \"cooling_outflow_count\" = %s, \"interface_count\" = %s, \"front_port_count\" = %s, \"rear_port_count\" = %s, \"device_bay_count\" = %s, \"module_bay_count\" = %s, \"inventory_item_count\" = %s WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3c389490b11937715c3d0964bc30ec7b13e51db1c13a2af0099105f714faa656", + "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = %s, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + %s) WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" IN (%s))", + "rows_affected": 1 + }, + { + "calls": 25, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 8, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5d7a97e86f815b27d234df91ae479de2138442699e863f4ff28d73aa304eb1fd", + "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::jsonb[]) RETURNING \"core_job\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 16, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 16 + }, + { + "calls": 8, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 25, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 16, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "821b0cf47bc104eac1c0be61b6590a5102a2aaae1aa60ba1f6226bf8142dba44", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 25, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 51, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 51 + }, + { + "calls": 8, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 9, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d4343dc9365f085be0168ec3e6c7882c1d9fbde207387e0851ebf489bfc0755d", + "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 8, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "e236397f933fab343403e0aa5aa12607f0cf386121c81a7e3d60ec370c91425e", + "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = %s AND \"core_job\".\"status\" IN (%s, %s, %s)) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 253, + "actual_rows_per_work_unit": 21.5, + "actual_rows_times_loops": 172, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 253, + "planner_rows": 481, + "planner_total_cost": 3405.899999999999, + "planner_total_cost_per_work_unit": 425.7374999999999, + "shared_dirtied_blocks": 8, + "shared_hit_blocks": 1448, + "shared_hit_blocks_per_work_unit": 181.0, + "shared_read_blocks": 5, + "shared_written_blocks": 2, + "statement_calls": 303, + "statement_calls_per_work_unit": 37.875, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 26159, + "wal_fpi": 7, + "wal_records": 239, + "work_units": 8 + } + }, + "description": "Virtual chassis reapply across 8 module(s)", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 8, + "module_bays": 8, + "modules_before": 8 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 654.271237, + "p95_ms": 713.270928, + "samples_ns": [ + 654271237, + 615060578, + 633387478, + 686831907, + 680209969, + 639003392, + 671717342, + 658940765, + 712588674, + 638382340, + 646360814, + 606938921, + 630440094, + 672007287, + 714862854 + ] + }, + "wall": { + "median_ms": 867.96403, + "p95_ms": 930.100548, + "samples_ns": [ + 867964030, + 829684844, + 845160876, + 906934977, + 888067556, + 866695574, + 919705086, + 888269774, + 932385026, + 855134413, + 864464552, + 809304580, + 859091726, + 882138259, + 929121486 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 656.835681, + "p95_ms": 684.6390984, + "samples_ns": [ + 644584539, + 687728367, + 656835681 + ] + }, + "wall": { + "median_ms": 890.086206, + "p95_ms": 930.055242, + "samples_ns": [ + 854238159, + 934496246, + 890086206 + ] + } + } + }, + "name": "vc.complete_model_save.reapply_8", + "semantic_result": { + "interface_names": [ + "et-2/0/1", + "et-2/0/2", + "et-2/0/3", + "et-2/0/4", + "et-2/0/5", + "et-2/0/6", + "et-2/0/7", + "et-2/0/8" + ], + "interfaces_after": 8 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "00ae3ac393cf50833b2da5389c4acfe0fd6a80919d8ad1c4bac157993fc671b6", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 6, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 32.07999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 88.96000000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 56, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "indexes": [], + "node_types": { + "Limit": 8, + "Nested Loop": 8, + "Seq Scan": 16 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Filter": "(contenttype_ptr_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2967ad7fbeab1bbdd8e80c9d985eaa8717cea77094d6e9158970f3bad26dc74f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Only Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 32.07999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 48, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 2552, + "wal_fpi": 0, + "wal_records": 32 + }, + "calls": 8, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], + "node_types": { + "ModifyTable": 8, + "Result": 8 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 6, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 16, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 196.63999999999993, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 16, + "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", + "indexes": [ + "dcim_interface_unique_device_name" + ], + "node_types": { + "Bitmap Heap Scan": 16, + "Bitmap Index Scan": 16, + "Limit": 16 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + }, + { + "aggregate": { + "actual_loops": 48, + "actual_rows_times_loops": 48, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 48, + "planner_total_cost": 555.3599999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 336, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 48, + "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "indexes": [], + "node_types": { + "Hash": 48, + "Hash Join": 48, + "Limit": 48, + "Seq Scan": 96 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 164.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 164, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.49, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.57, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.52, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 8, + "Sort": 8 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4b3f09c885e704bde57408d55d1cbd9fa15823e5ff1361656b4bdcf5aec0718d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "561fbaeeec050a5f5c8bced263ffe486b4a7340c63f9d5ca6fd89732ad0e0d55", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "57606ae110c1e9671efd30d05775a5f95c572c6ea54f26e6e5e8ab86da133db9", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "5868afc0e5bc524b262b88aa536618312ad21270c67a9777c3933db618a28f3d", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6266affd344bc07db03337c045a4429942f6c1453eb5fc410fefb6b1057be296", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 6, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 131.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "67f7c34189feff47adfe054d51fa804818fe89366e1ec51dab2226a33b13b5f7", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_module_id_05ca2da5" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_id = ?)", + "Index Name": "dcim_interface_module_id_05ca2da5", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 24, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 192, + "planner_total_cost": 953.5200000000002, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 24, + "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 24, + "Bitmap Index Scan": 24, + "Hash": 24, + "Hash Join": 24, + "Index Scan": 48, + "Nested Loop": 48, + "Seq Scan": 24, + "Sort": 24 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.56, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.59, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 39.71, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 39.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "73e2d8537045ce9c30d1722c2d7e507880449805c56f4ed5604d644b20f28fc5", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 16, + "actual_rows_times_loops": 16, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 130.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 32, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 16, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 16, + "Limit": 16 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.32, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "74af7fd4cadc23998a322fa9d7b04bfdbce28ef131f960a813b6a4152b9ca169", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 5.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "79e70318fac6b24c88bd6b7b052c44759be094baa2aee300cd34cb5fc4f6e193", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1551, + "wal_fpi": 0, + "wal_records": 23 + }, + "calls": 1, + "fingerprint": "84b96b20f03fda1748a2fbfaf2d8680a800f7f4cadd39dd27577fe0b5111d41a", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = ? WHERE \"dcim_device\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 10, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 30, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 1551, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "e8b43469152c625ff5fb76776bc4ffc51e850db6a5e0e5672e7bfbcd6e308d29" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 131.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "912269cae2b0ad8f7ffd7262eacb95a29f9230ce9727e1de8446ac0fd54814f4", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9ea4b85d2cd4d50ece1066c78d0cdfb532c22354b7d66bc08bdf2e084f4b9d7e", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9edd00de4778e5b098b5f1b9ce6f8cba89a7de9c3bbad595b202ece5b0005926", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 64, + "planner_total_cost": 114.96000000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 66.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 368, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 11440, + "wal_fpi": 0, + "wal_records": 168 + }, + "calls": 8, + "fingerprint": "a68f2537641b36a06f6040432385ecb83dc265ecdf50b0e9407d34e7fe75c8bb", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "ModifyTable": 8 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 46, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1430, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "aaabc410637cbba182dc43f3236d76affc60bb276770251e53baa9cfa026e5bd", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b3fd6013083f73b60d5974320c6ecd96952e2d8ec0e16c63b387982b7e69a127", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b521b62701b8e15476b5d784e9ffab167d1997843e8cee66437c2194f1f7e1d9", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b6c299e996c34b97c94b790927013d6f4f4016c4b308a805030b103040b008f8", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 48.99, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 21, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "c245209c00d5c67a99bdcffe1f28bb648de0fdb67991224cb0875c5840bbef0b", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" + ], + "node_types": { + "Hash": 2, + "Hash Join": 2, + "Index Scan": 3, + "Nested Loop": 4, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 2994, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2674, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2602, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", + "Inner Unique": true, + "Join Type": "Right", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1895, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 8, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(device_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.1, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.2, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 13.48, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 40.61, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 13.6, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 48.85, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 31, + "Startup Cost": 48.97, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 48.99, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 269.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 120, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "c5bfd6bc21177c2d039c15980791f553f52d3040c29431aa6b6d6becd408dd6b", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 24, + "Nested Loop": 40, + "Seq Scan": 24, + "Sort": 8 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 774, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 564, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 556, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 528, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 33.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 33.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 33.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 35.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 19, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ca984f66e18e1774429cb2be58c30061032e0d4963f3fe0da0c467f930368dd3", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 6.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d0a7c40642f2e64c38e8d6772564685abc00983b41fbef81e1dea304976ca8a2", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 5, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e7084bd50248f6b3c189c151399634b073d2514dc4799866ae17beff84af98e1", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 13.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e9c747cf2be3b1049547f5959c9d7f7486a3f62ec896d3bbba38568c56052cd6", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 8.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], + "node_types": { + "Limit": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 72, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f02e7413432cf9ff90ebf8ba4af3a0e73f0d286908517a8fe6df435380039ab2", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 7, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + } + ], + "statements": [ + { + "calls": 8, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 8 + }, + { + "calls": 24, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 8, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 16, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 16 + }, + { + "calls": 8, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 24, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 16, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 24, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 48, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 48 + }, + { + "calls": 8, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "bc20d9e3dd0d64674cd73e58423e7090ace91f7ad989fb7d1aaabb21aea5169f", + "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = %s WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 8, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 8, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 239, + "actual_rows_per_work_unit": 20.5, + "actual_rows_times_loops": 164, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 239, + "planner_rows": 461, + "planner_total_cost": 3400.2699999999973, + "planner_total_cost_per_work_unit": 425.03374999999966, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 1492, + "shared_hit_blocks_per_work_unit": 186.5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 287, + "statement_calls_per_work_unit": 35.875, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 15543, + "wal_fpi": 0, + "wal_records": 223, + "work_units": 8 + } + }, + "description": "Virtual chassis reapply across 8 module(s)", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 8, + "module_bays": 8, + "modules_before": 8 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 615.049383, + "p95_ms": 643.1125176, + "samples_ns": [ + 601229200, + 620317766, + 653757349, + 621792822, + 638550447, + 600525985, + 603230398, + 561181367, + 629088982, + 594053941, + 571742556, + 632237380, + 573695822, + 620966672, + 615049383 + ] + }, + "wall": { + "median_ms": 814.479289, + "p95_ms": 845.6796206, + "samples_ns": [ + 810702860, + 822177112, + 854013913, + 842107781, + 833056774, + 804443677, + 798934157, + 728639980, + 817991106, + 810473313, + 762617984, + 821374281, + 756150524, + 814479289, + 816673894 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 609.625781, + "p95_ms": 638.4678911, + "samples_ns": [ + 592392412, + 609625781, + 641672570 + ] + }, + "wall": { + "median_ms": 809.0978, + "p95_ms": 836.0245445, + "samples_ns": [ + 782095562, + 809097800, + 839016405 + ] + } + } + }, + "name": "vc.direct_callback.reapply_8", + "semantic_result": { + "interface_names": [ + "et-2/0/1", + "et-2/0/2", + "et-2/0/3", + "et-2/0/4", + "et-2/0/5", + "et-2/0/6", + "et-2/0/7", + "et-2/0/8" + ], + "interfaces_after": 8 + } + } + ], + "schema_version": 1 +} diff --git a/performance/baselines/existing-feature.md b/performance/baselines/existing-feature.md new file mode 100644 index 0000000..4391eff --- /dev/null +++ b/performance/baselines/existing-feature.md @@ -0,0 +1,29 @@ +# Existing automatic naming performance + +This file is generated by `netbox_interface_name_rules.tests.signal_performance`. +Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits. + +| Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) | +| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | +| `module.complete_model_save.no_matching_rule` | complete_model_save | 60 | 837.360 | 173 | 138.678 | 157.046 | 96.561 | +| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 15.440 | 15 | 18.348 | 20.589 | 14.661 | +| `module.complete_model_save.plain_rename` | complete_model_save | 96 | 1272.830 | 463 | 238.025 | 254.298 | 170.799 | +| `module.direct_callback.plain_rename` | direct_callback | 40 | 324.540 | 182 | 116.843 | 128.495 | 87.404 | +| `module.complete_model_save.structural_creation` | complete_model_save | 172 | 2404.020 | 849 | 372.509 | 391.993 | 270.402 | +| `module.direct_callback.structural_creation` | direct_callback | 119 | 1360.260 | 555 | 251.240 | 289.205 | 185.684 | +| `module.complete_model_save.existing_family` | complete_model_save | 333 | 3993.180 | 1895 | 766.828 | 804.635 | 579.244 | +| `module.direct_callback.existing_family` | direct_callback | 180 | 1766.330 | 706 | 460.578 | 492.982 | 355.068 | +| `module.complete_model_save.reconciliation` | complete_model_save | 432 | 5782.180 | 2155 | 1060.547 | 1100.317 | 803.236 | +| `module.direct_callback.reconciliation` | direct_callback | 279 | 3582.480 | 1203 | 807.278 | 838.632 | 611.082 | +| `vc.complete_model_save.reapply_1` | complete_model_save | 59 | 614.790 | 375 | 155.170 | 177.472 | 117.909 | +| `vc.direct_callback.reapply_1` | direct_callback | 42 | 484.690 | 240 | 125.716 | 141.237 | 93.752 | +| `vc.complete_model_save.reapply_8` | complete_model_save | 303 | 3405.900 | 1448 | 867.964 | 930.101 | 654.271 | +| `vc.direct_callback.reapply_8` | direct_callback | 287 | 3400.270 | 1492 | 814.479 | 845.680 | 615.049 | + +Plugin revision: `ccadd0bb5b2852ff81f2747769d61746254173e1` + +NetBox revision: `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` + +PostgreSQL: `18.3 (Debian 18.3-1.pgdg13+1)` + +Samples per scenario: `15` From 5ba639836b1866165d736d96c218a553aeb3440e Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 14:56:22 +0200 Subject: [PATCH 02/74] test: isolate virtual chassis callback baseline --- .../tests/signal_performance.py | 10 +- performance/baselines/existing-feature.json | 116615 ++++++++------- performance/baselines/existing-feature.md | 28 +- 3 files changed, 58487 insertions(+), 58166 deletions(-) diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index 35af353..ae8be6f 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -712,9 +712,9 @@ def _prepare_vc(self, prefix: str, module_count: int, direct: bool) -> _Prepared ) if direct: + Device.objects.filter(pk=device.pk).update(vc_position=2) def operation(): - Device.objects.filter(pk=device.pk).update(vc_position=2) with self.captureOnCommitCallbacks(execute=True): _apply_rules_for_device_deferred(device.pk) @@ -781,6 +781,14 @@ def _scenarios(self) -> list[_Scenario]: ) return scenarios + def test_direct_vc_fixture_has_target_position(self): + """Keep direct callback setup outside the measured operation.""" + prefix = "PerfDirectVcFixture" + self._prepare_vc(prefix, module_count=1, direct=True) + + device = Device.objects.get(name=f"{prefix.lower()}-device") + self.assertEqual(device.vc_position, 2) + @staticmethod def _analyze_tables() -> None: """Refresh planner statistics after each fixture is prepared.""" diff --git a/performance/baselines/existing-feature.json b/performance/baselines/existing-feature.json index 144f4d6..79f32db 100644 --- a/performance/baselines/existing-feature.json +++ b/performance/baselines/existing-feature.json @@ -39,7 +39,7 @@ "python_implementation": "CPython", "python_version": "3.14.4" }, - "generated_at": "2026-08-23T12:26:03.664648+00:00", + "generated_at": "2026-08-23T12:54:58.775104+00:00", "scenarios": [ { "database": { @@ -53,10 +53,178 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.29, + "planner_total_cost": 9.2, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 1, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0810b524418676bab577a04282c826d55b4b0a64faee10dc6f1bec75705668f1", + "indexes": [ + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, @@ -65,14 +233,109 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "06206f29a19a7d0a97454136cdb1f673a3e88ccde61e00e8ba6df0e7481174b8", + "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", "indexes": [], "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 892, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 16.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "287f6e4f8de18e3f1d0988d452241794c0eed8685452b3906a4795c9b837819f", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7" + ], + "node_types": { + "Index Scan": 1, "Nested Loop": 5, - "Seq Scan": 6, + "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -86,7 +349,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 340, + "Plan Width": 1313, "Plans": [ { "Actual Loops": 1, @@ -94,8 +357,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -104,7 +367,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 340, + "Plan Width": 1313, "Plans": [ { "Actual Loops": 1, @@ -112,8 +375,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -122,7 +385,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 1305, "Plans": [ { "Actual Loops": 1, @@ -140,7 +403,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 122, + "Plan Width": 1095, "Plans": [ { "Actual Loops": 1, @@ -148,7 +411,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -158,7 +421,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 114, + "Plan Width": 1087, "Plans": [ { "Actual Loops": 1, @@ -175,34 +438,37 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 86, + "Plan Width": 1059, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", + "Alias": "dcim_coolingoutflowtemplate", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -241,13 +507,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.05, + "Total Cost": 9.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -276,7 +542,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -285,13 +551,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.07, + "Total Cost": 11.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -320,7 +586,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -329,13 +595,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.09, + "Total Cost": 13.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -344,7 +610,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -354,9 +620,9 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -364,7 +630,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -373,13 +639,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.11, + "Total Cost": 14.4, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -388,7 +654,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -398,9 +664,9 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -408,7 +674,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -417,13 +683,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.27, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -431,8 +697,8 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", @@ -440,15 +706,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 6.28, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.29, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -456,7 +722,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" }, { "aggregate": { @@ -467,9 +733,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 9.2, + "planner_total_cost": 9.29, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -479,17 +745,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0810b524418676bab577a04282c826d55b4b0a64faee10dc6f1bec75705668f1", - "indexes": [ - "dcim_frontport_unique_device_name" - ], + "fingerprint": "2b567132d9b4ca6f5aaf2c05b6032bb8da8e2c87317c4e0e41590ea04f4432aa", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 6, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -503,14 +766,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 734, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -520,199 +784,282 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 734, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0b55ea786aa3e924e1a37965073194de2d970f854fb7762f2b4341eee3bab196", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Width": 726, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 516, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 508, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 480, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.05, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.0, + "Total Cost": 7.25, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -721,10 +1068,9 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_device", + "Alias": "T7", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -733,9 +1079,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -743,21 +1088,22 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.02, + "Total Cost": 9.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -765,112 +1111,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 1.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1af2e3ed2389aca1a9be82b187cf2ce490c09f3cc3f849f434ba8addd11e34a0", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 9.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 9.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -878,7 +1136,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" }, { "aggregate": { @@ -889,7 +1147,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.29, + "planner_total_cost": 9.29, "shared_dirtied_blocks": 0, "shared_hit_blocks": 1, "shared_read_blocks": 0, @@ -901,14 +1159,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "2189a56c4e3982e953c29a677882731ea25be41f8ecfd4b989e791801c4b5cab", + "fingerprint": "3e487b3187e0b8286200db203cc469dfda48ac71487a25db7e1f5c58a024a950", "indexes": [], "node_types": { "Nested Loop": 5, "Seq Scan": 6, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -922,7 +1180,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 734, + "Plan Width": 340, "Plans": [ { "Actual Loops": 1, @@ -930,8 +1188,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -940,7 +1198,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 734, + "Plan Width": 340, "Plans": [ { "Actual Loops": 1, @@ -948,8 +1206,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -958,7 +1216,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 524, + "Plan Width": 332, "Plans": [ { "Actual Loops": 1, @@ -976,7 +1234,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 516, + "Plan Width": 122, "Plans": [ { "Actual Loops": 1, @@ -984,7 +1242,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -994,7 +1252,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 508, + "Plan Width": 114, "Plans": [ { "Actual Loops": 1, @@ -1011,15 +1269,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 480, + "Plan Width": 86, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", + "Alias": "dcim_modulebaytemplate", "Async Capable": false, "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -1028,8 +1286,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, @@ -1112,7 +1370,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1127,7 +1385,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.07, + "Total Cost": 4.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1156,7 +1414,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1171,7 +1429,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.09, + "Total Cost": 6.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1180,7 +1438,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T7", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -1190,9 +1448,9 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -1200,7 +1458,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1215,7 +1473,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.11, + "Total Cost": 7.25, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1224,7 +1482,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -1234,9 +1492,9 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -1244,7 +1502,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1259,7 +1517,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.27, + "Total Cost": 9.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1274,17 +1532,17 @@ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T7\".name", + "\"T6\".name", "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_modulebaytemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 6.28, + "Startup Cost": 9.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.29, + "Total Cost": 9.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1292,7 +1550,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" }, { "aggregate": { @@ -1558,16 +1816,16 @@ }, { "aggregate": { - "actual_loops": 13, - "actual_rows_times_loops": 13, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 13, - "planner_total_cost": 150.40999999999997, + "planner_rows": 1, + "planner_total_cost": 9.2, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 91, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -1576,138 +1834,112 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 13, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "48fe47d419bf32d923c66dbfa7bb2d0cad50614f70ff129ec171b1c114d99313", + "indexes": [ + "dcim_coolingintake_device_id_df1c3674" + ], "node_types": { - "Hash": 13, - "Hash Join": 13, - "Limit": 13, - "Seq Scan": 26 + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", - "Inner Unique": true, + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", "Async Capable": false, "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.64, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1715,13 +1947,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 9.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1729,13 +1961,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 9.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1743,7 +1982,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" }, { "aggregate": { @@ -1753,10 +1992,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, + "planner_rows": 8, + "planner_total_cost": 40.53, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -1766,17 +2005,23 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "48fe47d419bf32d923c66dbfa7bb2d0cad50614f70ff129ec171b1c114d99313", + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ - "dcim_coolingintake_device_id_df1c3674" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Hash": 1, + "Hash Join": 1, + "Index Scan": 2, + "Nested Loop": 2, "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -1789,16 +2034,16 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1264, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -1806,40 +2051,224 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1264, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1848,29 +2277,32 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_device", + "Alias": "extras_customfieldchoiceset", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1878,13 +2310,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.18, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1892,20 +2324,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 9.19, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.2, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -1913,7 +2346,106 @@ }, "Triggers": [] }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" }, { "aggregate": { @@ -1924,7 +2456,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_total_cost": 16.43, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -1936,9 +2468,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "504e8318c5865dc37adb5ccafc796b62e32a19be779e12d2ae6a0896c41fc9bd", + "fingerprint": "5875eb27f383ced41e544d3eabd7292e6457519be5a2ac83fc664b2b7667561c", "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7" + "dcim_powerporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, @@ -1946,7 +2478,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -1960,7 +2492,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1313, + "Plan Width": 1165, "Plans": [ { "Actual Loops": 1, @@ -1978,7 +2510,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1313, + "Plan Width": 1165, "Plans": [ { "Actual Loops": 1, @@ -1996,7 +2528,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1305, + "Plan Width": 1157, "Plans": [ { "Actual Loops": 1, @@ -2014,7 +2546,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1095, + "Plan Width": 947, "Plans": [ { "Actual Loops": 1, @@ -2022,7 +2554,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -2032,7 +2564,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1087, + "Plan Width": 939, "Plans": [ { "Actual Loops": 1, @@ -2049,16 +2581,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1059, + "Plan Width": 911, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", + "Alias": "dcim_powerporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -2068,8 +2600,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -2153,7 +2685,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2168,7 +2700,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.22, + "Total Cost": 11.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2197,7 +2729,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2212,7 +2744,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.24, + "Total Cost": 13.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2256,7 +2788,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.4, + "Total Cost": 14.4, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2285,7 +2817,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2300,7 +2832,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2317,15 +2849,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + "dcim_powerporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.43, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.43, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2333,7 +2865,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" }, { "aggregate": { @@ -2344,7 +2876,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_total_cost": 16.43, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -2356,9 +2888,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "54b4f16cd4a2c416b08ec2913d6824ba1ce8a0924b03c62403b71265d5fb3bcf", + "fingerprint": "63b464da8f531cc5ee55449fe988de87a36ff0adfe6b6ab7ced1c16f368c30fe", "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e" + "dcim_poweroutlettemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, @@ -2366,7 +2898,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -2380,7 +2912,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1453, + "Plan Width": 1311, "Plans": [ { "Actual Loops": 1, @@ -2398,7 +2930,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1453, + "Plan Width": 1311, "Plans": [ { "Actual Loops": 1, @@ -2416,7 +2948,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1445, + "Plan Width": 1303, "Plans": [ { "Actual Loops": 1, @@ -2434,7 +2966,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1235, + "Plan Width": 1093, "Plans": [ { "Actual Loops": 1, @@ -2442,7 +2974,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -2452,7 +2984,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1227, + "Plan Width": 1085, "Plans": [ { "Actual Loops": 1, @@ -2469,16 +3001,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1199, + "Plan Width": 1057, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", + "Alias": "dcim_poweroutlettemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -2488,8 +3020,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -2544,7 +3076,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.19, + "Total Cost": 9.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2573,7 +3105,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2588,7 +3120,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.21, + "Total Cost": 11.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2617,7 +3149,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2632,7 +3164,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.24, + "Total Cost": 13.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2676,7 +3208,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.39, + "Total Cost": 14.4, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2705,7 +3237,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2720,7 +3252,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2737,114 +3269,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", - "indexes": [], - "node_types": { - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" + "dcim_poweroutlettemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 1.02, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.03, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -2852,7 +3285,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" }, { "aggregate": { @@ -2863,7 +3296,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_total_cost": 16.43, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -2875,9 +3308,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "67a9f02849d293f05873f91eeb6b326f31ac2879a5c8fa154c9d697a26b06f09", + "fingerprint": "692f723540adadf50fa7db00aa9a163f2b3a96111c945ce6a5f9930d0529d217", "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name" + "dcim_rearporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, @@ -2885,7 +3318,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -2899,7 +3332,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1157, + "Plan Width": 1187, "Plans": [ { "Actual Loops": 1, @@ -2917,7 +3350,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1157, + "Plan Width": 1187, "Plans": [ { "Actual Loops": 1, @@ -2935,7 +3368,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1149, + "Plan Width": 1179, "Plans": [ { "Actual Loops": 1, @@ -2953,7 +3386,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 939, + "Plan Width": 969, "Plans": [ { "Actual Loops": 1, @@ -2961,7 +3394,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -2971,7 +3404,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 931, + "Plan Width": 961, "Plans": [ { "Actual Loops": 1, @@ -2988,16 +3421,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 903, + "Plan Width": 933, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", + "Alias": "dcim_rearporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -3007,8 +3440,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -3092,7 +3525,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3107,7 +3540,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.22, + "Total Cost": 11.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3136,7 +3569,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3151,7 +3584,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.24, + "Total Cost": 13.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3195,7 +3628,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.4, + "Total Cost": 14.4, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3224,7 +3657,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3239,7 +3672,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3256,15 +3689,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" + "dcim_rearporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.43, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.43, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3272,20 +3705,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 39.73, + "planner_rows": 1, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -3295,318 +3728,54 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], + "fingerprint": "6b8be6c886d06ab4c122b8ee6e3f855e8da9b541608c8ab1395409873082a320", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Hash": 1, - "Hash Join": 1, - "Index Scan": 2, - "Nested Loop": 2, - "Seq Scan": 1, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3614,21 +3783,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -3636,7 +3797,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { @@ -3742,7 +3903,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_total_cost": 9.2, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -3754,17 +3915,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6fd786a4a81615d8593f7554b92cb12753e113c7531beb290596845b51913d06", + "fingerprint": "785d2a61ab4e37cda0e3f74a04dff29dc10bd949bae7d42c30baed955ffb6e3c", "indexes": [ - "dcim_frontporttemplate_unique_module_type_name" + "dcim_coolingoutflow_device_id_74dd615f" ], "node_types": { "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, + "Nested Loop": 1, + "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -3778,15 +3939,14 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1187, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -3796,277 +3956,31 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1187, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1179, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 969, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 961, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 933, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -4074,7 +3988,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.4, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -4083,9 +3997,10 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -4094,8 +4009,9 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -4110,7 +4026,6 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -4118,7 +4033,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 9.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -4130,20 +4045,16 @@ "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_coolingoutflow.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.43, + "Startup Cost": 9.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.43, + "Total Cost": 9.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -4151,20 +4062,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 13, + "actual_rows_times_loops": 13, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_rows": 13, + "planner_total_cost": 178.48999999999998, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 65, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -4173,40 +4084,39 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "7114c0059e14fdd8a10d40692bea73b57749b0faef0edbde98e799d23117f8a5", + "calls": 13, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name" + "core_objecttype_pkey" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 + "Index Scan": 13, + "Limit": 13, + "Nested Loop": 13, + "Seq Scan": 13 }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1157, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -4216,329 +4126,82 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1157, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1149, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 939, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 931, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 903, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.4, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -4546,24 +4209,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.43, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.43, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -4571,18 +4223,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.29, + "planner_total_cost": 1.31, "shared_dirtied_blocks": 0, "shared_hit_blocks": 1, "shared_read_blocks": 0, @@ -4594,313 +4246,63 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7785a0390809312918e3b9973101097c74971463e000a4c4cdca12d3adb808a1", + "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", "indexes": [], "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, + "Aggregate": 1, + "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 734, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 734, + "Plan Width": 75, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 524, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 516, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 508, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 480, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, @@ -4908,51 +4310,27 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.11, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.27, + "Total Cost": 1.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -4963,21 +4341,11 @@ "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 6.28, + "Startup Cost": 1.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.29, + "Total Cost": 1.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -4985,7 +4353,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { @@ -5008,9 +4376,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "785d2a61ab4e37cda0e3f74a04dff29dc10bd949bae7d42c30baed955ffb6e3c", + "fingerprint": "863df58815c08333f539652ada9c3327bc163cbed55d2ac111736f89bc1a5dd1", "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f" + "dcim_frontport_unique_device_name" ], "node_types": { "Index Scan": 1, @@ -5018,7 +4386,7 @@ "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -5032,7 +4400,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1116, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -5049,17 +4417,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1116, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", + "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Name": "dcim_frontport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -5069,8 +4437,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", + "Plan Width": 1013, + "Relation Name": "dcim_frontport", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -5139,7 +4507,7 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" + "dcim_frontport.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", @@ -5155,21 +4523,21 @@ }, "Triggers": [] }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.29, + "planner_total_cost": 2.04, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 1, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, @@ -5178,18 +4546,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7ff54ce212f8d86c4142c20e53f8a00c0628328601c944e5791508de8cf44b14", + "fingerprint": "87149d3555b389d5ce3660375ce5ed7221cb6377bd6c804fb9c58df2a48013c2", "indexes": [], "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, + "Nested Loop": 1, + "Seq Scan": 2, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -5199,16 +4567,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 734, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -5217,52 +4584,215 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 734, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Filter": "((module_id IS NULL) AND (device_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 524, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 516, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.29, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 9, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "907da9451f4a5ba67e0710199582d1bea00a16843498cb1056183f3026841ed8", + "indexes": [], + "node_types": { + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 734, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 726, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 516, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -5383,13 +4913,13 @@ "Plan Width": 36, "Relation Name": "dcim_devicetype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -5398,13 +4928,13 @@ ], "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.07, + "Total Cost": 4.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -5427,13 +4957,13 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -5442,13 +4972,13 @@ ], "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.09, + "Total Cost": 6.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -5456,8 +4986,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -5467,9 +4997,9 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, @@ -5477,22 +5007,22 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.11, + "Total Cost": 7.25, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -5500,8 +5030,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -5511,32 +5041,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.27, + "Total Cost": 9.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -5544,8 +5074,8 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", @@ -5558,10 +5088,10 @@ "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 6.28, + "Startup Cost": 9.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.29, + "Total Cost": 9.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -5571,136 +5101,6 @@ }, "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, { "aggregate": { "actual_loops": 1, @@ -5710,7 +5110,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 9.2, + "planner_total_cost": 16.43, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -5722,17 +5122,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "863df58815c08333f539652ada9c3327bc163cbed55d2ac111736f89bc1a5dd1", + "fingerprint": "9449ac4c67fc5c261fa87095c6f67d3b05ad8f1c92985910ee602368e5c72675", "indexes": [ - "dcim_frontport_unique_device_name" + "dcim_consoleporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -5746,14 +5146,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1157, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -5763,204 +5164,362 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1157, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 22, - "shared_hit_blocks": 10, - "shared_read_blocks": 22, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1570, - "wal_fpi": 0, - "wal_records": 22 - }, - "calls": 1, - "fingerprint": "8de0db48ef419b4bcf8c8f5eac26cf17ed752c427c4d02f4bf23f93101d4eef8", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 1, + "Plan Width": 1149, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 939, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 931, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 903, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 16.42, "WAL Buffers Full": 0, - "WAL Bytes": 99, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 } ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 22, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 22, - "Shared Written Blocks": 1, - "Startup Cost": 0.0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 16.43, "WAL Buffers Full": 0, - "WAL Bytes": 1570, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 22 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" }, { "aggregate": { @@ -6233,16 +5792,16 @@ }, { "aggregate": { - "actual_loops": 10, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 397.3, + "planner_rows": 1, + "planner_total_cost": 16.43, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -6251,24 +5810,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 10, - "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "calls": 1, + "fingerprint": "a649d70b14060986230e4ca8c0ed6fd9973a1ff3c18cee6fb49fbed0e8a8fd21", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_consoleserverporttemplate_unique_module_type_name" ], "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -6281,8 +5834,8 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1157, "Plans": [ { "Actual Loops": 1, @@ -6290,7 +5843,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -6298,8 +5852,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1157, "Plans": [ { "Actual Loops": 1, @@ -6307,6 +5861,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -6315,161 +5870,224 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 1, + "Plan Width": 1149, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 939, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 931, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 903, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 11.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 13.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -6478,46 +6096,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T4", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 14.4, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -6526,46 +6140,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -6573,21 +6183,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleserverporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -6595,7 +6208,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" }, { "aggregate": { @@ -6776,7 +6389,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_total_cost": 9.2, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -6788,17 +6401,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b3bff66142d5e690009adb7fb318191abc32bf167dc1678957bb1a909acf1c60", + "fingerprint": "b40ee2004e1381b1c35c972a38b95ca6d9cdbae03b13eea742cf9749ace2e1ae", "indexes": [ - "dcim_powerporttemplate_unique_module_type_name" + "dcim_poweroutlet_unique_device_name" ], "node_types": { "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, + "Nested Loop": 1, + "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -6812,15 +6425,14 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1165, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -6830,277 +6442,31 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1165, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1157, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 947, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 939, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 911, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -7108,7 +6474,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.4, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7117,9 +6483,10 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -7128,8 +6495,9 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -7144,7 +6512,6 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -7152,7 +6519,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 9.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7164,20 +6531,16 @@ "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_poweroutlet.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.43, + "Startup Cost": 9.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.43, + "Total Cost": 9.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7185,7 +6548,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" }, { "aggregate": { @@ -7208,9 +6571,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b40ee2004e1381b1c35c972a38b95ca6d9cdbae03b13eea742cf9749ace2e1ae", + "fingerprint": "cae38e5f48c3e564eae905efc63139fcf11f4466d22c83299422b1f50480d278", "indexes": [ - "dcim_poweroutlet_unique_device_name" + "dcim_consoleport_unique_device_name" ], "node_types": { "Index Scan": 1, @@ -7218,7 +6581,7 @@ "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -7232,7 +6595,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1291, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, @@ -7249,17 +6612,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1291, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", + "Alias": "dcim_consoleport", "Async Capable": false, "Disabled": false, "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Name": "dcim_consoleport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -7269,8 +6632,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", + "Plan Width": 995, + "Relation Name": "dcim_consoleport", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -7339,7 +6702,7 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" + "dcim_consoleport.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", @@ -7355,18 +6718,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_total_cost": 2.07, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -7378,17 +6741,438 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b584fd9ac7f031342296c313d58aca112ecf21f664e7ed558e47200ff16a5446", - "indexes": [ - "dcim_rearporttemplate_unique_module_type_name" - ], - "node_types": { + "fingerprint": "ccf01569668a8722459231c1c83cf9603bc6bf75ead8b7eb77a522d7bd6ebe81", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 117, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 117, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 2, + "Plan Width": 27, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.06, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 8, + "shared_hit_blocks": 16, + "shared_read_blocks": 9, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 575, + "wal_fpi": 0, + "wal_records": 8 + }, + "calls": 1, + "fingerprint": "cd0f0529c797fc8ee718a3ba4b71f7e75ccc655cd8525367cdbadac0090fe9f4", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 896, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 896, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 8, + "Shared Hit Blocks": 16, + "Shared Read Blocks": 9, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 575, + "WAL FPI": 0, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d72c38cd42007207976ad4c116debf8d189737906f7241415dbaa56577b96d9e", + "indexes": [ + "dcim_rearport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 16.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "db880ad505819f11a569ced00a0c070591b9a0d3f90d55f9f556c11ada7919f7", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e" + ], + "node_types": { "Index Scan": 1, "Nested Loop": 5, "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -7402,7 +7186,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1187, + "Plan Width": 1453, "Plans": [ { "Actual Loops": 1, @@ -7420,7 +7204,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1187, + "Plan Width": 1453, "Plans": [ { "Actual Loops": 1, @@ -7438,7 +7222,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1179, + "Plan Width": 1445, "Plans": [ { "Actual Loops": 1, @@ -7456,7 +7240,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 969, + "Plan Width": 1235, "Plans": [ { "Actual Loops": 1, @@ -7464,7 +7248,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -7474,7 +7258,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 961, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, @@ -7491,16 +7275,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 933, + "Plan Width": 1199, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", + "Alias": "dcim_coolingintaketemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -7510,8 +7294,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -7566,7 +7350,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.2, + "Total Cost": 9.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7595,7 +7379,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7610,7 +7394,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.22, + "Total Cost": 11.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7639,7 +7423,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7654,7 +7438,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.24, + "Total Cost": 13.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7698,7 +7482,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.4, + "Total Cost": 14.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7727,7 +7511,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7742,7 +7526,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7759,15 +7543,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" + "dcim_coolingintaketemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.43, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.43, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7775,7 +7559,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" }, { "aggregate": { @@ -7786,7 +7570,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 9.2, + "planner_total_cost": 16.43, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -7798,17 +7582,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "cae38e5f48c3e564eae905efc63139fcf11f4466d22c83299422b1f50480d278", + "fingerprint": "dec95c143d2a522771b376589d54e6a8d9f889b6505b0e72aba2a6428a45e7e7", "indexes": [ - "dcim_consoleport_unique_device_name" + "dcim_frontporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -7822,14 +7606,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1023, + "Plan Width": 1187, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -7839,62 +7624,306 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1023, + "Plan Width": 1187, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, + "Plan Width": 1179, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 969, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 961, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 933, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 43, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.22, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -7902,13 +7931,14 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -7916,7 +7946,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.18, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7928,16 +7958,20 @@ "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 9.19, + "Startup Cost": 16.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.2, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -7945,7 +7979,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" }, { "aggregate": { @@ -7956,9 +7990,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 2.07, + "planner_total_cost": 1.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -7968,14 +8002,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "ccf01569668a8722459231c1c83cf9603bc6bf75ead8b7eb77a522d7bd6ebe81", + "fingerprint": "e14e3d70ecab33031e7797a568bb26051a6d4368ced40c3696c1c56b2d80b7fc", "indexes": [], "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -7986,99 +8019,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 117, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 117, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 2, - "Plan Width": 27, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.06, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8086,20 +8057,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.06, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.07, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8107,20 +8071,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 9.2, + "planner_total_cost": 1.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -8130,219 +8094,51 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d72c38cd42007207976ad4c116debf8d189737906f7241415dbaa56577b96d9e", - "indexes": [ - "dcim_rearport_unique_device_name" - ], + "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e14e3d70ecab33031e7797a568bb26051a6d4368ced40c3696c1c56b2d80b7fc", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 1.01, @@ -8367,20 +8163,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 10, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_rows": 80, + "planner_total_cost": 405.29999999999995, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -8389,55 +8185,321 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", - "indexes": [], + "calls": 10, + "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8448,10 +8510,18 @@ "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8459,7 +8529,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" }, { "aggregate": { @@ -8470,9 +8540,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.43, + "planner_total_cost": 9.29, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -8482,17 +8552,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "ef4265b146a5f8f641698a9de34de4077466098debaee0205b7ba6100eafd185", - "indexes": [ - "dcim_poweroutlettemplate_unique_module_type_name" - ], + "fingerprint": "ecb14086106bb90aec99ef5042790301477f657378e3bca5fce2ffbd5c0148e9", + "indexes": [], "node_types": { - "Index Scan": 1, "Nested Loop": 5, - "Seq Scan": 5, + "Seq Scan": 6, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -8506,7 +8573,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1311, + "Plan Width": 734, "Plans": [ { "Actual Loops": 1, @@ -8514,7 +8581,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -8524,7 +8591,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1311, + "Plan Width": 734, "Plans": [ { "Actual Loops": 1, @@ -8542,7 +8609,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1303, + "Plan Width": 726, "Plans": [ { "Actual Loops": 1, @@ -8560,7 +8627,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1093, + "Plan Width": 516, "Plans": [ { "Actual Loops": 1, @@ -8568,7 +8635,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -8578,7 +8645,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1085, + "Plan Width": 508, "Plans": [ { "Actual Loops": 1, @@ -8595,37 +8662,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1057, + "Plan Width": 480, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8664,13 +8728,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.2, + "Total Cost": 2.05, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8699,7 +8763,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8708,13 +8772,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.22, + "Total Cost": 4.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8743,7 +8807,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8752,13 +8816,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.24, + "Total Cost": 6.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8796,13 +8860,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.4, + "Total Cost": 7.25, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8811,7 +8875,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -8831,7 +8895,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8840,13 +8904,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.42, + "Total Cost": 9.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8854,24 +8918,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T6\".name", + "\"T7\".name", "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.43, + "Startup Cost": 9.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.43, + "Total Cost": 9.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -8879,7 +8943,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" }, { "aggregate": { @@ -8986,29 +9050,29 @@ "local_written_blocks": 0, "planner_rows": 1, "planner_total_cost": 0.01, - "shared_dirtied_blocks": 9, - "shared_hit_blocks": 10, - "shared_read_blocks": 9, - "shared_written_blocks": 1, + "shared_dirtied_blocks": 21, + "shared_hit_blocks": 11, + "shared_read_blocks": 22, + "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 674, + "wal_bytes": 1471, "wal_fpi": 0, - "wal_records": 9 + "wal_records": 21 }, "calls": 1, - "fingerprint": "f8f93e853960871881f545a2ffff6e4fc141967f936d611af771e51266dee888", + "fingerprint": "fb8c3273198a2fc357d9a89152658581e9033744d59f93fc56d7a597ccf9faea", "indexes": [], "node_types": { "ModifyTable": 1, "Result": 1 }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -9019,7 +9083,7 @@ "Operation": "Insert", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 896, + "Plan Width": 2017, "Plans": [ { "Actual Loops": 1, @@ -9034,7 +9098,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 896, + "Plan Width": 2017, "Shared Dirtied Blocks": 1, "Shared Hit Blocks": 10, "Shared Read Blocks": 1, @@ -9044,120 +9108,28 @@ "Temp Written Blocks": 0, "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 99, - "WAL FPI": 0, - "WAL Records": 1 - } - ], - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 9, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 9, - "Shared Written Blocks": 1, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 674, - "WAL FPI": 0, - "WAL Records": 9 - }, - "Triggers": [] - }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fccf0edb44ae7fcf2cedac244fee4ce00119c2ccb9f7bab91f34054a7e451b01", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 892, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.1, - "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 21, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 22, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.1, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1471, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" } ], "statements": [ @@ -9406,20 +9378,20 @@ "local_written_blocks": 0, "planned_statement_calls": 60, "planner_rows": 139, - "planner_total_cost": 837.36, - "planner_total_cost_per_work_unit": 837.36, - "shared_dirtied_blocks": 31, - "shared_hit_blocks": 173, - "shared_hit_blocks_per_work_unit": 173.0, - "shared_read_blocks": 33, - "shared_written_blocks": 2, + "planner_total_cost": 912.1399999999999, + "planner_total_cost_per_work_unit": 912.1399999999999, + "shared_dirtied_blocks": 29, + "shared_hit_blocks": 172, + "shared_hit_blocks_per_work_unit": 172.0, + "shared_read_blocks": 31, + "shared_written_blocks": 0, "statement_calls": 60, "statement_calls_per_work_unit": 60.0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 2402, + "wal_bytes": 2204, "wal_fpi": 0, - "wal_records": 33, + "wal_records": 31, "work_units": 1 } }, @@ -9435,64 +9407,64 @@ "layer": "complete_model_save", "machine_time": { "process_cpu": { - "median_ms": 96.561495, - "p95_ms": 113.26580919999999, + "median_ms": 95.204807, + "p95_ms": 97.4141048, "samples_ns": [ - 110272117, - 120251091, - 102597692, - 100166685, - 93222788, - 95666790, - 94880010, - 96561495, - 99133995, - 93028420, - 96164233, - 95441354, - 94915683, - 102015236, - 103133662 + 98771276, + 96407997, + 93992523, + 93787322, + 95107314, + 95204807, + 96310300, + 96832460, + 96583860, + 93062974, + 95987278, + 94141082, + 91794023, + 90741338, + 96631588 ] }, "wall": { - "median_ms": 138.677677, - "p95_ms": 157.0459138, + "median_ms": 130.837827, + "p95_ms": 134.8357219, "samples_ns": [ - 155046934, - 161710200, - 143074871, - 143466542, - 132391653, - 132537353, - 138677677, - 137351867, - 141050274, - 131139595, - 134044217, - 131043483, - 135056656, - 146459121, - 144284318 + 135756336, + 132905632, + 129441101, + 128944669, + 130688847, + 129991597, + 134199140, + 132044780, + 132081392, + 130598260, + 132626301, + 130837827, + 125568908, + 127988959, + 134441173 ] }, "warmup": { "process_cpu": { - "median_ms": 103.921608, - "p95_ms": 115.16875590000001, + "median_ms": 96.554821, + "p95_ms": 97.97994759999999, "samples_ns": [ - 116418439, - 103921608, - 98012044 + 96554821, + 98138295, + 95946932 ] }, "wall": { - "median_ms": 149.182747, - "p95_ms": 163.77704169999998, + "median_ms": 131.917893, + "p95_ms": 132.1082376, "samples_ns": [ - 165398630, - 149182747, - 142027337 + 132129387, + 131917893, + 131392321 ] } } @@ -9508,6 +9480,190 @@ { "database": { "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3052b199dbc8be9104e6f1929d94f15d3c0e391044ab3c1350c966b5d4333614", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 593, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 593, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "6a4c3f21383b873c58b468cdb8cb79268368b7c042998dae4a32a435682024dd", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + }, { "aggregate": { "actual_loops": 1, @@ -9730,168 +9886,6 @@ }, "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.07, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8502c403320213c0a5367e7191a9bf3fccb562f5a9c6eab1d1985333156db61e", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 117, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 117, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 2, - "Plan Width": 27, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 4.07, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, { "aggregate": { "actual_loops": 1, @@ -9993,7 +9987,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.02, + "planner_total_cost": 3.07, "shared_dirtied_blocks": 0, "shared_hit_blocks": 3, "shared_read_blocks": 0, @@ -10005,13 +9999,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "bd7be6e037fa878d6f4e85283b3afc261ea529529b4b7e7a1c6ac6fd4644384f", + "fingerprint": "b1d0e015290ed16ab3b822eb66d4c42b6cf2cd93beb02ea0942d11c2aeab6456", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -10022,29 +10017,91 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 593, + "Plan Width": 117, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 593, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 1, + "Plan Width": 117, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 2, + "Plan Width": 27, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, @@ -10052,7 +10109,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.02, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -10063,102 +10120,17 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e615d9ce3938e707ce6129cb888a09a30332aa294561bef6beea1f1ee195b19d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.06, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 3.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -10166,7 +10138,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { @@ -10315,11 +10287,11 @@ "local_written_blocks": 0, "planned_statement_calls": 7, "planner_rows": 7, - "planner_total_cost": 15.44, - "planner_total_cost_per_work_unit": 15.44, + "planner_total_cost": 12.44, + "planner_total_cost_per_work_unit": 12.44, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_hit_blocks_per_work_unit": 15.0, + "shared_hit_blocks": 12, + "shared_hit_blocks_per_work_unit": 12.0, "shared_read_blocks": 0, "shared_written_blocks": 0, "statement_calls": 7, @@ -10344,64 +10316,64 @@ "layer": "direct_callback", "machine_time": { "process_cpu": { - "median_ms": 14.661071, - "p95_ms": 16.4409447, + "median_ms": 13.427068, + "p95_ms": 18.125066599999986, "samples_ns": [ - 14661071, - 13818250, - 15544934, - 14628494, - 13248391, - 15073425, - 16327419, - 14634632, - 15157939, - 16705838, - 14380405, - 13422493, - 14684754, - 15206452, - 13196150 + 12677660, + 13409725, + 13858337, + 14740190, + 13036443, + 12861665, + 13427068, + 13257589, + 13209577, + 13637112, + 26023112, + 13432283, + 13495713, + 13785869, + 13005398 ] }, "wall": { - "median_ms": 18.348196, - "p95_ms": 20.588929699999998, + "median_ms": 16.838543, + "p95_ms": 22.193411999999988, "samples_ns": [ - 18214722, - 18089224, - 19857704, - 18348196, - 16671780, - 18910772, - 20273447, - 18248897, - 18576787, - 21325056, - 17919780, - 17417051, - 18430861, - 19146100, - 16875277 + 16103282, + 16838543, + 17045662, + 18721524, + 15976521, + 16201855, + 16725178, + 17077552, + 16536186, + 16921123, + 30294484, + 16295112, + 16876921, + 16876876, + 16540241 ] }, "warmup": { "process_cpu": { - "median_ms": 13.786413, - "p95_ms": 19.8554964, + "median_ms": 13.979475, + "p95_ms": 14.0080347, "samples_ns": [ - 13598683, - 13786413, - 20529839 + 13127064, + 13979475, + 14011208 ] }, "wall": { - "median_ms": 17.64712, - "p95_ms": 23.359251699999998, + "median_ms": 17.344488, + "p95_ms": 17.5433277, "samples_ns": [ - 17647120, - 17373053, - 23993933 + 16438583, + 17344488, + 17565421 ] } } @@ -10426,9 +10398,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, + "planner_total_cost": 14.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -10438,17 +10410,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "02f9514231e62a5b92ea9bad1d1b19a743d17eb223edbf7df90510cc86fa08f7", - "indexes": [ - "dcim_poweroutlet_unique_device_name" - ], + "fingerprint": "00387d37692cb7dce71852e5f22a661d2a4fbadc0d54dd1b7b26e4c793e87fd7", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 6, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -10462,14 +10431,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1291, + "Plan Width": 341, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -10479,535 +10449,25 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1291, + "Plan Width": 341, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 10.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "07d0b1a461fc73908d3a3d043f0413a7d81c21f904be486ba38426754f802472", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "08fc57972bcb4033aba2dc9cc4049142a50e1ae8c8b36af1d26c751ce5078b71", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 20.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "16458f9e97add86666a050c8659de6390c320da2a3a6f9ff39ea5c9d8985e49f", - "indexes": [ - "dcim_powerporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 333, "Plans": [ { "Actual Loops": 1, @@ -11025,7 +10485,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 948, + "Plan Width": 123, "Plans": [ { "Actual Loops": 1, @@ -11033,7 +10493,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -11043,7 +10503,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 940, + "Plan Width": 115, "Plans": [ { "Actual Loops": 1, @@ -11060,37 +10520,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 912, + "Plan Width": 87, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", + "Alias": "dcim_modulebaytemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11121,7 +10578,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11129,13 +10586,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 5.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11173,13 +10630,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.2, + "Total Cost": 9.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11208,7 +10665,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11217,13 +10674,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.23, + "Total Cost": 11.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11261,13 +10718,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.38, + "Total Cost": 12.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11296,7 +10753,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11305,13 +10762,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 14.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11319,7 +10776,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -11328,15 +10785,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" + "dcim_modulebaytemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 14.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 14.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11344,20 +10801,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_rows": 2, + "planner_total_cost": 28.54, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 28, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -11366,14 +10823,15 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "16cb0355dd3d9843a350cff777ca1d3b3eccb668b92bb1cac767077c4eca154b", + "calls": 2, + "fingerprint": "0599fc380f888a3bf01972fa52093c0fccff585dd5ea084fccb8f944dd6ccb10", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Nested Loop": 10, + "Seq Scan": 12, + "Sort": 2 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -11384,167 +10842,314 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 137, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "195d71ae3baa4349466f68c290f455f85ce261a3394470ba606d669f1c1814b2", - "indexes": [ - "dcim_consoleserverport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 12.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -11553,31 +11158,31 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 14, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 14.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11585,20 +11190,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 14, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.19, + "Startup Cost": 14.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.2, + "Total Cost": 14.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11606,7 +11215,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { @@ -11617,9 +11226,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 0.43, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -11629,15 +11238,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "1d856463f65485da6728024f3e3861286905c1b195a608c76ad96dcaeb84fe3a", + "fingerprint": "0e893a0fc200215741b13dbcabcc32a4a92eb5159c0998b662a0ec50eeec5fcd", "indexes": [ - "core_config_created_ef9552_idx" + "dcim_frontport_unique_device_name" ], "node_types": { "Index Scan": 1, - "Limit": 1 + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" ORDER BY \"core_configrevision\".\"created\" DESC LIMIT ?", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -11648,38 +11259,102 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 467, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "core_configrevision", "Async Capable": false, "Disabled": false, - "Index Name": "core_config_created_ef9552_idx", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 160, - "Plan Width": 467, - "Relation Name": "core_configrevision", - "Scan Direction": "Forward", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 46.55, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11687,13 +11362,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.43, + "Total Cost": 12.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11701,20 +11383,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "36779d9ccb85180d87fa18b2ceb539ddc06ed4464322a9fbc938eff9a5833525" + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.0, + "planner_rows": 2, + "planner_total_cost": 8.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -11723,14 +11405,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", + "calls": 2, + "fingerprint": "12100f83c6f65b7aca35ef700c21012d18e77dafecd133a3df8cc545d5a64b32", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -11744,12 +11426,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 892, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -11761,17 +11443,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", + "Plan Width": 595, + "Relation Name": "dcim_moduletype", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11779,13 +11461,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -11793,7 +11475,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { @@ -11804,7 +11486,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, + "planner_total_cost": 21.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -11816,17 +11498,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "20d25dc3c3300e330e34e7d551ceb5231f2a05f74bd811f5f82915df1a6ae583", + "fingerprint": "17970d58bba75fe258f7d02886a70792b01af6622b0e273e8466d793cf9aeb9f", "indexes": [ - "dcim_rearport_unique_device_name" + "dcim_consoleserverporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -11840,14 +11522,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -11857,456 +11540,25 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 21, - "planner_total_cost": 3.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2527b21abb371ea7d8c9c6904a71e8fb79d222fe9cdef52ba0cb0ff1b1697477", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" WHERE \"core_configrevision\".\"active\" LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 21, - "Plan Width": 467, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_configrevision", - "Async Capable": false, - "Disabled": false, - "Filter": "active", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 80, - "Plan Width": 467, - "Relation Name": "core_configrevision", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.6, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4087d301fb9fc54548c18069a19c8651b10741983b7479f5e4ccf366462a4f0b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2a843fe7805b7b63a4b34ca238aec47e40c15719205ab856ff0d352b6efa305f", - "indexes": [ - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 20.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "300033ffe0b8e9d864442ef5b912441b8d2e350186c0922b67a2bd957b956c7d", - "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1306, + "Plan Width": 1150, "Plans": [ { "Actual Loops": 1, @@ -12324,7 +11576,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1096, + "Plan Width": 940, "Plans": [ { "Actual Loops": 1, @@ -12332,7 +11584,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -12342,7 +11594,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1088, + "Plan Width": 932, "Plans": [ { "Actual Loops": 1, @@ -12359,16 +11611,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1060, + "Plan Width": 904, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", + "Alias": "dcim_consoleserverporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -12378,8 +11630,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -12420,7 +11672,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12434,7 +11686,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12478,7 +11730,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.2, + "Total Cost": 16.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12507,7 +11759,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12595,7 +11847,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12610,7 +11862,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12627,15 +11879,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + "dcim_consoleserverporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 21.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12643,18 +11895,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" }, { "aggregate": { - "actual_loops": 2, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 2.0, + "planner_rows": 1, + "planner_total_cost": 21.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -12665,14 +11917,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "36f9e914f7f3fce527b7487ddbdaf9ee28c98e39cbb9bee50cb38df77190cfc4", - "indexes": [], + "calls": 1, + "fingerprint": "1dba82e673ff0d7646642043e1232082f4ca94d3a3034ca37662682f4845b7aa", + "indexes": [ + "dcim_frontporttemplate_unique_module_type_name" + ], "node_types": { - "Limit": 2, - "Seq Scan": 2 + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -12683,125 +11939,32 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 26.54, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 26, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "41228b73c64588d722573957951cdc87738eb581736de2e9631cf91df094b381", - "indexes": [], - "node_types": { - "Nested Loop": 10, - "Seq Scan": 12, - "Sort": 2 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, @@ -12815,11 +11978,11 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 727, + "Plan Width": 1180, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, @@ -12833,15 +11996,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 517, + "Plan Width": 970, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -12851,11 +12014,11 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, + "Plan Width": 962, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -12868,42 +12031,45 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 481, + "Plan Width": 934, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, @@ -12920,13 +12086,13 @@ "Relation Name": "dcim_moduletype", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -12934,21 +12100,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.04, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, @@ -12963,7 +12129,7 @@ "Plan Width": 36, "Relation Name": "dcim_devicetype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -12976,23 +12142,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.06, + "Total Cost": 16.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, @@ -13007,36 +12173,36 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.08, + "Total Cost": 18.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 7.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, @@ -13051,7 +12217,7 @@ "Plan Width": 226, "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -13064,23 +12230,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.24, + "Total Cost": 19.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "T6", "Async Capable": false, "Disabled": false, @@ -13095,13 +12261,13 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13110,13 +12276,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.26, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13124,7 +12290,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -13133,15 +12299,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_frontporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.27, + "Startup Cost": 21.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.27, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13149,7 +12315,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" }, { "aggregate": { @@ -13160,9 +12326,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.04, + "planner_total_cost": 1.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -13172,14 +12338,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "42d49c3c74033eaa9de8874f60f6e7ff537fd0524957fdc05fa9175552a30e40", + "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", "indexes": [], "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -13190,99 +12355,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 892, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.02, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13290,21 +12393,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 6.03, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.04, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13312,20 +12407,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" }, { "aggregate": { - "actual_loops": 19, - "actual_rows_times_loops": 19, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 19, - "planner_total_cost": 219.82999999999993, + "planner_rows": 1, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 133, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -13334,138 +12429,112 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 19, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "22bc3177008026d7533739b97da1e0cc7e4857365b7f09ed3e0c284c5c970670", + "indexes": [ + "dcim_coolingintake_device_id_df1c3674" + ], "node_types": { - "Hash": 19, - "Hash Join": 19, - "Limit": 19, - "Seq Scan": 38 + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", - "Inner Unique": true, + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", "Async Capable": false, "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.64, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13473,13 +12542,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13487,13 +12556,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 12.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13501,164 +12577,149 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.19, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, + "shared_hit_blocks": 56, + "shared_read_blocks": 8, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 575, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 8 }, "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], + "fingerprint": "25f8f61a33c953c680dbb811d2aef875fda7ab29bb5bfebf9770967a805069d8", + "indexes": [], "node_types": { - "Index Scan": 1, - "Sort": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 16, + "Plan Width": 896, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 896, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 56, + "Shared Read Blocks": 8, "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 575, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 8 }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 2, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.02, + "planner_rows": 2, + "planner_total_cost": 2.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "5083710324782a87826b1c5ae73596853248babc5dea02a0d01e9bdef76b7ed0", + "calls": 2, + "fingerprint": "36f9e914f7f3fce527b7487ddbdaf9ee28c98e39cbb9bee50cb38df77190cfc4", "indexes": [], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -13667,40 +12728,39 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.02, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.02, + "Total Cost": 1.0, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { @@ -13711,7 +12771,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, + "planner_total_cost": 21.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -13723,17 +12783,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "51854455a0841950408a349c01f621f47ce4655c291333b0dcbe8ff92aa09279", + "fingerprint": "381047cfabcb366b339330141adf461e6a7f334bf51b0209a192ec6c098cd269", "indexes": [ - "dcim_frontport_unique_device_name" + "dcim_coolingoutflowtemplate_module_type_id_751812c7" ], "node_types": { "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -13747,14 +12807,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1314, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -13764,31 +12825,277 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1314, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -13796,7 +13103,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 19.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13805,10 +13112,9 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_device", + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -13817,9 +13123,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -13827,13 +13132,14 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -13841,7 +13147,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13853,115 +13159,20 @@ "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", - "indexes": [], - "node_types": { - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 1.02, + "Startup Cost": 21.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.03, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -13969,7 +13180,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" }, { "aggregate": { @@ -13980,7 +13191,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, + "planner_total_cost": 21.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -13992,17 +13203,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "5dcedc295de80e3c9f92e427ab5efccd80dbce14f5753cb6862a84edad2b19f1", + "fingerprint": "3d341c0470b25a33d8220001aae530860b657dd08174ee7e1f29613d3b1c6474", "indexes": [ - "dcim_powerport_unique_device_name" + "dcim_rearporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -14016,14 +13227,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1027, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -14033,298 +13245,131 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1027, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_powerport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 158.92, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Hash": 4, - "Hash Join": 4, - "Index Scan": 8, - "Nested Loop": 8, - "Seq Scan": 4, - "Sort": 4 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Width": 1180, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 970, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 962, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 934, "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, { "Actual Loops": 0, "Actual Rows": 0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -14332,52 +13377,109 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 18.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -14386,46 +13488,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T4", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 19.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -14434,46 +13532,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -14481,21 +13575,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_rearporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 21.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -14503,7 +13600,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" }, { "aggregate": { @@ -14514,7 +13611,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -14526,9 +13623,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6c47f6baceff0c2a901c4eed5d5b0ef33d75740a34536deca59436e9ca46787a", + "fingerprint": "47a79f27c06e93a934e2750915ac1254a22919f0d937f6836dd56efb3a90aa7f", "indexes": [ - "dcim_consoleport_unique_device_name" + "dcim_rearport_unique_device_name" ], "node_types": { "Index Scan": 1, @@ -14536,7 +13633,7 @@ "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -14550,7 +13647,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1023, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -14567,17 +13664,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1023, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleport", + "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", + "Index Name": "dcim_rearport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -14587,9 +13683,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -14630,7 +13725,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -14644,7 +13739,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -14657,15 +13752,15 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" + "dcim_rearport.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.19, + "Startup Cost": 12.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.2, + "Total Cost": 12.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -14673,7 +13768,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" }, { "aggregate": { @@ -14684,7 +13779,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 20.42, + "planner_total_cost": 8.19, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -14696,17 +13791,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6efee9c237bf4cde9ea6512b1eedd5dc3d1b124166aa3895bde2bdb436a45a9d", + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", "indexes": [ - "dcim_poweroutlettemplate_unique_module_type_name" + "extras_subscription_unique_per_object_and_user" ], "node_types": { "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -14720,16 +13813,119 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1312, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.05, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4a9070517e41b38c8e629b75d33ccd68406df8e9bab3402e2010fc795664de47", + "indexes": [], + "node_types": { + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -14738,294 +13934,43 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1312, + "Plan Width": 118, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1304, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1094, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1086, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1058, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.38, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -15036,16 +13981,16 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 28, + "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15054,13 +13999,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 5.03, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15068,24 +14013,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" + "netbox_interface_name_rules_interfacenamerule.id" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 5.04, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 5.05, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15093,20 +14034,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.27, + "planner_rows": 32, + "planner_total_cost": 162.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -15115,15 +14056,24 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "723d7644030ad7308612044bc8b36ce7a545c72597ce09bec25d3372f3fe0819", - "indexes": [], + "calls": 4, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Hash": 4, + "Hash Join": 4, + "Index Scan": 8, + "Nested Loop": 8, + "Seq Scan": 4, + "Sort": 4 }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -15136,8 +14086,8 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, @@ -15145,8 +14095,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -15154,8 +14103,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 341, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, @@ -15163,7 +14112,6 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -15172,111 +14120,106 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 333, + "Plan Rows": 8, + "Plan Width": 1998, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 123, + "Plan Rows": 8, + "Plan Width": 1976, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 115, + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -15284,109 +14227,52 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.37, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.08, + "Total Cost": 24.98, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15395,42 +14281,46 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Alias": "T4", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.24, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15439,42 +14329,46 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "extras_customfieldchoiceset", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.26, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15486,20 +14380,17 @@ "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.27, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.27, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15507,7 +14398,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { @@ -15518,7 +14409,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -15530,9 +14421,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7e0d50e9a259c2b5e5d198779f17ff725be2dc143ffcf50c0490c9d9b7eaf4ea", + "fingerprint": "4d4c531d800ae1a75d2fc95dcd91cb45f220842c4b77e8fe3753e299e3a70324", "indexes": [ - "dcim_rearport_unique_device_name" + "dcim_consoleserverport_unique_device_name" ], "node_types": { "Index Scan": 1, @@ -15540,7 +14431,7 @@ "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -15554,7 +14445,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, @@ -15571,16 +14462,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_rearport", + "Alias": "dcim_consoleserverport", "Async Capable": false, "Disabled": false, + "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", + "Index Name": "dcim_consoleserverport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -15590,8 +14482,9 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -15632,7 +14525,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15646,7 +14539,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15659,15 +14552,15 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" + "dcim_consoleserverport.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.19, + "Startup Cost": 12.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.2, + "Total Cost": 12.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15675,7 +14568,99 @@ }, "Triggers": [] }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 8.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "50e66a1964b3e92f53b48b95c4e3ed351f7b798629029be3cf059dc2c05659d4", + "indexes": [], + "node_types": { + "Limit": 2, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { @@ -15686,7 +14671,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 20.42, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -15698,9 +14683,278 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7fe199fa55c86bab56af1fe60ad663b79b2da13d821d1e5cf9abc3008ac6b967", + "fingerprint": "55ad89a433678d148b5cb4ff51dda6d0ad27af124c9d6bb40482b1ab992a9ac8", "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name" + "dcim_poweroutlet_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1291, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_poweroutlet.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 21.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "59df62ea6f2d75e926336d8643ff166704f57d210f593df0e45b9de66ba55126", + "indexes": [ + "dcim_powerporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, @@ -15708,7 +14962,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -15722,7 +14976,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 1166, "Plans": [ { "Actual Loops": 1, @@ -15740,7 +14994,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 1166, "Plans": [ { "Actual Loops": 1, @@ -15758,7 +15012,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1150, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, @@ -15776,7 +15030,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 940, + "Plan Width": 948, "Plans": [ { "Actual Loops": 1, @@ -15784,7 +15038,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -15794,7 +15048,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 932, + "Plan Width": 940, "Plans": [ { "Actual Loops": 1, @@ -15811,16 +15065,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 904, + "Plan Width": 912, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", + "Alias": "dcim_powerporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -15830,8 +15084,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -15872,7 +15126,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15886,7 +15140,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15930,7 +15184,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.2, + "Total Cost": 16.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -15959,7 +15213,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16047,7 +15301,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16062,7 +15316,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16079,15 +15333,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" + "dcim_powerporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 21.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16095,20 +15349,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.0, + "planner_total_cost": 21.42, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -16118,268 +15372,49 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", - "indexes": [], + "fingerprint": "5f7ae613eb70d75227a25a4e9d37fb6a9abf7fdbdb638ae4a28ab540f188f32e", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 1454, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8851ed9055f90e32729dcfa23f41d4aa9f4097f3cc470e9753bb53177d85af06", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, + "Plan Width": 1454, "Plans": [ { "Actual Loops": 1, @@ -16397,7 +15432,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 727, + "Plan Width": 1446, "Plans": [ { "Actual Loops": 1, @@ -16415,7 +15450,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 517, + "Plan Width": 1236, "Plans": [ { "Actual Loops": 1, @@ -16423,7 +15458,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -16433,7 +15468,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, + "Plan Width": 1228, "Plans": [ { "Actual Loops": 1, @@ -16450,34 +15485,37 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 481, + "Plan Width": 1200, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", + "Alias": "dcim_coolingintaketemplate", "Async Capable": false, "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16508,7 +15546,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16516,13 +15554,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.04, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16560,13 +15598,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.06, + "Total Cost": 16.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16595,7 +15633,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16604,13 +15642,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.08, + "Total Cost": 18.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16648,13 +15686,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.24, + "Total Cost": 19.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16663,7 +15701,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T7", + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -16683,7 +15721,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16692,13 +15730,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.26, + "Total Cost": 21.4, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16706,24 +15744,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T7\".name", + "\"T6\".name", "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_coolingintaketemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.27, + "Startup Cost": 21.41, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.27, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16731,20 +15769,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 10.02, + "planner_rows": 1, + "planner_total_cost": 13.23, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -16753,14 +15791,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "88e92a2c7b21a65695aa5f2183401c01bd7621598e2fa631680c566a2953cb3d", - "indexes": [], + "calls": 1, + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 2, - "Seq Scan": 2 + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -16774,34 +15816,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 595, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16812,10 +15919,10 @@ "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -16823,7 +15930,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { "aggregate": { @@ -16834,9 +15941,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 20.42, + "planner_total_cost": 5.04, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -16846,17 +15953,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8bc22fcb99e95003c1e57d5bfae4ee11d601927804a08b8ce908534eacb8c14e", - "indexes": [ - "dcim_rearporttemplate_unique_module_type_name" - ], + "fingerprint": "6dec024f3794203899b436505485001d3cfa28dd63d99c43dbceec1f8211681c", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, + "Nested Loop": 1, + "Seq Scan": 2, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -16870,15 +15974,14 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -16888,285 +15991,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Filter": "((module_id IS NULL) AND (device_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.38, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -17175,9 +16027,10 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -17186,8 +16039,9 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -17195,22 +16049,21 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 5.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -17218,24 +16071,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 5.03, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 5.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -17243,20 +16092,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 19, + "actual_rows_times_loops": 19, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.12, + "planner_rows": 19, + "planner_total_cost": 260.86999999999995, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 95, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -17265,15 +16114,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "8be7495247b21f5edcd612b3068892539637e7c1e14b2ffb4db4fde2f51b4708", - "indexes": [], + "calls": 19, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 + "Index Scan": 19, + "Limit": 19, + "Nested Loop": 19, + "Seq Scan": 19 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -17287,7 +16139,7 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 3200, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, @@ -17295,8 +16147,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -17305,344 +16156,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3200, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3069, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2938, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2046, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1915, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.09, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -17651,42 +16192,46 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "T7", + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.12, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -17694,13 +16239,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.12, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -17708,190 +16253,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a1be5327106c188aa1c39ad6513e25b727630c8d047e79ee35435a6e33a6df6f", - "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.0, + "planner_total_cost": 1.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -17901,37 +16276,35 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a1d7c936498856dba2b0108d991e759fabc09b35dd08a52f01a1c6aee77e7a05", + "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", "indexes": [], "node_types": { - "ModifyTable": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -17940,32 +16313,31 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", + "Plan Width": 4, + "Relation Name": "dcim_module", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.0, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.0, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -17973,7 +16345,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { @@ -17984,41 +16356,41 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_total_cost": 1.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 23, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1471, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 21 + "wal_records": 0 }, "calls": 1, - "fingerprint": "a426945f30de8d044efc3ea0c795780470bc8b33120daed282301d3ae5dd301f", + "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", "indexes": [], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 2017, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, @@ -18029,133 +16401,73 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2017, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1471, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 1.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 1.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 1.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -18163,7 +16475,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { @@ -18173,109 +16485,105 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, + "planner_rows": 0, + "planner_total_cost": 4.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 79, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 1 }, "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], + "fingerprint": "88d0b8868abcb883b59d0c5f0b03441035287ba01ecb71628394d3f86244803e", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.19, + "Total Cost": 4.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.19, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.66, + "Total Cost": 4.02, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" }, { "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 397.3, + "planner_rows": 1, + "planner_total_cost": 7.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -18284,45 +16592,37 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 10, - "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], + "calls": 1, + "fingerprint": "8be7495247b21f5edcd612b3068892539637e7c1e14b2ffb4db4fde2f51b4708", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 3200, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -18331,15 +16631,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 3200, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -18348,357 +16649,371 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 1, + "Plan Width": 3069, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 2938, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 2046, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 1915, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 2.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 3.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 4.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 5.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 6.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 39.59, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 39.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.47, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ad08c4d87a3f2bbf2fb24298a3cfe0e6c6f0d814983efbc1eeae1f10a1eb191c", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 7.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -18706,13 +17021,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 7.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -18720,7 +17035,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -18731,7 +17046,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.2, + "planner_total_cost": 21.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -18743,17 +17058,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b0614a28c4efc1210f05b1919aeab6d0ee04c692ede268ffc9e6429369a14a77", + "fingerprint": "973fcce2d1e0b33587738ac2540d39856f98018488dfc09140675842bbc245bf", "indexes": [ - "dcim_coolingintake_device_id_df1c3674" + "dcim_poweroutlettemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -18767,14 +17082,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1264, + "Plan Width": 1312, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -18784,196 +17100,25 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1264, + "Plan Width": 1312, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 20.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b4687637886711523b4aa01c721c650537c013b56604b19f071494b530570234", - "indexes": [ - "dcim_frontporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, + "Plan Width": 1304, "Plans": [ { "Actual Loops": 1, @@ -18991,7 +17136,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 970, + "Plan Width": 1094, "Plans": [ { "Actual Loops": 1, @@ -18999,7 +17144,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -19009,7 +17154,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 962, + "Plan Width": 1086, "Plans": [ { "Actual Loops": 1, @@ -19026,16 +17171,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 934, + "Plan Width": 1058, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", + "Alias": "dcim_poweroutlettemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -19045,8 +17190,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -19087,7 +17232,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19101,7 +17246,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19145,7 +17290,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.2, + "Total Cost": 16.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19174,7 +17319,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19262,7 +17407,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19277,7 +17422,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19294,15 +17439,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" + "dcim_poweroutlettemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 21.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19310,7 +17455,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" }, { "aggregate": { @@ -19321,7 +17466,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 20.42, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -19333,9 +17478,349 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "c005086af0fd32235ce0580d614eeaf9682550da498c36573698f70dea81614f", + "fingerprint": "977527bdeb2fb61b695a48847fa08c0e72e6b53551e0661b030688261f08b7a7", "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name" + "dcim_powerport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_powerport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "99d1dbc5820e95ab7d312d549dc0f4ccbe8f99e62bd54a0871051d00ac6e3961", + "indexes": [ + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 21.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9ad89137174b0985614e5651ec042f102fab3c5f45878fef7a5d2e34cca7c5c5", + "indexes": [ + "dcim_consoleporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, @@ -19343,7 +17828,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -19419,7 +17904,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -19451,11 +17936,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", + "Alias": "dcim_consoleporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -19466,7 +17951,7 @@ "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", + "Relation Name": "dcim_consoleporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -19507,7 +17992,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19521,7 +18006,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19565,7 +18050,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.2, + "Total Cost": 16.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19594,7 +18079,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19682,7 +18167,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19697,7 +18182,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19714,15 +18199,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" + "dcim_consoleporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 21.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 21.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19730,7 +18215,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" }, { "aggregate": { @@ -19741,25 +18226,25 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 4, + "planner_total_cost": 0.0, + "shared_dirtied_blocks": 0, "shared_hit_blocks": 0, - "shared_read_blocks": 4, - "shared_written_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 319, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, "calls": 1, - "fingerprint": "c4f813bce4ed6c8837d6442669dd167e2be34f84a7b53bc068a7f6cff0d279d1", + "fingerprint": "a1d7c936498856dba2b0108d991e759fabc09b35dd08a52f01a1c6aee77e7a05", "indexes": [], "node_types": { "ModifyTable": 1, - "Result": 1 + "Seq Scan": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, @@ -19772,25 +18257,29 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Insert", + "Operation": "Delete", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -19798,7 +18287,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 0.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19806,22 +18295,22 @@ } ], "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 4, + "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 4, - "Shared Written Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 0.0, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -19831,10 +18320,109 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 6.04, + "planner_rows": 8, + "planner_total_cost": 14.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 0, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a2402cf5d1024d43576a5754663722529c951679c06bb6d5843fb880e7aeb854", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 12.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -19844,14 +18432,116 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "cafdd5f5e3e1dfa771dd6f693d840f3a9dd85caa4b0808525ecf1de024e4935b", - "indexes": [], + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 60, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.19, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b44d9d1db889e7e8cc8ad007cfb7ab4dffba864ca6fe879b04ee8471edce1f60", + "indexes": [ + "dcim_consoleport_unique_device_name" + ], "node_types": { + "Index Scan": 1, "Nested Loop": 1, - "Seq Scan": 2, + "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -19865,7 +18555,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, @@ -19882,34 +18572,39 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "dcim_consoleport", "Async Capable": false, "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", + "Plan Width": 995, + "Relation Name": "dcim_consoleport", "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19940,7 +18635,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19948,13 +18643,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.02, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19962,20 +18657,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" + "dcim_consoleport.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 6.03, + "Startup Cost": 12.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.04, + "Total Cost": 12.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -19983,7 +18678,99 @@ }, "Triggers": [] }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { @@ -19994,7 +18781,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 13.27, + "planner_total_cost": 14.27, "shared_dirtied_blocks": 0, "shared_hit_blocks": 1, "shared_read_blocks": 0, @@ -20006,7 +18793,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "cb77feea120324c27b1b6ddc723fe3423efc11289c8eaeb3e2d6d2075898382a", + "fingerprint": "c143db1c44f3ccbd0274d5818d5769377ffa5fcbd94b2c9b150c8f894b3d6625", "indexes": [], "node_types": { "Nested Loop": 5, @@ -20174,7 +18961,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20188,7 +18975,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.04, + "Total Cost": 5.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20232,7 +19019,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.06, + "Total Cost": 9.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20261,7 +19048,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20349,7 +19136,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20364,7 +19151,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.26, + "Total Cost": 14.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20386,10 +19173,10 @@ "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 13.27, + "Startup Cost": 14.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.27, + "Total Cost": 14.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20408,9 +19195,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.04, + "planner_total_cost": 4.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -20420,14 +19207,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d51442b54fe270b70ae07f271ccb6059197632b525fbfe5edc506b696435143a", + "fingerprint": "c728dd42e9db986d56ff79daeac0d7f0dbb331b788d2d4eeb9a6631cdc6e2898", "indexes": [], "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -20438,99 +19224,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.02, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20538,21 +19262,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 6.03, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.04, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20560,20 +19276,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.05, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -20583,18 +19299,21 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d6691b2a7a9790a8282724ab3c1256a38e53f72fd4acfdaeff751c964e17d712", - "indexes": [], + "fingerprint": "d352a3f80a2b2d9ce736e35720487c3ab073e9f16247cd7278be9b2389d67e73", + "indexes": [ + "dcim_rearport_unique_device_name" + ], "node_types": { + "Index Scan": 1, "Nested Loop": 1, - "Seq Scan": 2, + "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -20604,16 +19323,15 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 118, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -20622,45 +19340,51 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 118, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Actual Rows": 0.0, + "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Plan Width": 1013, + "Relation Name": "dcim_rearport", "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -20670,30 +19394,30 @@ "Parent Relationship": "Inner", "Plan Rows": 1, "Plan Width": 28, - "Relation Name": "dcim_moduletype", + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.03, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20701,207 +19425,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 6.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 1.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 82, - "shared_read_blocks": 9, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1464, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "d980e5ffbaa0c33ec46ea1e8b4a3c8b1300ae211a7d843e3847ad5cf871a9fd9", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 82, - "Shared Read Blocks": 9, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 1464, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e0f4302b1d35a8d09538405e8c704a4fa939409885902b15c76249eb3dc270d5", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 12.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 12.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -20909,7 +19446,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" }, { "aggregate": { @@ -20919,103 +19456,8 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "e571da5d8db72eeba2e5671a3d2c94a93abfb7e292641797b52543c803946df8", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_total_cost": 14.27, "shared_dirtied_blocks": 0, "shared_hit_blocks": 1, "shared_read_blocks": 0, @@ -21027,109 +19469,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", + "fingerprint": "d7387607ffe15251de8986a707d473e1f55e1c10e1572156f0bd5a3c033e3026", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 20.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e82affde9bd460e15c717c90a08c7aed62ab8454efdf80a8014fe6523ee686a1", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e" - ], - "node_types": { - "Index Scan": 1, "Nested Loop": 5, - "Seq Scan": 5, + "Seq Scan": 6, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -21143,7 +19490,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1454, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, @@ -21151,7 +19498,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -21161,7 +19508,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1454, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, @@ -21179,7 +19526,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1446, + "Plan Width": 727, "Plans": [ { "Actual Loops": 1, @@ -21197,7 +19544,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1236, + "Plan Width": 517, "Plans": [ { "Actual Loops": 1, @@ -21205,7 +19552,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -21215,7 +19562,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1228, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, @@ -21232,37 +19579,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1200, + "Plan Width": 481, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21293,7 +19637,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21301,13 +19645,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 5.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21345,13 +19689,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.2, + "Total Cost": 9.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21380,7 +19724,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21389,13 +19733,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.23, + "Total Cost": 11.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21433,13 +19777,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.38, + "Total Cost": 12.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21448,7 +19792,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -21468,7 +19812,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21477,13 +19821,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.41, + "Total Cost": 14.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21491,24 +19835,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T6\".name", + "\"T7\".name", "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 20.42, + "Startup Cost": 14.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.42, + "Total Cost": 14.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -21516,55 +19860,57 @@ }, "Triggers": [] }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_rows": 0, + "planner_total_cost": 1.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, + "shared_hit_blocks": 82, + "shared_read_blocks": 9, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1464, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "ea900781e8f661867ecd332e69d961c7104251c07056153e368026156bd49db6", + "fingerprint": "d980e5ffbaa0c33ec46ea1e8b4a3c8b1300ae211a7d843e3847ad5cf871a9fd9", "indexes": [], "node_types": { - "Limit": 1, + "ModifyTable": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -21576,8 +19922,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", + "Plan Width": 2003, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, @@ -21586,29 +19932,30 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 82, + "Shared Read Blocks": 9, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.0, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1464, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" }, { "aggregate": { @@ -21619,563 +19966,101 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_total_cost": 4.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 64, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 575, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 8 + "wal_records": 0 }, "calls": 1, - "fingerprint": "ffc747d4b5aa05800619d986d0257ff3f22963f7effa65304a8b6b998c4f5e65", + "fingerprint": "e0f4302b1d35a8d09538405e8c704a4fa939409885902b15c76249eb3dc270d5", "indexes": [], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 896, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 896, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 64, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, - "WAL Bytes": 575, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 8 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "36779d9ccb85180d87fa18b2ceb539ddc06ed4464322a9fbc938eff9a5833525", - "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" ORDER BY \"core_configrevision\".\"created\" DESC LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4087d301fb9fc54548c18069a19c8651b10741983b7479f5e4ccf366462a4f0b", - "normalized_sql": "SELECT \"core_configrevision\".\"id\", \"core_configrevision\".\"active\", \"core_configrevision\".\"created\", \"core_configrevision\".\"comment\", \"core_configrevision\".\"data\" FROM \"core_configrevision\" WHERE \"core_configrevision\".\"active\" LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 3, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 19, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 19 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", - "normalized_sql": "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\" = %s) LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 90, - "actual_rows_per_work_unit": 42.0, - "actual_rows_times_loops": 42, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 90, - "planner_rows": 214, - "planner_total_cost": 1272.83, - "planner_total_cost_per_work_unit": 1272.83, - "shared_dirtied_blocks": 4, - "shared_hit_blocks": 463, - "shared_hit_blocks_per_work_unit": 463.0, - "shared_read_blocks": 13, - "shared_written_blocks": 1, - "statement_calls": 96, - "statement_calls_per_work_unit": 96.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 3987, - "wal_fpi": 0, - "wal_records": 56, - "work_units": 1 - } - }, - "description": "Plain interface rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 170.79908, - "p95_ms": 191.16176929999997, - "samples_ns": [ - 172354659, - 175850867, - 166171206, - 165932174, - 167186500, - 198662760, - 172133535, - 169943099, - 159497927, - 170799080, - 169192190, - 167323944, - 187947059, - 171673360, - 181307875 - ] - }, - "wall": { - "median_ms": 238.024988, - "p95_ms": 254.2980661, - "samples_ns": [ - 241726765, - 242935137, - 229797801, - 227549431, - 231243888, - 260879604, - 241354744, - 238024988, - 219145033, - 238728203, - 234312296, - 228204357, - 251477407, - 235393856, - 247302991 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 178.658185, - "p95_ms": 184.172017, - "samples_ns": [ - 184784665, - 178658185, - 168561117 - ] + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, - "wall": { - "median_ms": 241.448316, - "p95_ms": 247.893027, - "samples_ns": [ - 248609106, - 241448316, - 228515644 - ] - } - } - }, - "name": "module.complete_model_save.plain_rename", - "semantic_result": { - "interface_names": [ - "et-0/0/3" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 11.12, + "planner_total_cost": 12.2, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -22185,32 +20070,35 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], + "fingerprint": "e62518c263b493b3c4ea832bc83478a6139b00ff04c9a503e02792ac35bfcf55", + "indexes": [ + "dcim_coolingoutflow_device_id_74dd615f" + ], "node_types": { - "Limit": 1, + "Index Scan": 1, "Nested Loop": 1, - "Seq Scan": 2 + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -22223,43 +20111,48 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", "Async Capable": false, "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.05, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -22271,17 +20164,17 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.06, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22289,13 +20182,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22303,13 +20196,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingoutflow.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 12.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22317,170 +20217,98 @@ }, "Triggers": [] }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.05, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, - "shared_read_blocks": 0, - "shared_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 4, + "shared_hit_blocks": 0, + "shared_read_blocks": 4, + "shared_written_blocks": 1, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 + "wal_bytes": 466, + "wal_fpi": 3, + "wal_records": 4 }, "calls": 1, - "fingerprint": "0960052a4689a1c77e4206a2dc140d306197ee9da7c7110d1c4d44080d5354a7", + "fingerprint": "e6cc935703f9da675ae7f4d8a8c161d87264f273baf859dd253a534f85b88d9f", "indexes": [], "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1232, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.04, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.04, + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 4, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 4, + "Shared Written Blocks": 1, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.05, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 + "WAL Bytes": 466, + "WAL FPI": 3, + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { @@ -22503,13 +20331,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "16cb0355dd3d9843a350cff777ca1d3b3eccb668b92bb1cac767077c4eca154b", + "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -22523,12 +20351,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 137, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -22540,8 +20368,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, @@ -22572,111 +20400,386 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 10, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, + "planner_rows": 80, + "planner_total_cost": 405.29999999999995, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 319, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", - "indexes": [], + "calls": 10, + "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 40.53, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 1.2, + "planner_rows": 1, + "planner_total_cost": 5.04, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -22686,18 +20789,181 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "34d891f58a1beeb7acbd7a0b98522859d73eec49092a0084107fe945bbc415ac", + "fingerprint": "efa5a13226d07fdbf02f6289a8e1c9879fa89b03bd401bceb5a02dbb7650122a", "indexes": [], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 5.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "f135640d0e60a389427bd8846360690b2058f4af3050e16ddeff5a33a8522ba9", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -22705,18 +20971,18 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Delete", + "Operation": "Update", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -22725,32 +20991,124 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", + "Plan Width": 14, + "Relation Name": "dcim_moduletype", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.2, + "Total Cost": 4.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.2, + "Total Cost": 4.02, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.47, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f4193255e9202d040b4de2066de4f497244ef0f73841a5b7c7c64f0e14c25f57", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22758,7 +21116,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" }, { "aggregate": { @@ -22769,9 +21127,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 7.05, + "planner_total_cost": 5.04, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -22781,14 +21139,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3da9f3c1db8902e588d367f220d4fa0cd6f85f322507d62c47f6140a68a4e993", + "fingerprint": "f890a6660a75627ac2d4f49245f9fd53e718fd4e33869e489a22d39bd97ac514", "indexes": [], "node_types": { "Nested Loop": 1, "Seq Scan": 2, "Sort": 1 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -22802,7 +21160,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 118, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -22810,8 +21168,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -22820,15 +21178,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 118, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -22837,8 +21195,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Plan Width": 2005, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, @@ -22847,7 +21205,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22856,7 +21214,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -22868,15 +21226,15 @@ "Parent Relationship": "Inner", "Plan Rows": 1, "Plan Width": 28, - "Relation Name": "dcim_moduletype", + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22885,13 +21243,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.03, + "Total Cost": 5.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22899,20 +21257,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 7.04, + "Startup Cost": 5.03, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.05, + "Total Cost": 5.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -22920,7 +21279,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { @@ -22931,9 +21290,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 17.27, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -22943,14 +21302,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3f0ecb76e79bc9e6b94d4dc18df1a0fb2bc4bbd90b0ef9c5ade8630c9d7a41ba", + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", "indexes": [], "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -22961,547 +21319,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 735, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 17.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 6, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 69.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 42, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], - "node_types": { - "Hash": 6, - "Hash Join": 6, - "Limit": 6, - "Seq Scan": 12 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.49, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -23509,13 +21357,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -23523,7 +21371,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { @@ -23534,300 +21382,551 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 6.01, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, + "shared_hit_blocks": 22, + "shared_read_blocks": 1, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1471, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "454ced89a1990d8cf0551538d3880cb0af39eafd73a24bef91b657a04945f939", + "fingerprint": "fec67d19a4a85245415ecfd36990a683f35ae4d60827b6f49f2d79b1b25b664e", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 2017, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, + "Plan Width": 2017, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 22, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1471, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 }, { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.19, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 }, { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 26, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1464, - "wal_fpi": 0, - "wal_records": 21 - }, "calls": 1, - "fingerprint": "5b11ff978c3afd4c46b83f6c38218c07462e0293a594abfbf5a0ba31edaf1d43", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 26, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1464, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 3, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 19, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 19 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", + "normalized_sql": "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\" = %s) LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 88, + "actual_rows_per_work_unit": 42.0, + "actual_rows_times_loops": 42, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 88, + "planner_rows": 192, + "planner_total_cost": 1318.7099999999998, + "planner_total_cost_per_work_unit": 1318.7099999999998, + "shared_dirtied_blocks": 4, + "shared_hit_blocks": 420, + "shared_hit_blocks_per_work_unit": 420.0, + "shared_read_blocks": 23, + "shared_written_blocks": 1, + "statement_calls": 94, + "statement_calls_per_work_unit": 94.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 4134, + "wal_fpi": 3, + "wal_records": 56, + "work_units": 1 + } + }, + "description": "Plain interface rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 166.734267, + "p95_ms": 183.86374890000002, + "samples_ns": [ + 168469192, + 166734267, + 166050157, + 170390783, + 162551489, + 164813088, + 178340382, + 160000966, + 150530010, + 158129794, + 182017875, + 168302170, + 161663299, + 188170788, + 171329277 + ] + }, + "wall": { + "median_ms": 225.878001, + "p95_ms": 243.8231814, + "samples_ns": [ + 231646764, + 223223162, + 225869798, + 228725623, + 222362371, + 225878001, + 242890083, + 217103650, + 205543453, + 213844637, + 242615511, + 228210114, + 220955930, + 246000411, + 227798027 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 167.29694, + "p95_ms": 192.89938669999998, + "samples_ns": [ + 162575391, + 195744103, + 167296940 + ] }, + "wall": { + "median_ms": 225.398118, + "p95_ms": 253.044759, + "samples_ns": [ + 223206301, + 256116608, + 225398118 + ] + } + } + }, + "name": "module.complete_model_save.plain_rename", + "semantic_result": { + "interface_names": [ + "et-0/0/3" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ { "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 24, - "planner_total_cost": 119.19, + "planner_rows": 1, + "planner_total_cost": 18.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -23836,28 +21935,19 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 3, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], + "calls": 1, + "fingerprint": "06fd52c2c511c8d9a476738c667834ee088b180bc7d5dc935ab952a0b5e24d7c", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 3, - "Bitmap Index Scan": 3, - "Hash": 3, - "Hash Join": 3, - "Index Scan": 6, - "Nested Loop": 6, - "Seq Scan": 3, - "Sort": 3 + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -23866,16 +21956,17 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -23883,15 +21974,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -23900,255 +21992,309 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 1, + "Plan Width": 727, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 517, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 509, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 481, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 13.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 15.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 16.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 18.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24156,113 +22302,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 39.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 14.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "7a13ce256d4f2702bfc01fc442ff8cc2ee4887dbf76d157d46a89b95c5f2df24", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 18.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.01, + "Total Cost": 18.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24270,7 +22327,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { @@ -24281,9 +22338,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.31, + "planner_total_cost": 9.05, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 9, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -24293,14 +22350,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", + "fingerprint": "0960052a4689a1c77e4206a2dc140d306197ee9da7c7110d1c4d44080d5354a7", "indexes": [], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, + "Nested Loop": 1, + "Seq Scan": 2, "Sort": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -24311,34 +22368,36 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Sort", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 32, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 75, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Filter": "(module_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -24347,37 +22406,61 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Plan Width": 986, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.02, + "Total Cost": 9.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24385,14 +22468,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.04, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.31, + "Total Cost": 9.05, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24400,7 +22490,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { "aggregate": { @@ -24411,9 +22501,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -24423,13 +22513,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8e9cd053c36b2735abee079bc23b514f3cc6233565524f2c338bbabffdfec40a", + "fingerprint": "0f9c521a64583145fec2837196424c58e08d3ecd0bf68ea21d6fcf465923a14b", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -24443,12 +22533,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 189, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -24460,17 +22550,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", + "Plan Width": 707, + "Relation Name": "dcim_devicetype", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24478,13 +22568,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24492,7 +22582,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { @@ -24502,88 +22592,175 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, + "planner_rows": 0, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 319, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, "calls": 1, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], + "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 1.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "34d891f58a1beeb7acbd7a0b98522859d73eec49092a0084107fe945bbc415ac", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24591,7 +22768,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -24602,9 +22779,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 9.05, + "planner_total_cost": 7.05, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -24614,14 +22791,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "c17fb4f9cb449289cd74e543ad60fcfc8d315ca110552c91a274f91c4e60ad2c", + "fingerprint": "3da9f3c1db8902e588d367f220d4fa0cd6f85f322507d62c47f6140a68a4e993", "indexes": [], "node_types": { "Nested Loop": 1, "Seq Scan": 2, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -24635,7 +22812,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1232, + "Plan Width": 118, "Plans": [ { "Actual Loops": 1, @@ -24643,8 +22820,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -24653,15 +22830,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1232, + "Plan Width": 118, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -24670,17 +22847,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24689,7 +22866,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -24701,15 +22878,15 @@ "Parent Relationship": "Inner", "Plan Rows": 1, "Plan Width": 28, - "Relation Name": "dcim_device", + "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.01, + "Total Cost": 6.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24718,13 +22895,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.04, + "Total Cost": 7.03, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24732,113 +22909,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 9.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 12.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "c264941a16fde450a7f2039a40a3dbd14a4606ff784f1f837df6887cc33c8865", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 7.04, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.01, + "Total Cost": 7.05, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24846,20 +22930,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { - "actual_loops": 2, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 4.04, + "planner_rows": 1, + "planner_total_cost": 8.19, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -24868,14 +22952,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "cdce8c3da096a358abc76f2dc19f3031674bc8775e8c39891cbf074f16db775e", - "indexes": [], + "calls": 1, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], "node_types": { - "Limit": 2, - "Seq Scan": 2 + "Index Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -24886,37 +22972,40 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.02, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24927,10 +23016,17 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.02, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -24938,20 +23034,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 3, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.15, + "planner_rows": 24, + "planner_total_cost": 121.59, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -24960,37 +23056,45 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "dd561e6bce12797303bb287dc72b7c9f302b10db2a60c60c71b0459ae948c366", - "indexes": [], + "calls": 3, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], "node_types": { - "Limit": 1, + "Bitmap Heap Scan": 3, + "Bitmap Index Scan": 3, + "Hash": 3, + "Hash Join": 3, + "Index Scan": 6, "Nested Loop": 6, - "Seq Scan": 7 + "Seq Scan": 3, + "Sort": 3 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -24999,16 +23103,15 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -25017,371 +23120,255 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, + "Plan Rows": 8, + "Plan Width": 1998, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, + "Plan Rows": 8, + "Plan Width": 1976, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.37, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 24.98, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.12, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.15, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25389,13 +23376,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.15, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25403,55 +23398,57 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_rows": 0, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 26, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1464, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", + "fingerprint": "5b11ff978c3afd4c46b83f6c38218c07462e0293a594abfbf5a0ba31edaf1d43", "indexes": [], "node_types": { - "Limit": 1, + "ModifyTable": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -25463,39 +23460,40 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 2003, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 26, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1464, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" }, { "aggregate": { @@ -25506,9 +23504,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_total_cost": 13.23, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -25518,13 +23516,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e9ee92f1b5b49f37c77e00f16e9d6dea77904be34506f56d4ff8fa644e4515a9", - "indexes": [], + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { + "Index Scan": 1, "Limit": 1, + "Nested Loop": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -25538,34 +23540,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25573,13 +23640,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25587,20 +23654,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_rows": 2, + "planner_total_cost": 14.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 14, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -25609,14 +23676,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "ea900781e8f661867ecd332e69d961c7104251c07056153e368026156bd49db6", + "calls": 2, + "fingerprint": "7a13ce256d4f2702bfc01fc442ff8cc2ee4887dbf76d157d46a89b95c5f2df24", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -25630,12 +23697,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -25647,17 +23714,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", + "Plan Width": 857, + "Relation Name": "dcim_device", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25665,13 +23732,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25679,20 +23746,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 6, + "actual_rows_times_loops": 6, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.01, + "planner_rows": 6, + "planner_total_cost": 82.38000000000001, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 30, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -25701,14 +23768,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "fd0e7f906a604aef29695c8faaf5dce16f0792bad49443ca31d4be2b80767bc1", - "indexes": [], + "calls": 6, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 6, + "Limit": 6, + "Nested Loop": 6, + "Seq Scan": 6 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -25722,34 +23793,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.01, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25757,13 +23893,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.01, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -25771,307 +23907,37 @@ }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 6 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 34, - "actual_rows_per_work_unit": 24.0, - "actual_rows_times_loops": 24, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 34, - "planner_rows": 59, - "planner_total_cost": 324.53999999999996, - "planner_total_cost_per_work_unit": 324.53999999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 182, - "shared_hit_blocks_per_work_unit": 182.0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 40, - "statement_calls_per_work_unit": 40.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1783, - "wal_fpi": 0, - "wal_records": 25, - "work_units": 1 - } - }, - "description": "Plain interface rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 87.404473, - "p95_ms": 101.33072089999999, - "samples_ns": [ - 84498264, - 90001056, - 89124851, - 89452540, - 87404473, - 83278209, - 84564168, - 84977832, - 89663853, - 105167514, - 83340018, - 85112978, - 99686381, - 81998459, - 88890230 - ] - }, - "wall": { - "median_ms": 116.84338, - "p95_ms": 128.4954699, - "samples_ns": [ - 115100924, - 120588109, - 121366746, - 118169861, - 119239324, - 112792425, - 114731262, - 113791384, - 120414633, - 133177282, - 112029456, - 112505567, - 126488979, - 109817667, - 116843380 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 82.788864, - "p95_ms": 88.8890532, - "samples_ns": [ - 82788864, - 81480023, - 89566852 - ] - }, - "wall": { - "median_ms": 109.335762, - "p95_ms": 117.3411, - "samples_ns": [ - 109335762, - 106937758, - 118230582 - ] - } - } - }, - "name": "module.direct_callback.plain_rename", - "semantic_result": { - "interface_names": [ - "et-0/0/3" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "03473b78e7390c5c67e704037e0577c616f4f4ed0b4f646eecf3b3f2ee47dd27", + "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, @@ -26082,37 +23948,73 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 1.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26120,13 +24022,14 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 1.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 1.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26134,7 +24037,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { @@ -26145,9 +24048,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 11.12, + "planner_total_cost": 1.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -26157,14 +24060,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "fingerprint": "8e9cd053c36b2735abee079bc23b514f3cc6233565524f2c338bbabffdfec40a", "indexes": [], "node_types": { "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 2 + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -26178,96 +24080,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 189, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26275,13 +24115,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26289,7 +24129,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" }, { "aggregate": { @@ -26300,7 +24140,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 2.02, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -26312,13 +24152,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", "indexes": [], "node_types": { - "Aggregate": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -26329,19 +24169,18 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 8, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -26350,8 +24189,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interfacetemplate", + "Plan Width": 137, + "Relation Name": "dcim_site", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, @@ -26371,11 +24210,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 2.02, - "Strategy": "Plain", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.02, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26383,20 +24221,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 19.63, + "planner_rows": 1, + "planner_total_cost": 9.05, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 9, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -26406,50 +24244,35 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "08a14fd83a735c21f6b8d0ea736b541a36db385a9e6225206e92a860ccfa8fa3", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" - ], + "fingerprint": "c17fb4f9cb449289cd74e543ad60fcfc8d315ca110552c91a274f91c4e60ad2c", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 1 + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, + "Plan Rows": 1, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, @@ -26460,36 +24283,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3531, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26497,95 +24318,28 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 28, + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.42, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26594,25 +24348,21 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.57, + "Total Cost": 9.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -26620,10 +24370,13 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 19.58, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 9.04, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.63, + "Total Cost": 9.05, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26631,20 +24384,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 11.21, + "planner_total_cost": 12.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -26653,158 +24406,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "0a375977f39a551f8c5984c640634aba3f6e5e745dcc18359376501732163285", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "calls": 2, + "fingerprint": "c264941a16fde450a7f2039a40a3dbd14a4606ff784f1f837df6887cc33c8865", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, + "Plan Rows": 1, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ANY ('?'::bigint[]))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.15, + "Total Cost": 6.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 11.16, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.21, + "Total Cost": 6.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26812,7 +24476,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { @@ -26822,10 +24486,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, + "planner_rows": 8, + "planner_total_cost": 14.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -26835,13 +24499,112 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "1032411ad7c320616e1c3ac6373cf80cf16b057668f30c94891b64d2f0f1cbd1", + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 4.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "cdce8c3da096a358abc76f2dc19f3031674bc8775e8c39891cbf074f16db775e", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -26863,7 +24626,7 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -26874,15 +24637,15 @@ "Plan Rows": 1, "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 2.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26890,13 +24653,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 2.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -26904,20 +24667,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 29.42, + "planner_total_cost": 7.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -26927,40 +24690,37 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "127af72de855f3683433d5cb3d458a06d59b513da24ac7a9a9b1e146f6ba7d5d", - "indexes": [ - "dcim_rearporttemplate_unique_module_type_name" - ], + "fingerprint": "dd561e6bce12797303bb287dc72b7c9f302b10db2a60c60c71b0459ae948c366", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -26969,15 +24729,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -26987,15 +24747,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1180, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -27005,15 +24765,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 970, + "Plan Width": 829, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -27023,15 +24783,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 962, + "Plan Width": 640, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -27040,49 +24801,107 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 934, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 2.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -27091,40 +24910,40 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.18, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -27135,40 +24954,40 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.21, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -27179,40 +24998,40 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.23, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -27222,41 +25041,41 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.39, + "Total Cost": 6.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -27267,31 +25086,31 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 7.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27299,24 +25118,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 7.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27324,7 +25132,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -27335,7 +25143,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.0, + "planner_total_cost": 1.01, "shared_dirtied_blocks": 0, "shared_hit_blocks": 1, "shared_read_blocks": 0, @@ -27347,13 +25155,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", + "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -27367,12 +25175,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 892, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -27384,8 +25192,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, @@ -27394,7 +25202,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27408,7 +25216,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27416,20 +25224,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.0, + "planner_total_cost": 1.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -27439,17 +25247,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "21413640789c0e0ad9e69a3e79358c5484c1e04e7cab858dbe308d116df1bd32", + "fingerprint": "e9ee92f1b5b49f37c77e00f16e9d6dea77904be34506f56d4ff8fa644e4515a9", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -27463,11 +25271,11 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -27477,16 +25285,16 @@ "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27494,13 +25302,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27508,18 +25316,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 23.27, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -27531,357 +25339,46 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "25423355a3aafb7e57228b55e4b75f4c0310feede7e15c1840ac72c693fb621a", + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", "indexes": [], "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 735, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -27889,7 +25386,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.26, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27900,21 +25397,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 23.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.27, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -27922,20 +25408,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.0, + "planner_total_cost": 7.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -27945,17 +25431,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "260e23d00ff4b1359317ec395ed01749bc72036f2c1fcb5e40f61dee40cb2b7d", + "fingerprint": "fd0e7f906a604aef29695c8faaf5dce16f0792bad49443ca31d4be2b80767bc1", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -27969,11 +25455,11 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -27983,16 +25469,16 @@ "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28000,13 +25486,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28014,59 +25500,331 @@ }, "Triggers": [] }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 6 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 34, + "actual_rows_per_work_unit": 24.0, + "actual_rows_times_loops": 24, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 34, + "planner_rows": 59, + "planner_total_cost": 344.00999999999993, + "planner_total_cost_per_work_unit": 344.00999999999993, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 172, + "shared_hit_blocks_per_work_unit": 172.0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 40, + "statement_calls_per_work_unit": 40.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1783, + "wal_fpi": 0, + "wal_records": 25, + "work_units": 1 + } + }, + "description": "Plain interface rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 84.186764, + "p95_ms": 91.1040653, + "samples_ns": [ + 88713329, + 81858904, + 80388176, + 89785775, + 82834903, + 80155450, + 80967119, + 90413701, + 87966338, + 79574825, + 85040720, + 84186764, + 83074622, + 92469948, + 90518687 + ] + }, + "wall": { + "median_ms": 110.544778, + "p95_ms": 122.7714707, + "samples_ns": [ + 118023701, + 107000383, + 106736274, + 118001934, + 108237860, + 109521582, + 109977066, + 116990317, + 113152683, + 105857481, + 110896876, + 110544778, + 110523241, + 121490075, + 125761394 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 84.325984, + "p95_ms": 87.6743296, + "samples_ns": [ + 82428070, + 84325984, + 88046368 + ] }, + "wall": { + "median_ms": 111.407644, + "p95_ms": 116.4540493, + "samples_ns": [ + 109290984, + 111407644, + 117014761 + ] + } + } + }, + "name": "module.direct_callback.plain_rename", + "semantic_result": { + "interface_names": [ + "et-0/0/3" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_rows": 0, + "planner_total_cost": 7.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 79, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 1 }, "calls": 1, - "fingerprint": "2bad17d2d4805cb13cce33339d4a16c90df3a3110c745512a91336858ed39c20", + "fingerprint": "04d829b5d8bde052cbd52cf5ff71bf822a60731ed33cac16c2d128b318913a6d", "indexes": [], "node_types": { - "Aggregate": 1, + "ModifyTable": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 8, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(module_id = ?)", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -28075,53 +25833,53 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interface", + "Plan Width": 14, + "Relation Name": "dcim_moduletype", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 7.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 3.0, - "Strategy": "Plain", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 7.02, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 1, + "planner_total_cost": 2.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -28131,159 +25889,70 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "34a8f832c2911950ab3a2024a0b9c7b0bcdb877877e0d20de97ce9697bd64f17", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], + "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Aggregate": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Aggregate", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 8, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 0, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Startup Cost": 2.02, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 2.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28291,20 +25960,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 10.05, + "planner_total_cost": 21.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -28314,18 +25983,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3faa08767aa5263a2609261613d80fca47c4793d480d6dff232d152e148f7bd3", + "fingerprint": "064bab7fe0fd3b237214a0363c3af6a33f572a7bd17e2595aa098543a069065b", "indexes": [], "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, + "Nested Loop": 5, + "Seq Scan": 6, "Sort": 1 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -28335,16 +26004,16 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 156, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -28353,190 +26022,25 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 156, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 136, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 10.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4233ea527cc0c7647ee8da773a30d9995cb21eaf6bc0ab4c642d2e8857fe48cd", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1446, + "Plan Width": 727, "Plans": [ { "Actual Loops": 1, @@ -28554,7 +26058,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1236, + "Plan Width": 517, "Plans": [ { "Actual Loops": 1, @@ -28562,7 +26066,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -28572,7 +26076,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1228, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, @@ -28589,37 +26093,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1200, + "Plan Width": 481, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28650,7 +26151,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28661,10 +26162,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.18, + "Total Cost": 9.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28693,7 +26194,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28705,10 +26206,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.2, + "Total Cost": 16.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28749,10 +26250,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.23, + "Total Cost": 18.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28793,10 +26294,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.38, + "Total Cost": 19.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28805,7 +26306,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -28837,10 +26338,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 21.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28855,17 +26356,17 @@ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T6\".name", + "\"T7\".name", "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 21.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 21.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -28873,7 +26374,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" }, { "aggregate": { @@ -28884,7 +26385,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 29.42, + "planner_total_cost": 27.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -28896,9 +26397,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "43c062329a93ff0674b262cf8302ebd88702be65794af0b7413a30889ded156e", + "fingerprint": "07422be7a158876d9d9f22e3dc8e755b1d66716986e5ce1401c98b691e045d0f", "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7" + "dcim_rearporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, @@ -28906,7 +26407,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -28920,7 +26421,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1314, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, @@ -28938,7 +26439,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1314, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, @@ -28956,7 +26457,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1306, + "Plan Width": 1180, "Plans": [ { "Actual Loops": 1, @@ -28974,7 +26475,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1096, + "Plan Width": 970, "Plans": [ { "Actual Loops": 1, @@ -28982,7 +26483,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -28992,7 +26493,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1088, + "Plan Width": 962, "Plans": [ { "Actual Loops": 1, @@ -29009,16 +26510,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1060, + "Plan Width": 934, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", + "Alias": "dcim_rearporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -29028,8 +26529,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -29070,7 +26571,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29084,7 +26585,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.18, + "Total Cost": 15.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29113,7 +26614,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29128,7 +26629,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.21, + "Total Cost": 22.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29172,7 +26673,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.23, + "Total Cost": 24.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29216,7 +26717,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.39, + "Total Cost": 25.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29260,7 +26761,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 27.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29277,15 +26778,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + "dcim_rearporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 27.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 27.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29293,7 +26794,99 @@ }, "Triggers": [] }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1032411ad7c320616e1c3ac6373cf80cf16b057668f30c94891b64d2f0f1cbd1", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" }, { "aggregate": { @@ -29304,7 +26897,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 29.42, + "planner_total_cost": 27.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -29316,9 +26909,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "442cb11b10354bbfeacee559b52687ee6ac7b43e0f62cb72a59d9bb4b2ec90d7", + "fingerprint": "16072ed69ee76030663adf546903e24309fe50ec8af3ff8563802b1e73fcd7dd", "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name" + "dcim_coolingintaketemplate_module_type_id_b734e68e" ], "node_types": { "Index Scan": 1, @@ -29326,7 +26919,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -29340,7 +26933,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 1454, "Plans": [ { "Actual Loops": 1, @@ -29358,7 +26951,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 1454, "Plans": [ { "Actual Loops": 1, @@ -29376,7 +26969,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1150, + "Plan Width": 1446, "Plans": [ { "Actual Loops": 1, @@ -29394,7 +26987,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 940, + "Plan Width": 1236, "Plans": [ { "Actual Loops": 1, @@ -29402,7 +26995,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -29412,7 +27005,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 932, + "Plan Width": 1228, "Plans": [ { "Actual Loops": 1, @@ -29429,16 +27022,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 904, + "Plan Width": 1200, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", + "Alias": "dcim_coolingintaketemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -29448,8 +27041,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -29490,7 +27083,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29504,7 +27097,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.18, + "Total Cost": 15.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29533,7 +27126,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29548,7 +27141,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.21, + "Total Cost": 22.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29592,7 +27185,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.23, + "Total Cost": 24.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29636,7 +27229,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.39, + "Total Cost": 25.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29680,7 +27273,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 27.4, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29697,15 +27290,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" + "dcim_coolingintaketemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 27.41, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 27.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29713,20 +27306,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" }, { "aggregate": { - "actual_loops": 39, - "actual_rows_times_loops": 39, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 39, - "planner_total_cost": 451.2299999999998, + "planner_rows": 1, + "planner_total_cost": 1.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 273, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -29735,16 +27328,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 39, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "calls": 1, + "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", "indexes": [], "node_types": { - "Hash": 39, - "Hash Join": 39, - "Limit": 39, - "Seq Scan": 78 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -29758,129 +27349,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 892, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", - "Inner Unique": true, - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29888,13 +27384,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29902,7 +27398,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" }, { "aggregate": { @@ -29913,9 +27409,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.19, + "planner_total_cost": 3.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -29925,15 +27421,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], + "fingerprint": "21413640789c0e0ad9e69a3e79358c5484c1e04e7cab858dbe308d116df1bd32", + "indexes": [], "node_types": { - "Index Scan": 1, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -29944,40 +27438,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 16, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_subscription", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -29985,20 +27476,105 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 7.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 7, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "22561a2a1004243112180bd9c56abe53b31b423364b66871c9dff61f7751a1e4", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -30006,7 +27582,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { @@ -30017,9 +27593,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 29.42, + "planner_total_cost": 3.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -30029,17 +27605,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "4d5af9f152307a9df4f43fb6d5c6ad9d3ac97c4638fdeaad4184fcde5b081cfd", - "indexes": [ - "dcim_powerporttemplate_unique_module_type_name" - ], + "fingerprint": "260e23d00ff4b1359317ec395ed01749bc72036f2c1fcb5e40f61dee40cb2b7d", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -30050,18 +27622,218 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1166, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2bad17d2d4805cb13cce33339d4a16c90df3a3110c745512a91336858ed39c20", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.0, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 11.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "2ca7c8d10bda38e0235074adf6690441e208859f9e8b3f198cfd358b7d1d1c66", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -30071,296 +27843,48 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1166, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 948, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 912, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.39, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Filter": "(module_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -30369,16 +27893,17 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -30387,38 +27912,36 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 11.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 11.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 11.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -30426,7 +27949,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { "aggregate": { @@ -30436,10 +27959,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 22.27, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -30449,36 +27972,49 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "54b93df58dc8d65464e2f7eb8664bb9bfdd691e0bc2d239b615a19b79ef2a914", - "indexes": [], + "fingerprint": "4260e45e27233268fcf14525ac4d1229a1d864f04af0fb3e4232d430d4689040", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, + "Plan Rows": 2, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -30488,351 +28024,107 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 341, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 333, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 123, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 115, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.24, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 22.26, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 22.27, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 22.27, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -30840,7 +28132,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" }, { "aggregate": { @@ -30851,7 +28143,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 23.27, + "planner_total_cost": 8.19, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -30863,14 +28155,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "5f0f03e589749cf1c7af723cb259b891d1518c023e693ff300e0f1233f88ff63", - "indexes": [], + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, + "Index Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -30884,7 +28177,119 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 735, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + }, + { + "aggregate": { + "actual_loops": 16, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 128, + "planner_total_cost": 648.4799999999998, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 16, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 16, + "Bitmap Index Scan": 16, + "Hash": 16, + "Hash Join": 16, + "Index Scan": 32, + "Nested Loop": 32, + "Seq Scan": 16, + "Sort": 16 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, @@ -30892,8 +28297,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -30901,8 +28305,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, @@ -30910,7 +28314,6 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -30919,111 +28322,106 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, + "Plan Rows": 8, + "Plan Width": 1998, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, + "Plan Rows": 8, + "Plan Width": 1976, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -31031,109 +28429,52 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.37, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.08, + "Total Cost": 24.98, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31142,42 +28483,46 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Alias": "T4", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.24, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31186,42 +28531,46 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T7", + "Alias": "extras_customfieldchoiceset", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.26, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31229,24 +28578,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 23.27, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.27, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31254,20 +28600,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 19.63, + "planner_total_cost": 11.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -31277,23 +28623,21 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "63dc26ddb7ef8b5f15573b9d281c51292c01e3785c820f8767b2f70c4f8d841c", + "fingerprint": "54048036aeda8f471504672b9cad08bbec54d6c75adf2c3dcc21250506f92bf7", "indexes": [ - "dcim_cable_pkey", "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 2, + "Nested Loop": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -31313,11 +28657,11 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 3531, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -31331,7 +28675,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3531, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -31339,7 +28683,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -31354,7 +28698,7 @@ "Relation Name": "dcim_device", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -31368,95 +28712,30 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.42, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31465,13 +28744,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.57, + "Total Cost": 11.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31483,7 +28762,7 @@ "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -31491,10 +28770,10 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 19.58, + "Startup Cost": 11.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.63, + "Total Cost": 11.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31502,20 +28781,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -31525,68 +28804,161 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", - "indexes": [], + "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", + "indexes": [ + "dcim_consoleserverport_unique_device_name", + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, + "Plan Rows": 2, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -31594,102 +28966,137 @@ }, "Triggers": [] }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.01, + "planner_rows": 1, + "planner_total_cost": 1.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 0 }, "calls": 1, - "fingerprint": "66b725a3e4696b45ed695d66297f2f46bd22ad612b45173b014e0e4f1e61f895", + "fingerprint": "5ebc453b4efcf66b4ea0092811b9c48badc868168c479df37100f1841cfc798d", "indexes": [], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_moduletype", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Aggregate", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Plan Width": 113, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 113, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 1.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 1.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 1.31, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { @@ -31702,7 +29109,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -31712,10 +29119,10 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6a250ea2a0c7f445cb802719ca76651a364263a07b34702a3aef716601a48040", + "fingerprint": "613079e67042ee5e8e1bf3bc90ce4f08f2b578d5d9a77569593c7267963b8558", "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f", - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" ], "node_types": { "Incremental Sort": 1, @@ -31723,7 +29130,7 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -31747,7 +29154,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1116, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -31764,7 +29171,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1116, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -31772,7 +29179,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -31789,7 +29196,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -31804,12 +29211,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", + "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Name": "dcim_frontport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -31819,9 +29225,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -31839,7 +29244,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -31856,12 +29261,12 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" + "dcim_frontport.name COLLATE natural_sort" ], "Startup Cost": 16.32, "Temp Read Blocks": 0, @@ -31874,20 +29279,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" }, { "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 128, - "planner_total_cost": 635.6800000000001, + "planner_rows": 1, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -31896,319 +29301,55 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 16, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], + "calls": 1, + "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 16, - "Bitmap Index Scan": 16, - "Hash": 16, - "Hash Join": 16, - "Index Scan": 32, - "Nested Loop": 32, - "Seq Scan": 16, - "Sort": 16 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32216,21 +29357,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32238,7 +29371,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" }, { "aggregate": { @@ -32249,9 +29382,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 2.31, + "planner_total_cost": 13.23, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -32261,14 +29394,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6c897b050a515671da1a7440af1415036a969264e619f20de6d07dd67b86764d", - "indexes": [], + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -32279,53 +29415,88 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 32, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 113, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 113, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 5.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32333,109 +29504,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 2.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 0.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", - "indexes": [], - "node_types": { - "Limit": 4, - "Result": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "One-Time Filter": "false", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 0, - "Plan Width": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.0, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32443,13 +29518,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.0, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32457,7 +29532,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { "aggregate": { @@ -32468,7 +29543,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_total_cost": 19.63, "shared_dirtied_blocks": 0, "shared_hit_blocks": 5, "shared_read_blocks": 0, @@ -32480,18 +29555,19 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6ff21baa021ac7ff51b30607e4072d8ddf915cc7e6dae2eb5df79f29751ce37a", + "fingerprint": "6a1a22a57da23c1ec3b20ca2d79f8cac0e9a1ac3dc98c7e42a5351a909c4f218", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" + "dcim_cable_pkey", + "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 2, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -32515,7 +29591,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1041, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -32523,6 +29599,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -32532,7 +29609,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -32540,8 +29617,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -32554,10 +29630,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -32572,40 +29647,101 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 11.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, @@ -32613,7 +29749,7 @@ "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 19.57, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32621,7 +29757,8 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, @@ -32629,12 +29766,13 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 19.58, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 19.63, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32642,7 +29780,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { @@ -32652,10 +29790,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 1, + "planner_total_cost": 27.42, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -32665,49 +29803,39 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "762d501e081f48edd74a88728916d1d5c8539bd2abdf7ca579de1ba470fd6b43", + "fingerprint": "6af60909b3124ba3f88bb214335deba2ee1c2acebac3ee22fd2f89305e781938", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_powerport_unique_device_name" + "dcim_frontporttemplate_unique_module_type_name" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1027, + "Plan Rows": 1, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -32717,109 +29845,354 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1027, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 25.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerport", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 27.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" ], - "Startup Cost": 16.32, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 27.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 27.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32827,20 +30200,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 11.21, + "planner_total_cost": 19.63, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -32850,21 +30223,23 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7c4b84f384a05155200e4ef0af95386fcddce62865ead5ed0ad83008d10c1940", + "fingerprint": "6d403b227728750d7a25bfe96175157d505fafb457a3d7557ca4af7448e07a85", "indexes": [ + "dcim_cable_pkey", "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Nested Loop": 1, + "Index Scan": 1, + "Nested Loop": 2, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -32884,11 +30259,11 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -32902,7 +30277,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -32910,7 +30285,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -32925,7 +30300,7 @@ "Relation Name": "dcim_device", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -32939,30 +30314,95 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(module_id = ?)", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 11.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32971,13 +30411,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.15, + "Total Cost": 19.57, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -32989,7 +30429,7 @@ "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -32997,10 +30437,10 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 11.16, + "Startup Cost": 19.58, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.21, + "Total Cost": 19.63, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33008,20 +30448,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.02, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -33030,69 +30470,162 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "7c8da4e9fc03a3c9e01a4436665fbff56cbc91496ae3c1765350db8ec7778c76", - "indexes": [], + "calls": 1, + "fingerprint": "6e21cafae719a7e99161e90641f576fa6fde81b51c50aa85b10f5e2e3b90d1f5", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_powerport_unique_device_name" + ], "node_types": { - "Limit": 2, - "Seq Scan": 2 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, + "Plan Rows": 2, + "Plan Width": 1027, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Plan Width": 1027, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_powerport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33100,112 +30633,109 @@ }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.1, + "planner_rows": 4, + "planner_total_cost": 0.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, + "shared_hit_blocks": 0, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1611, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 20 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", + "calls": 4, + "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", "indexes": [], "node_types": { - "Function Scan": 1, - "ModifyTable": 1 + "Limit": 4, + "Result": 4 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "unnest", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Function Scan", + "Node Type": "Result", + "One-Time Filter": "false", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 566, + "Plan Rows": 0, + "Plan Width": 4, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.1, + "Total Cost": 0.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 20, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.1, + "Total Cost": 0.0, "WAL Buffers Full": 0, - "WAL Bytes": 1611, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 20 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" + "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 5.0, + "planner_rows": 2, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -33214,14 +30744,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", - "indexes": [], + "calls": 2, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 5, - "Seq Scan": 5 + "Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -33235,34 +30767,37 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33270,13 +30805,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33284,7 +30819,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { @@ -33297,7 +30832,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -33307,10 +30842,10 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "870f15a8572e4c2ebbfaf4fa1c52019f9318818f7ccc7566b430f62a7f3a7821", + "fingerprint": "7b58f7cce0901a46775ec1fe9d696487007c28f8cdc46c562e47b2df70171156", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_poweroutlet_unique_device_name" + "dcim_coolingintake_device_id_df1c3674", + "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, @@ -33318,7 +30853,7 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -33342,7 +30877,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1291, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, @@ -33359,7 +30894,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1291, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, @@ -33367,7 +30902,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -33384,7 +30919,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -33399,12 +30934,12 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", + "Alias": "dcim_coolingintake", "Async Capable": false, "Disabled": false, "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Name": "dcim_coolingintake_device_id_df1c3674", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -33414,8 +30949,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -33434,7 +30969,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -33451,12 +30986,12 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" + "dcim_coolingintake.name COLLATE natural_sort" ], "Startup Cost": 16.32, "Temp Read Blocks": 0, @@ -33469,41 +31004,41 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 0.04, + "planner_rows": 0, + "planner_total_cost": 0.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 88, + "shared_hit_blocks": 20, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 5988, + "wal_bytes": 1611, "wal_fpi": 0, - "wal_records": 84 + "wal_records": 20 }, - "calls": 4, - "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", + "calls": 1, + "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", "indexes": [], "node_types": { - "ModifyTable": 4, - "Result": 4 + "Function Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -33513,67 +31048,68 @@ "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, + "Alias": "unnest", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Function Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, + "Plan Rows": 5, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 0.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, + "Shared Hit Blocks": 20, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 0.1, "WAL Buffers Full": 0, - "WAL Bytes": 1497, + "WAL Bytes": 1611, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 20 }, "Triggers": [] }, - "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" + "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 39, + "actual_rows_times_loops": 39, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.42, + "planner_rows": 39, + "planner_total_cost": 535.4700000000003, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 195, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -33582,40 +31118,39 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "8a9e3d17e234d4b785ce0a053ac931621326ebd45661582df0d869552e6ae425", + "calls": 39, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", "indexes": [ - "dcim_frontporttemplate_unique_module_type_name" + "core_objecttype_pkey" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 + "Index Scan": 39, + "Limit": 39, + "Nested Loop": 39, + "Seq Scan": 39 }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -33625,188 +31160,442 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 5.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 27.42, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "82e0a6fc215283f80df7a2efe086c3c72b1b7808043fe14c3e6c33f92213c42e", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, @@ -33815,7 +31604,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.21, + "Total Cost": 22.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33859,7 +31648,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.23, + "Total Cost": 24.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33903,7 +31692,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.39, + "Total Cost": 25.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33947,7 +31736,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 27.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33964,15 +31753,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 27.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 27.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -33980,7 +31769,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" }, { "aggregate": { @@ -33991,9 +31780,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.0, + "planner_total_cost": 27.42, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -34003,13 +31792,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8dfba5ff85da1d046fd21c2f7d60f6cb76c3f4a88939df96e1b00796d2ed8cb1", - "indexes": [], + "fingerprint": "84b321ec2aec129bf70535d0272741dbdf12f5741d0f848beaf948079bc1b787", + "indexes": [ + "dcim_poweroutlettemplate_unique_module_type_name" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -34020,98 +31813,513 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 1312, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 18.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "93c2335339c1e48bec03adbe1da7c53f8c131c8d9ce2b2e5fcb4b1ff8c4cb956", - "indexes": [], - "node_types": { - "Limit": 6, - "Seq Scan": 6 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1304, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1094, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1086, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1058, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlettemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_poweroutlettemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 27.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.42, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 0.04, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 88, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 5988, + "wal_fpi": 0, + "wal_records": 84 + }, + "calls": 4, + "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Result": 4 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 22, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1497, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8dfba5ff85da1d046fd21c2f7d60f6cb76c3f4a88939df96e1b00796d2ed8cb1", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, @@ -34123,7 +32331,7 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -34134,7 +32342,7 @@ "Plan Rows": 1, "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, @@ -34164,20 +32372,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 11.21, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -34187,21 +32395,22 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "966353c27fa3f96107e557417f5b5dcf71c87204555905f41320e8f7c4f75426", + "fingerprint": "8e2d5cf4e67e550b77e5341090db3969f2d06360b222e2c45a9746e26dfea451", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -34221,15 +32430,14 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -34239,7 +32447,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -34247,7 +32455,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -34260,9 +32469,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -34276,45 +32486,49 @@ }, { "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.15, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -34322,22 +32536,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_frontport.name COLLATE natural_sort" ], - "Startup Cost": 11.16, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.21, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -34345,7 +32557,99 @@ }, "Triggers": [] }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + }, + { + "aggregate": { + "actual_loops": 6, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 18.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 6, + "fingerprint": "93c2335339c1e48bec03adbe1da7c53f8c131c8d9ce2b2e5fcb4b1ff8c4cb956", + "indexes": [], + "node_types": { + "Limit": 6, + "Seq Scan": 6 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { @@ -34356,7 +32660,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_total_cost": 19.63, "shared_dirtied_blocks": 0, "shared_hit_blocks": 5, "shared_read_blocks": 0, @@ -34368,18 +32672,19 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9942b707c2a05a6df5a76631f46c7af2b3690999925814bcdb93bb5469400eeb", + "fingerprint": "96c8c2d3d128b289b6c85313a9757551d11e7fc8d4855cf1575bcec6be7c6272", "indexes": [ - "dcim_consoleserverport_unique_device_name", + "dcim_cable_pkey", "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 2, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -34403,7 +32708,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1023, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -34411,6 +32716,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -34420,7 +32726,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1023, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -34428,8 +32734,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -34442,10 +32747,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -34460,40 +32764,101 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 11.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, @@ -34501,7 +32866,7 @@ "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 19.57, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -34509,7 +32874,8 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, @@ -34517,12 +32883,13 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 19.58, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 19.63, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -34530,7 +32897,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { @@ -34640,9 +33007,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 11.21, + "planner_total_cost": 19.63, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -34652,17 +33019,19 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a255df86789a547559776ff2af6bc0cb9dd8e57a5270de5a79889742db72f183", + "fingerprint": "9d0cdfd2bc86d1c8848110a5c037f61cc7428f16c65f571ea67f7c6d7f02abe6", "indexes": [ + "dcim_cable_pkey", "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Nested Loop": 1, + "Index Scan": 1, + "Nested Loop": 2, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -34686,7 +33055,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -34694,6 +33063,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -34703,7 +33073,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -34711,8 +33081,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -34725,10 +33094,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -34743,43 +33111,109 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 11.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.15, + "Total Cost": 19.57, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -34787,20 +33221,22 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 11.16, + "Startup Cost": 19.58, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.21, + "Total Cost": 19.63, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -34808,7 +33244,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { @@ -34819,100 +33255,171 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_total_cost": 8.05, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 23, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1471, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 21 + "wal_records": 0 }, "calls": 1, - "fingerprint": "a426945f30de8d044efc3ea0c795780470bc8b33120daed282301d3ae5dd301f", + "fingerprint": "9da25d10e485f754182d4d823e58e9abd7229cb2a6eb6e0d82e66c2611190efa", "indexes": [], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Nested Loop": 1, + "Seq Scan": 2, + "Sort": 1 }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2017, + "Plan Width": 156, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2017, + "Plan Width": 156, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 136, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.03, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.04, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.05, "WAL Buffers Full": 0, - "WAL Bytes": 1471, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, + "planner_rows": 2, + "planner_total_cost": 11.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -34922,75 +33429,336 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "fingerprint": "9ebd9794b234ab73b148dc56ae1844e77a674ffc1770e3d5bf7958411bc0edcb", "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" + "dcim_device_name_c27913_idx" ], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 2, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ANY ('?'::bigint[]))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 11.16, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 11.21, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a405fbeb517a3da4b6dc2f894a76c111af8d63c5ba8cc50b6bab690eb604bbc3", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 11.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 11.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 11.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -34998,7 +33766,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" }, { "aggregate": { @@ -35200,9 +33968,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 19.63, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -35212,19 +33980,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a73506699a702b61647f49d1e71b6bbbcc78315a87dbe72a000bf7e8330e688b", + "fingerprint": "ad4280832ec72d05833891853180966290f12b31f06a17569189ead7a0148361", "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_poweroutlet_unique_device_name" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 1 + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -35248,7 +34015,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 3531, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, @@ -35256,7 +34023,6 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -35266,7 +34032,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3531, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, @@ -35274,7 +34040,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -35287,9 +34054,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -35304,109 +34072,48 @@ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.42, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.57, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -35414,22 +34121,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_poweroutlet.name COLLATE natural_sort" ], - "Startup Cost": 19.58, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.63, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -35437,7 +34142,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" }, { "aggregate": { @@ -35447,10 +34152,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 1, + "planner_total_cost": 3.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -35460,159 +34165,68 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a8b516f999ebee5826a066db69fa8df13327e64a670cba85d400f2e2b9698de8", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], + "fingerprint": "b09e5df3bd10998267d74d1dfadecc0a4de79cb3567985c48c4cd935416e22bc", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -35620,20 +34234,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" }, { "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 397.3, + "planner_rows": 4, + "planner_total_cost": 12.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -35642,321 +34256,55 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 10, - "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], + "calls": 4, + "fingerprint": "b2ee713465b16c3bc2572a3ab8901e977e853ff49fadf7cea81641ca3d63af2b", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 + "Limit": 4, + "Seq Scan": 4 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -35964,21 +34312,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -35986,7 +34326,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { @@ -35997,9 +34337,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.28, + "planner_total_cost": 14.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 14, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -36009,15 +34349,13 @@ "wal_records": 0 }, "calls": 2, - "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "fingerprint": "b50c46b8171f2be4fa5df34189366b161e8a8597d2dcc707eb9ccf87aa5872c8", + "indexes": [], "node_types": { - "Index Scan": 2, - "Limit": 2 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -36031,37 +34369,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36069,13 +34404,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36083,7 +34418,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { @@ -36096,7 +34431,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -36106,9 +34441,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "acae54e9a8724a8e4a2798a9307fc965ce0c1c02277b027e97ab5c16155573ad", + "fingerprint": "b8e7839f7b1c9604f0585df890907b8de7f20162db6f4477c70c135174765c1f", "indexes": [ - "dcim_coolingintake_device_id_df1c3674", + "dcim_coolingoutflow_device_id_74dd615f", "dcim_device_name_c27913_idx" ], "node_types": { @@ -36117,7 +34452,7 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -36141,7 +34476,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1264, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, @@ -36158,7 +34493,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1264, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, @@ -36166,7 +34501,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -36183,7 +34518,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -36198,12 +34533,12 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", + "Alias": "dcim_coolingoutflow", "Async Capable": false, "Disabled": false, "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -36213,8 +34548,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -36233,7 +34568,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -36250,12 +34585,12 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" + "dcim_coolingoutflow.name COLLATE natural_sort" ], "Startup Cost": 16.32, "Temp Read Blocks": 0, @@ -36268,18 +34603,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.0, + "planner_total_cost": 3.01, "shared_dirtied_blocks": 0, "shared_hit_blocks": 3, "shared_read_blocks": 0, @@ -36291,27 +34626,28 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b09e5df3bd10998267d74d1dfadecc0a4de79cb3567985c48c4cd935416e22bc", + "fingerprint": "bb65489f214364bd7a4711bf0ed584c001fb40342825c060369896bb95d3cc3d", "indexes": [], "node_types": { - "Limit": 1, + "Aggregate": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 2, "Plans": [ { "Actual Loops": 1, @@ -36319,7 +34655,7 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Filter": "((channel_id > ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -36328,7 +34664,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 2, "Relation Name": "dcim_interface", "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, @@ -36349,10 +34685,11 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 3.0, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36360,7 +34697,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" }, { "aggregate": { @@ -36371,9 +34708,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 19.63, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -36383,19 +34720,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b0be09a501d7dd38996dbc406480ce64cbbe83c0066b5a1fd62f861856f0fad5", + "fingerprint": "bce1a17ce482c9e652ee4c397104e74fb46fd559c41744e4ed469c16639cc2bf", "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 1 + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -36419,7 +34755,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 3531, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -36427,7 +34763,6 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -36437,7 +34772,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3531, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -36445,7 +34780,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -36458,9 +34794,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -36475,109 +34812,48 @@ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.42, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.57, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36585,22 +34861,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_rearport.name COLLATE natural_sort" ], - "Startup Cost": 19.58, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.63, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36608,20 +34882,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 12.0, + "planner_rows": 2, + "planner_total_cost": 4.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -36630,14 +34904,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "b2ee713465b16c3bc2572a3ab8901e977e853ff49fadf7cea81641ca3d63af2b", + "calls": 2, + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", "indexes": [], "node_types": { - "Limit": 4, - "Seq Scan": 4 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -36651,12 +34925,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -36668,17 +34942,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", + "Plan Width": 137, + "Relation Name": "dcim_site", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36686,13 +34960,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36700,20 +34974,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_rows": 0, + "planner_total_cost": 1.24, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -36723,36 +34997,37 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "bb65489f214364bd7a4711bf0ed584c001fb40342825c060369896bb95d3cc3d", + "fingerprint": "bfeafd0f838b1b475a1e000531fa5b472e1be0e64dedbed0d94269c5db6101c6", "indexes": [], "node_types": { - "Aggregate": 1, + "ModifyTable": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 2, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id > ?) AND (parent_id = ?))", + "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -36761,32 +35036,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.0, + "Total Cost": 1.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 3.0, - "Strategy": "Plain", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 1.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36794,91 +35069,198 @@ }, "Triggers": [] }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 5, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 4.02, + "planner_rows": 0, + "planner_total_cost": 40.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 25, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 395, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 5 }, - "calls": 2, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", - "indexes": [], + "calls": 5, + "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 2, - "Seq Scan": 2 + "Index Scan": 5, + "ModifyTable": 5 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -36886,7 +35268,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, { "aggregate": { @@ -36897,30 +35279,30 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 1.24, + "planner_total_cost": 3.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 27, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1494, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "bfeafd0f838b1b475a1e000531fa5b472e1be0e64dedbed0d94269c5db6101c6", + "fingerprint": "cde23e1325f70f12f608a6bd764a77c3c11a7abea86c4d0a2255fe5cfb33dac8", "indexes": [], "node_types": { "ModifyTable": 1, "Seq Scan": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -36928,18 +35310,18 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Delete", + "Operation": "Update", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -36948,53 +35330,53 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", + "Plan Width": 2003, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.24, + "Total Cost": 3.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 27, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.24, + "Total Cost": 3.0, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1494, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.42, + "planner_rows": 2, + "planner_total_cost": 42.56, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 42, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -37003,22 +35385,19 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "cbb9a10b4593e9d42704eb4a0cd702640b92d73e3bf4723327225bdfcad5f0ab", - "indexes": [ - "dcim_poweroutlettemplate_unique_module_type_name" - ], + "calls": 2, + "fingerprint": "d0e09728c1c20970ee9958916f131a6450180933a77736a1a68bb0ab47bf5c41", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 + "Nested Loop": 10, + "Seq Scan": 12, + "Sort": 2 }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -37028,11 +35407,11 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1312, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, @@ -37046,11 +35425,11 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1312, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, @@ -37064,11 +35443,11 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1304, + "Plan Width": 727, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, @@ -37082,15 +35461,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1094, + "Plan Width": 517, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -37100,11 +35479,11 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1086, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -37117,45 +35496,42 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1058, + "Plan Width": 481, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, @@ -37172,13 +35548,13 @@ "Relation Name": "dcim_moduletype", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -37186,21 +35562,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.18, + "Total Cost": 9.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, @@ -37215,36 +35591,36 @@ "Plan Width": 36, "Relation Name": "dcim_devicetype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.21, + "Total Cost": 16.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, @@ -37259,7 +35635,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -37272,23 +35648,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.23, + "Total Cost": 18.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 7.0, "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, @@ -37303,7 +35679,7 @@ "Plan Width": 226, "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -37316,24 +35692,24 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.39, + "Total Cost": 19.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -37347,7 +35723,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -37362,13 +35738,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 21, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 21.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -37376,7 +35752,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 21, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -37385,15 +35761,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 21.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 21.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -37401,7 +35777,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { @@ -37411,50 +35787,48 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, + "planner_rows": 1, "planner_total_cost": 3.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1494, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 21 + "wal_records": 0 }, "calls": 1, - "fingerprint": "cde23e1325f70f12f608a6bd764a77c3c11a7abea86c4d0a2255fe5cfb33dac8", + "fingerprint": "d4380a2085cf4e34dd7d90960a8c93d24ff15095904e768bdfa4427ca990f5e3", "indexes": [], "node_types": { - "ModifyTable": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -37463,9 +35837,9 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, + "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, @@ -37480,9 +35854,8 @@ "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 27, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -37490,298 +35863,13 @@ "Temp Written Blocks": 0, "Total Cost": 3.0, "WAL Buffers Full": 0, - "WAL Bytes": 1494, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 40.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 395, - "wal_fpi": 0, - "wal_records": 5 - }, - "calls": 5, - "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 5, - "ModifyTable": 5 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d0a6a41bca6dc869a69abf9ef35e3d28370fd236bd0b8856ba8d84f5f5717c40", - "indexes": [ - "dcim_consoleport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" }, { "aggregate": { @@ -37804,13 +35892,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d4380a2085cf4e34dd7d90960a8c93d24ff15095904e768bdfa4427ca990f5e3", + "fingerprint": "de9c48311a995ce95271677eae423daf49ced1a97d8b0bc6a7cb4f25b898a54d", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -37832,7 +35920,7 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -37873,20 +35961,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 46.54, + "planner_rows": 1, + "planner_total_cost": 11.11, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 46, + "shared_hit_blocks": 11, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -37895,15 +35983,15 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "d6e52a432a0edde85da39f2fdb5616d196381e74e1d1ecaf9b349b0b9e266d6a", + "calls": 1, + "fingerprint": "e10d34d7eb8b531004b5ec8758433f429c42cd04ffee4915a6a8c1368284b41b", "indexes": [], "node_types": { - "Nested Loop": 10, - "Seq Scan": 12, - "Sort": 2 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -37914,10 +36002,10 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 735, + "Plan Width": 3200, "Plans": [ { "Actual Loops": 1, @@ -37925,8 +36013,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -37935,7 +36023,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 735, + "Plan Width": 3200, "Plans": [ { "Actual Loops": 1, @@ -37943,7 +36031,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -37953,7 +36041,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 727, + "Plan Width": 3069, "Plans": [ { "Actual Loops": 1, @@ -37961,7 +36049,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -37971,7 +36059,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 517, + "Plan Width": 2938, "Plans": [ { "Actual Loops": 1, @@ -37979,7 +36067,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -37989,15 +36077,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, + "Plan Width": 2046, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -38006,34 +36095,96 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 481, + "Plan Width": 1915, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 3.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38042,10 +36193,9 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Alias": "T3", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -38054,31 +36204,31 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Plan Width": 892, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.03, + "Total Cost": 4.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38087,7 +36237,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Alias": "T4", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38098,16 +36248,16 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38116,13 +36266,13 @@ ], "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.06, + "Total Cost": 6.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38131,7 +36281,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", + "Alias": "T5", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38142,16 +36292,16 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 892, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 1.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38160,13 +36310,13 @@ ], "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 20, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.08, + "Total Cost": 7.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38174,8 +36324,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38185,32 +36335,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.24, + "Total Cost": 9.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38219,7 +36369,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "T6", + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38230,8 +36380,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -38246,15 +36396,15 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, + "Shared Hit Blocks": 11, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.26, + "Total Cost": 11.11, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38262,24 +36412,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, + "Shared Hit Blocks": 11, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 23.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.27, + "Total Cost": 11.11, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38287,20 +36426,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.7, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -38309,75 +36448,162 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", + "calls": 1, + "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", "indexes": [ + "dcim_consoleport_unique_device_name", "dcim_device_name_c27913_idx" ], "node_types": { - "Index Only Scan": 5, - "Limit": 5 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38385,7 +36611,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" }, { "aggregate": { @@ -38396,9 +36622,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.0, + "planner_total_cost": 20.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -38408,13 +36634,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "de9c48311a995ce95271677eae423daf49ced1a97d8b0bc6a7cb4f25b898a54d", + "fingerprint": "e7e9d75ef5697e8e18ce038e6060bc712624c69c266651f3f530e90c6d580fd1", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Nested Loop": 5, + "Seq Scan": 6, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -38425,112 +36652,19 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 341, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.11, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e10d34d7eb8b531004b5ec8758433f429c42cd04ffee4915a6a8c1368284b41b", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -38539,15 +36673,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3200, + "Plan Width": 341, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -38557,15 +36691,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3069, + "Plan Width": 333, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -38575,15 +36709,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2938, + "Plan Width": 123, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -38593,16 +36727,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2046, + "Plan Width": 115, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -38611,107 +36744,46 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1915, + "Plan Width": 87, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_modulebaytemplate", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.02, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -38720,40 +36792,40 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.04, + "Total Cost": 8.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38764,40 +36836,40 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 36, + "Relation Name": "dcim_devicetype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.06, + "Total Cost": 15.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38808,40 +36880,40 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.0, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.07, + "Total Cost": 17.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38851,41 +36923,41 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.09, + "Total Cost": 18.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -38896,10 +36968,10 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -38912,15 +36984,15 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.11, + "Total Cost": 20.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38928,13 +37000,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_modulebaytemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 20.27, + "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.11, + "Total Cost": 20.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -38942,7 +37025,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" }, { "aggregate": { @@ -39037,16 +37120,16 @@ }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 5, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 5, + "planner_total_cost": 40.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -39055,162 +37138,75 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "eaf4dfa413b0a0454816c86c42dd7383e364e3e96e734f349b3efb1ad5420b26", + "calls": 5, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" + "dcim_device_name_c27913_idx" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Index Only Scan": 5, + "Limit": 5 }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39218,7 +37214,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { @@ -39229,7 +37225,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 29.42, + "planner_total_cost": 27.42, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -39241,9 +37237,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "eb74ce038ebe19caf98c892dc75932a202d86522bcbd797e086e46287f61cd78", + "fingerprint": "eb1c27e823fa362c67549d8ba81e459e2ba7726002ddd4b73b8319b542345bb9", "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name" + "dcim_consoleporttemplate_unique_module_type_name" ], "node_types": { "Index Scan": 1, @@ -39251,7 +37247,7 @@ "Seq Scan": 5, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -39327,7 +37323,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -39359,11 +37355,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", + "Alias": "dcim_consoleporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -39374,7 +37370,7 @@ "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", + "Relation Name": "dcim_consoleporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -39415,7 +37411,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39429,7 +37425,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.18, + "Total Cost": 15.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39458,7 +37454,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39473,7 +37469,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.21, + "Total Cost": 22.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39517,7 +37513,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.23, + "Total Cost": 24.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39561,7 +37557,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.39, + "Total Cost": 25.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39605,7 +37601,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.41, + "Total Cost": 27.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39622,15 +37618,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" + "dcim_consoleporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.42, + "Startup Cost": 27.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.42, + "Total Cost": 27.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39638,20 +37634,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 10, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, + "planner_rows": 80, + "planner_total_cost": 405.29999999999995, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -39660,55 +37656,321 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", - "indexes": [], + "calls": 10, + "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39716,13 +37978,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -39730,523 +38000,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 16, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 39, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 39 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 2 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 164, - "actual_rows_per_work_unit": 17.8, - "actual_rows_times_loops": 89, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 164, - "planner_rows": 366, - "planner_total_cost": 2404.0199999999995, - "planner_total_cost_per_work_unit": 480.8039999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 849, - "shared_hit_blocks_per_work_unit": 169.8, - "shared_read_blocks": 12, - "shared_written_blocks": 0, - "statement_calls": 172, - "statement_calls_per_work_unit": 34.4, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 11613, - "wal_fpi": 0, - "wal_records": 160, - "work_units": 5 - } - }, - "description": "Four-channel structural creation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 270.402238, - "p95_ms": 278.6248663, - "samples_ns": [ - 275226669, - 275482462, - 272102138, - 264080830, - 269762733, - 277265155, - 270402238, - 266712659, - 281797526, - 266829829, - 276611211, - 265763275, - 267205385, - 275804686, - 265841089 - ] - }, - "wall": { - "median_ms": 372.509497, - "p95_ms": 391.9926933, - "samples_ns": [ - 379509726, - 377376186, - 372509497, - 362330943, - 372844629, - 382825528, - 371005862, - 368780512, - 391660428, - 365714782, - 374612508, - 366267268, - 367796742, - 392767979, - 363195803 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 267.421506, - "p95_ms": 268.7223336, - "samples_ns": [ - 268866870, - 267421506, - 257200195 - ] + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" }, - "wall": { - "median_ms": 367.896083, - "p95_ms": 371.6355074, - "samples_ns": [ - 372050999, - 367896083, - 354895839 - ] - } - } - }, - "name": "module.complete_model_save.structural_creation", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "xe-0/0/3:0", - "xe-0/0/3:1", - "xe-0/0/3:2", - "xe-0/0/3:3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 11.12, + "planner_total_cost": 27.42, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -40256,35 +38023,39 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], + "fingerprint": "ed97567899a0ca1a9118bd24811aa559f81708cb4e4d48a09f3e44ac5ff90c0d", + "indexes": [ + "dcim_consoleserverporttemplate_unique_module_type_name" + ], "node_types": { - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 2 + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -40294,47 +38065,297 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.2, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.38, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, @@ -40342,124 +38363,31 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.06, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 27.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -40470,103 +38398,21 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 2.02, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 30.119999999999997, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "167e3754be964932c89c5efd8cf19d9caca6affea559681d9fdff895ecbf2bce", - "indexes": [], - "node_types": { - "Limit": 6, - "Seq Scan": 6 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleserverporttemplate.name COLLATE natural_sort" ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 27.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.02, + "Total Cost": 27.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -40574,20 +38420,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 10.18, + "planner_total_cost": 21.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -40597,21 +38443,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "200b2b14a1fc7f832a2ee1d0fc3bcfda93db384e6cdebc2cef110a475d921469", - "indexes": [ - "dcim_moduletype_pkey" - ], + "fingerprint": "f2450888f21218a73ba6d2c13119b662a7a3ee892ae094b0f0250c831a35e6fc", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, + "Nested Loop": 5, + "Seq Scan": 6, "Sort": 1 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -40621,16 +38464,16 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 156, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -40639,26 +38482,274 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 156, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 136, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, + "Plan Width": 727, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 517, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 481, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -40666,39 +38757,36 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 19.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T7", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -40707,13 +38795,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.16, + "Total Cost": 21.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -40721,20 +38809,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 10.17, + "Startup Cost": 21.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.18, + "Total Cost": 21.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -40742,20 +38834,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 95.96, + "planner_rows": 1, + "planner_total_cost": 27.42, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -40764,52 +38856,40 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "2409738863295e05242c5072edaf0f94166ffd597832df23439c6908461d6023", + "calls": 1, + "fingerprint": "f3a21e1bfd471f4ad1665eeeca2a373c9bfa56b8c9c9c18144d0156223c0ff8e", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_powerporttemplate_unique_module_type_name" ], "node_types": { - "Hash": 4, - "Hash Join": 4, - "Incremental Sort": 4, - "Index Only Scan": 4, - "Nested Loop": 4, - "Seq Scan": 8 + "Index Scan": 1, + "Nested Loop": 5, + "Seq Scan": 5, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2512, + "Plan Rows": 1, + "Plan Width": 1166, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -40819,419 +38899,65 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2512, + "Plan Width": 1166, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2266, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_cable", "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.6, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 986, + "Plan Width": 948, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Inner Unique": true, + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.01, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 23.95, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.99, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 10.049999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 23.53, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2ccbe643c8d936834cb011e9f76a572ea803c9619eca5f9383a18d6e11e6b85b", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, + "Plan Width": 940, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -41244,16 +38970,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 481, + "Plan Width": 912, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -41263,30 +38989,30 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -41295,17 +39021,17 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", + "Plan Width": 44, + "Relation Name": "dcim_moduletype", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41313,68 +39039,65 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.16, + "Total Cost": 15.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, "Plan Width": 36, "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 7.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.32, + "Total Cost": 22.2, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, @@ -41389,7 +39112,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -41402,23 +39125,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.34, + "Total Cost": 24.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 7.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, @@ -41433,7 +39156,7 @@ "Plan Width": 226, "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -41446,23 +39169,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.5, + "Total Cost": 25.38, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Alias": "T6", "Async Capable": false, "Disabled": false, @@ -41477,7 +39200,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -41492,13 +39215,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.52, + "Total Cost": 27.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41506,7 +39229,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -41515,15 +39238,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_powerporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 23.53, + "Startup Cost": 27.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.53, + "Total Cost": 27.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41531,7 +39254,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" }, { "aggregate": { @@ -41542,7 +39265,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -41554,15 +39277,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", + "indexes": [], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -41576,37 +39297,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41617,10 +39335,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41628,227 +39346,630 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { - "actual_loops": 26, - "actual_rows_times_loops": 26, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 26, - "planner_total_cost": 300.8199999999999, + "planner_rows": 1, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 182, - "shared_read_blocks": 0, + "shared_hit_blocks": 22, + "shared_read_blocks": 1, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1471, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, - "calls": 26, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", + "calls": 1, + "fingerprint": "fec67d19a4a85245415ecfd36990a683f35ae4d60827b6f49f2d79b1b25b664e", "indexes": [], "node_types": { - "Hash": 26, - "Hash Join": 26, - "Limit": 26, - "Seq Scan": 52 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 2017, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", - "Inner Unique": true, - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 2017, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 22, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1471, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 }, { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, + "calls": 2, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 16, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 39, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 39 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 2 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 164, + "actual_rows_per_work_unit": 17.8, + "actual_rows_times_loops": 89, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 164, + "planner_rows": 366, + "planner_total_cost": 2478.2200000000007, + "planner_total_cost_per_work_unit": 495.6440000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 752, + "shared_hit_blocks_per_work_unit": 150.4, + "shared_read_blocks": 13, + "shared_written_blocks": 0, + "statement_calls": 172, + "statement_calls_per_work_unit": 34.4, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 11613, + "wal_fpi": 0, + "wal_records": 160, + "work_units": 5 + } + }, + "description": "Four-channel structural creation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 263.613881, + "p95_ms": 280.0746138, + "samples_ns": [ + 256302308, + 276877641, + 287534217, + 252445942, + 275835356, + 269207091, + 263872492, + 265174855, + 263613881, + 260711984, + 260948970, + 267384569, + 254485306, + 251733226, + 246301311 + ] + }, + "wall": { + "median_ms": 356.120492, + "p95_ms": 375.3795374, + "samples_ns": [ + 348408001, + 370661801, + 381407026, + 343123475, + 372796328, + 365884356, + 360072377, + 368848097, + 356199773, + 355638846, + 353767837, + 356120492, + 341223775, + 341062943, + 328977375 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 283.334405, + "p95_ms": 294.8187146, + "samples_ns": [ + 269418786, + 283334405, + 296094749 + ] + }, + "wall": { + "median_ms": 380.544973, + "p95_ms": 401.1466426, + "samples_ns": [ + 365582647, + 380544973, + 403435717 + ] + } + } + }, + "name": "module.complete_model_save.structural_creation", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "xe-0/0/3:0", + "xe-0/0/3:1", + "xe-0/0/3:2", + "xe-0/0/3:3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.02, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], + "calls": 1, + "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", + "indexes": [], "node_types": { - "Index Scan": 2, - "Limit": 2 + "Aggregate": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, @@ -41859,40 +39980,38 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 595, + "Plan Width": 8, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 0, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41903,10 +40022,11 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 2.02, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41914,7 +40034,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" }, { "aggregate": { @@ -41924,10 +40044,283 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.19, - "shared_dirtied_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 23.99, + "shared_dirtied_blocks": 1, "shared_hit_blocks": 2, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 4105, + "wal_fpi": 1, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "0879dee678d7ae6af6aa8302619aac5db2ff625795af2f440abde1f3a3b6abf2", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Hash": 1, + "Hash Join": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 2 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 2512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2266, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.6, + "WAL Buffers Full": 0, + "WAL Bytes": 4105, + "WAL FPI": 1, + "WAL Records": 1 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.01, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 5.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.78, + "WAL Buffers Full": 0, + "WAL Bytes": 4105, + "WAL FPI": 1, + "WAL Records": 1 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 5.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.94, + "WAL Buffers Full": 0, + "WAL Bytes": 4105, + "WAL FPI": 1, + "WAL Records": 1 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 23.95, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 23.99, + "WAL Buffers Full": 0, + "WAL Bytes": 4105, + "WAL FPI": 1, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + }, + { + "aggregate": { + "actual_loops": 6, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 6, + "planner_total_cost": 30.119999999999997, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -41936,16 +40329,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], + "calls": 6, + "fingerprint": "167e3754be964932c89c5efd8cf19d9caca6affea559681d9fdff895ecbf2bce", + "indexes": [], "node_types": { - "Index Scan": 1, - "Sort": 1 + "Limit": 6, + "Seq Scan": 6 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -41956,40 +40347,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 16, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_subscription", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 5.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -41997,20 +40385,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 5.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -42018,20 +40399,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 5, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.03, + "planner_rows": 5, + "planner_total_cost": 10.049999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -42040,14 +40421,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "55b32ff4bf74c62c5599c638babb7dbb30db884c304adc8c0cc2a24eacf53136", + "calls": 5, + "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", "indexes": [], "node_types": { - "Aggregate": 1, - "Seq Scan": 1 + "Limit": 5, + "Seq Scan": 5 }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -42058,19 +40439,18 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 2, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id > ?) AND (parent_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -42079,17 +40459,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -42097,14 +40477,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 5.02, - "Strategy": "Plain", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.03, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -42112,7 +40491,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { @@ -42123,9 +40502,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 14.15, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -42135,14 +40514,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "5cb23fe2a5e58eb2396605c5bd1bc3d50be9a918e1a6a8a0cb0869b6bf70df1b", - "indexes": [], + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -42156,406 +40536,37 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.15, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -42563,13 +40574,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.15, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -42577,18 +40588,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 2.01, + "planner_total_cost": 8.19, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -42600,54 +40611,59 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", - "indexes": [], + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Actual Rows": 0.0, + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -42658,10 +40674,17 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -42669,98 +40692,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 23, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1497, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "6713909a026c080d690ba09da361f39be222c78cc25e2338cefa7b5114511c78", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1497, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { @@ -42771,9 +40703,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 120, - "planner_total_cost": 595.95, + "planner_total_cost": 607.9499999999998, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -42783,7 +40715,7 @@ "wal_records": 0 }, "calls": 15, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ "django_content_type_pkey", "extras_customfield_content_types_contenttype_id_2997ba90", @@ -42884,7 +40816,7 @@ "Plan Width": 1976, "Relation Name": "extras_customfield", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -42992,7 +40924,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 14.47, @@ -43032,7 +40964,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43040,13 +40972,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43088,13 +41020,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43102,7 +41034,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -43113,10 +41045,10 @@ "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43129,15 +41061,15 @@ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.31, + "planner_rows": 2, + "planner_total_cost": 13.22, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -43147,106 +41079,157 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6c897b050a515671da1a7440af1415036a969264e619f20de6d07dd67b86764d", - "indexes": [], + "fingerprint": "4fb08bb8df37a924d812282b6a87e75b3e956321d14dd71946b43da5d468a1af", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, + "Plan Rows": 2, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 113, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 113, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ANY ('?'::bigint[]))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.02, + "Total Cost": 13.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 2.3, - "Strategy": "Plain", + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 13.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.31, + "Total Cost": 13.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43254,20 +41237,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 0.0, + "planner_rows": 2, + "planner_total_cost": 23.99, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -43276,66 +41259,250 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", - "indexes": [], + "calls": 1, + "fingerprint": "557ece026e1af9b56d8637374dde30962e2812d7259dc4b9363af24759b99ec4", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 4, - "Result": 4 + "Hash": 1, + "Hash Join": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 2 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 2512, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", - "One-Time Filter": "false", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 0, - "Plan Width": 4, + "Plan Rows": 1, + "Plan Width": 2512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2266, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.6, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.01, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 5.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.0, + "Total Cost": 23.94, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 23.95, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.0, + "Total Cost": 23.99, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43343,7 +41510,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { @@ -43354,9 +41521,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 2.01, + "planner_total_cost": 5.03, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -43366,13 +41533,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", + "fingerprint": "55b32ff4bf74c62c5599c638babb7dbb30db884c304adc8c0cc2a24eacf53136", "indexes": [], "node_types": { - "Limit": 1, + "Aggregate": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", "plan": { "Plan": { "Actual Loops": 1, @@ -43383,18 +41550,19 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 189, + "Plan Width": 2, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((channel_id > ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -43403,17 +41571,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43421,13 +41589,14 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 5.02, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 5.03, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43435,20 +41604,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.28, + "planner_total_cost": 13.22, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -43457,74 +41626,158 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "calls": 1, + "fingerprint": "5862df139fd23d57e1c3230c294659f396f8b7a6177e884bcb8fd14549e011b4", "indexes": [ "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 2, - "Limit": 2 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, + "Plan Rows": 2, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1232, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 13.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 13.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 13.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43532,99 +41785,472 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.1, + "planner_rows": 1, + "planner_total_cost": 14.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, + "shared_hit_blocks": 14, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1611, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 20 + "wal_records": 0 }, "calls": 1, - "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", + "fingerprint": "5cb23fe2a5e58eb2396605c5bd1bc3d50be9a918e1a6a8a0cb0869b6bf70df1b", "indexes": [], "node_types": { - "Function Scan": 1, - "ModifyTable": 1 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "unnest", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Function Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 566, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 14, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.1, + "Total Cost": 14.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 20, + "Shared Hit Blocks": 14, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.1, + "Total Cost": 14.15, "WAL Buffers Full": 0, - "WAL Bytes": 1611, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 20 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -43635,9 +42261,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 5.03, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -43647,13 +42273,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8815048e69a3879fd1f377ef605855112fe3d50337d7a3758921ffb7097e936e", + "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", "indexes": [], "node_types": { - "Aggregate": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -43664,19 +42290,18 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 8, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Filter": "(module_id = ?)", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -43685,17 +42310,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interface", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43703,14 +42328,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 5.02, - "Strategy": "Plain", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.03, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43718,203 +42342,272 @@ }, "Triggers": [] }, - "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 5.01, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 23, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1497, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "8826a696bf104d3b6190e57164770b2534873b0f17b03a459df308408d9d8892", + "fingerprint": "6713909a026c080d690ba09da361f39be222c78cc25e2338cefa7b5114511c78", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 2017, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 2017, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 23, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1497, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" }, { "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 3, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 3, - "planner_total_cost": 0.03, + "planner_rows": 1, + "planner_total_cost": 13.23, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 66, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 4491, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 63 + "wal_records": 0 }, - "calls": 3, - "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", - "indexes": [], + "calls": 1, + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "ModifyTable": 3, - "Result": 3 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2017, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2017, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, - "WAL Bytes": 1497, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 5.01, + "planner_total_cost": 2.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -43924,54 +42617,91 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9b78bff13f85174069adaf01a9d759cce5389a90c8b45fa11437ee49b60a585d", + "fingerprint": "6c897b050a515671da1a7440af1415036a969264e619f20de6d07dd67b86764d", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, + "Plan Width": 113, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 113, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43979,13 +42709,14 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 2.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -43993,115 +42724,109 @@ }, "Triggers": [] }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.01, + "planner_rows": 4, + "planner_total_cost": 0.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 29, + "shared_hit_blocks": 0, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1494, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 21 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "9d40b58581dbab1ba414240df2a25e6c786fd5292e0e4525a4a09f688989b2e2", + "calls": 4, + "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", "indexes": [], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Limit": 4, + "Result": 4 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Result", + "One-Time Filter": "false", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Rows": 0, + "Plan Width": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 0.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 29, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 0.0, "WAL Buffers Full": 0, - "WAL Bytes": 1494, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 5.01, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -44111,17 +42836,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a0fbd0603f9ff5f710a7b3adb3afe9e9b3a90c7bd802f3d6f38a267a77f9b97f", + "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -44131,15 +42856,15 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 189, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -44148,17 +42873,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44166,13 +42891,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44180,20 +42905,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, + "planner_rows": 2, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -44202,76 +42927,74 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "calls": 2, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" + "dcim_device_name_c27913_idx" ], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 + "Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 1, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44279,7 +43002,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { @@ -44289,102 +43012,102 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, + "planner_rows": 0, + "planner_total_cost": 0.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 20, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1611, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 20 }, "calls": 1, - "fingerprint": "b248dc89f1ff2b101dccdd5295eefec5e8b75a05e331456bc2364382ab3eed96", + "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Function Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 5.0, + "Alias": "unnest", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Function Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, + "Plan Rows": 5, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 0.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 20, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 0.1, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1611, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 20 }, "Triggers": [] }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" + "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 26, + "actual_rows_times_loops": 26, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, + "planner_rows": 26, + "planner_total_cost": 356.9800000000001, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 130, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -44393,18 +43116,22 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "b812a5fb26ca5d7c63ff4681716d50d144016eb9b505d26aad297b6f6b3e3ad3", - "indexes": [], + "calls": 26, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 26, + "Limit": 26, + "Nested Loop": 26, + "Seq Scan": 26 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -44414,34 +43141,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44452,10 +43244,10 @@ "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44463,20 +43255,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 2.49, + "planner_rows": 1, + "planner_total_cost": 5.03, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -44486,37 +43278,36 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "bed6c13fbd045b41c2637787758f90d2d42ea4620c282c85bce0a2adab38b400", + "fingerprint": "8815048e69a3879fd1f377ef605855112fe3d50337d7a3758921ffb7097e936e", "indexes": [], "node_types": { - "ModifyTable": 1, + "Aggregate": 1, "Seq Scan": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Aggregate", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 8, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", + "Filter": "(module_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -44525,32 +43316,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", + "Plan Width": 0, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.49, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 5.02, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.49, + "Total Cost": 5.03, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44558,20 +43349,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" + "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 4.02, + "planner_rows": 1, + "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -44580,18 +43371,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", + "calls": 1, + "fingerprint": "8826a696bf104d3b6190e57164770b2534873b0f17b03a459df308408d9d8892", "indexes": [], "node_types": { - "Limit": 2, - "Seq Scan": 2 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -44601,15 +43392,15 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 137, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -44618,17 +43409,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44636,13 +43427,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44650,20 +43441,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 5, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 13.22, + "planner_rows": 1, + "planner_total_cost": 10.18, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -44673,50 +43464,40 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "c6c1469a9e3888c03790334f3baab436ef73b646b5c7334fd97de871df04a558", + "fingerprint": "894a10e05c40d9ebe1535c382788e7cfe27a9b52e0f36081bb59448553e68474", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_moduletype_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, + "Index Scan": 1, "Nested Loop": 1, - "Seq Scan": 1 + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1232, + "Plan Rows": 1, + "Plan Width": 156, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -44725,36 +43506,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1232, + "Plan Width": 156, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Width": 136, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44762,30 +43541,31 @@ }, { "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ANY ('?'::bigint[]))", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.02, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44794,36 +43574,34 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.17, + "Total Cost": 10.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" ], - "Startup Cost": 13.18, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 10.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.22, + "Total Cost": 10.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -44831,43 +43609,41 @@ }, "Triggers": [] }, - "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_loops": 3, + "actual_rows_times_loops": 3, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 32.56, + "planner_rows": 3, + "planner_total_cost": 0.03, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, + "shared_hit_blocks": 66, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 316, + "wal_bytes": 4491, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 63 }, - "calls": 4, - "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "calls": 3, + "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", + "indexes": [], "node_types": { - "Index Scan": 4, - "ModifyTable": 4 + "ModifyTable": 3, + "Result": 3 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -44875,63 +43651,56 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Update", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 2017, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 2017, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 22, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 1497, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" }, { "aggregate": { @@ -44954,13 +43723,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d34ed9bc3b276775059bda33d19c77d55c2b5e377f215eb57a8b5dc491fe68ec", + "fingerprint": "9b78bff13f85174069adaf01a9d759cce5389a90c8b45fa11437ee49b60a585d", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -44982,7 +43751,7 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -45023,20 +43792,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 2, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, + "planner_rows": 4, + "planner_total_cost": 47.98, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -45045,69 +43814,250 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "d999dbf8ed72ed08471e7ed451d5740c865d85e4dd6c5d3067cdb67b862e9e9c", - "indexes": [], + "calls": 2, + "fingerprint": "9d2b7dd74d1ee9d7ebe62cf32ff552ee2b829d7c5bb19333222a4693100fdfd6", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Hash": 2, + "Hash Join": 2, + "Incremental Sort": 2, + "Index Only Scan": 2, + "Nested Loop": 2, + "Seq Scan": 4 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 2512, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, + "Plan Width": 2512, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2266, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.6, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 986, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 986, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.01, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 5.03, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 5.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 23.94, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 23.95, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 23.99, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -45115,7 +44065,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { @@ -45125,26 +44075,121 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, + "planner_rows": 0, "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 29, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1494, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "da68ccf0688b8b3b4f7188debe29a3d422cbbc42903e99db5516afbd07af9520", + "fingerprint": "9d40b58581dbab1ba414240df2a25e6c786fd5292e0e4525a4a09f688989b2e2", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 29, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.01, + "WAL Buffers Full": 0, + "WAL Bytes": 1494, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a0fbd0603f9ff5f710a7b3adb3afe9e9b3a90c7bd802f3d6f38a267a77f9b97f", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -45166,7 +44211,7 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -45207,20 +44252,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 20.04, + "planner_rows": 1, + "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -45229,18 +44274,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "e3caeac7d2c46b4bee93087a339a04bd75f571767c82d6b08e746322fac2396f", + "calls": 1, + "fingerprint": "b248dc89f1ff2b101dccdd5295eefec5e8b75a05e331456bc2364382ab3eed96", "indexes": [], "node_types": { - "Limit": 4, - "Seq Scan": 4 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -45254,11 +44299,11 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -45269,7 +44314,7 @@ "Plan Rows": 1, "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, @@ -45299,20 +44344,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 13.22, + "planner_rows": 1, + "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -45322,157 +44367,68 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e683ed305970d9c71a730d103291c9f388665abe680683cb21e5199150366627", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "fingerprint": "b812a5fb26ca5d7c63ff4681716d50d144016eb9b505d26aad297b6f6b3e3ad3", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1232, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.16, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 13.17, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.22, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -45480,20 +44436,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.7, + "planner_rows": 0, + "planner_total_cost": 2.49, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -45502,75 +44458,72 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "calls": 1, + "fingerprint": "bed6c13fbd045b41c2637787758f90d2d42ea4620c282c85bce0a2adab38b400", + "indexes": [], "node_types": { - "Index Only Scan": 5, - "Limit": 5 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -45578,20 +44531,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, + "planner_rows": 2, + "planner_total_cost": 4.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -45600,14 +44553,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", + "calls": 2, + "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Limit": 2, + "Seq Scan": 2 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -45621,7 +44574,7 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, @@ -45638,7 +44591,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 137, "Relation Name": "dcim_site", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, @@ -45670,20 +44623,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 13.22, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -45692,158 +44645,74 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "ffa93b3259b9b5f4cb08237b5a044a58c564ce10f872b5701a7ffc6afb8d50c3", + "calls": 2, + "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_moduletype_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1232, + "Plan Rows": 1, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.16, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 13.17, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.22, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -45851,504 +44720,8 @@ }, "Triggers": [] }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 15, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 4 - }, - { - "calls": 4, - "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 4 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 26, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 26 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 111, - "actual_rows_per_work_unit": 14.4, - "actual_rows_times_loops": 72, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 111, - "planner_rows": 223, - "planner_total_cost": 1360.2599999999995, - "planner_total_cost_per_work_unit": 272.0519999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 555, - "shared_hit_blocks_per_work_unit": 111.0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 119, - "statement_calls_per_work_unit": 23.8, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 9409, - "wal_fpi": 0, - "wal_records": 129, - "work_units": 5 - } - }, - "description": "Four-channel structural creation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 185.68411, - "p95_ms": 203.9185975, - "samples_ns": [ - 188978308, - 184841622, - 182275466, - 178054573, - 183930761, - 197364837, - 193691889, - 181983968, - 202080811, - 184921492, - 208206766, - 181976954, - 187775371, - 185684110, - 186832591 - ] - }, - "wall": { - "median_ms": 251.240225, - "p95_ms": 289.2050866999999, - "samples_ns": [ - 255889545, - 250371037, - 247360910, - 239092081, - 246519178, - 265489860, - 318339660, - 246204765, - 265811883, - 251240225, - 276718841, - 246914060, - 249636958, - 251485639, - 253063371 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 177.709034, - "p95_ms": 179.68738159999998, - "samples_ns": [ - 177709034, - 176250517, - 179907198 - ] - }, - "wall": { - "median_ms": 240.311548, - "p95_ms": 244.4507875, - "samples_ns": [ - 240311548, - 239926960, - 244910703 - ] - } - } - }, - "name": "module.direct_callback.structural_creation", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "xe-0/0/3:0", - "xe-0/0/3:1", - "xe-0/0/3:2", - "xe-0/0/3:3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 55.599999999999994, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 35, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], - "node_types": { - "Limit": 5, - "Nested Loop": 5, - "Seq Scan": 10 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, { "aggregate": { "actual_loops": 1, @@ -46357,10 +44730,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, + "planner_rows": 1, + "planner_total_cost": 23.53, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -46370,41 +44743,32 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0a27c415a31a84e1ad4440f3771a7fd4f43682a125eb96949af1465ca9569309", + "fingerprint": "c806bab5eb9a0d530a2ae64843894479e30084c21fee5c0356ec25d490e95cf2", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, + "Plan Rows": 1, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, @@ -46412,7 +44776,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -46422,202 +44786,29 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 735, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0c415e57213854714bfbf0f0a10c2f30457251d6eb9731a2b8aef3c3cac5b830", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_poweroutlettemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1304, + "Plan Width": 727, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, @@ -46631,15 +44822,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1094, + "Plan Width": 517, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -46649,11 +44840,11 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1086, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -46666,7 +44857,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1058, + "Plan Width": 481, "Plans": [ { "Actual Loops": 1, @@ -46690,7 +44881,7 @@ "Rows Removed by Filter": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -46704,33 +44895,30 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 445, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -46738,26 +44926,26 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 10.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -46770,7 +44958,7 @@ "Relation Name": "dcim_devicetype", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -46783,23 +44971,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.46, + "Total Cost": 18.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, @@ -46814,7 +45002,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -46827,23 +45015,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.49, + "Total Cost": 20.34, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 7.0, "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, @@ -46858,7 +45046,7 @@ "Plan Width": 226, "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -46871,23 +45059,23 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.64, + "Total Cost": 21.5, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Alias": "T6", "Async Capable": false, "Disabled": false, @@ -46902,7 +45090,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -46917,13 +45105,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.67, + "Total Cost": 23.52, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -46931,7 +45119,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -46940,15 +45128,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.68, + "Startup Cost": 23.53, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 23.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -46956,201 +45144,120 @@ }, "Triggers": [] }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, + "planner_rows": 0, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 158, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 2 }, - "calls": 1, - "fingerprint": "0c4e873d480574e1aa26e97f7c19769acfabb65429baa7753243db19545112c6", + "calls": 2, + "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", "indexes": [ "dcim_device_name_c27913_idx" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 2, + "ModifyTable": 2 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.15, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.21, + "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.0, + "planner_rows": 8, + "planner_total_cost": 14.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -47160,68 +45267,75 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0fc101cf8db3e8a0a45e243e194d29797872c45ad16125275df97f3b58c3c35b", - "indexes": [], + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 24, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -47229,158 +45343,158 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, { "aggregate": { - "actual_loops": 8, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.36, + "planner_rows": 0, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 79, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 1 }, - "calls": 8, - "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", + "calls": 1, + "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", "indexes": [ - "dcim_cabletermination_unique_termination" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Only Scan": 8, - "Limit": 8 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", + "Plan Width": 14, + "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 32.0, + "planner_rows": 1, + "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 140, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 5868, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 84 + "wal_records": 0 }, - "calls": 4, - "fingerprint": "134c43025b43f63b3edf55ad33427cf5ae1d9deb499322cf01f49824013ab8dd", + "calls": 1, + "fingerprint": "d34ed9bc3b276775059bda33d19c77d55c2b5e377f215eb57a8b5dc491fe68ec", "indexes": [], "node_types": { - "ModifyTable": 4, - "Seq Scan": 4 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -47389,53 +45503,52 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, + "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Rows Removed by Filter": 2, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 35, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 5.01, "WAL Buffers Full": 0, - "WAL Bytes": 1467, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, + "planner_rows": 1, + "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -47445,157 +45558,68 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "141e3db0eaa2540d5e7b2369dd0fb5fc75e58d83f5c8d9b9bb1d483c02067b7d", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "fingerprint": "d999dbf8ed72ed08471e7ed451d5740c865d85e4dd6c5d3067cdb67b862e9e9c", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.15, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.21, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -47603,7 +45627,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" }, { "aggregate": { @@ -47613,101 +45637,102 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, + "planner_rows": 1, + "planner_total_cost": 5.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 319, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, "calls": 1, - "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", + "fingerprint": "da68ccf0688b8b3b4f7188debe29a3d422cbbc42903e99db5516afbd07af9520", "indexes": [], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 5.01, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.0, + "planner_rows": 1, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -47716,14 +45741,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "1adc62bdf334fe7c7a687363200e0c39f5d7a7be9e83b4e080d246392a977288", - "indexes": [], + "calls": 1, + "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 4, - "Seq Scan": 4 + "Index Only Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -47742,29 +45769,33 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -47772,13 +45803,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -47786,20 +45817,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, + "planner_rows": 4, + "planner_total_cost": 20.04, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 20, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -47808,38 +45839,36 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "1b7a8d6d0595b82a8dce4ba02c6af45b36ee4650dacb670df2887e9e70570087", + "calls": 4, + "fingerprint": "e3caeac7d2c46b4bee93087a339a04bd75f571767c82d6b08e746322fac2396f", "indexes": [], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Limit": 4, + "Seq Scan": 4 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -47848,32 +45877,31 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -47881,20 +45909,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 15.21, + "planner_total_cost": 13.22, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -47904,7 +45932,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "21ecd05884633629db8352d4d92216beef8468af3eea886fa355f72424264b0c", + "fingerprint": "e683ed305970d9c71a730d103291c9f388665abe680683cb21e5199150366627", "indexes": [ "dcim_device_name_c27913_idx" ], @@ -47914,11 +45942,11 @@ "Nested Loop": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -47938,14 +45966,15 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -47955,7 +45984,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1232, "Plans": [ { "Actual Loops": 1, @@ -47964,7 +45993,6 @@ "Async Capable": false, "Disabled": false, "Heap Fetches": 1, - "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -47977,7 +46005,6 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, @@ -47994,11 +46021,11 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Filter": "(module_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -48007,31 +46034,32 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, + "Plan Width": 986, "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.0, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.15, + "Total Cost": 13.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48039,20 +46067,22 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 15.16, + "Startup Cost": 13.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.21, + "Total Cost": 13.22, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48060,20 +46090,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 64.0, + "planner_rows": 4, + "planner_total_cost": 32.56, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 64, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -48082,14 +46112,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "2484ec2928c29206e477378038a89f6d3044368214d828a844c1c6cd3c69de66", - "indexes": [], + "calls": 4, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 8, - "Seq Scan": 8 + "Index Only Scan": 4, + "Limit": 4 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -48103,34 +46135,38 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2005, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48138,13 +46174,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48152,7 +46188,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { @@ -48162,66 +46198,600 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 23.53, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "planner_rows": 0, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 31, "shared_read_blocks": 0, - "shared_written_blocks": 0, + "shared_written_blocks": 1, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1800, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 24 }, "calls": 1, - "fingerprint": "24f473198eeb64d98b4a613d0bbbf37b80ebc244f015889f40b4bac2ffa52b72", + "fingerprint": "f1322cbbe75d55fee044af73c41a1c6d04eb0788f4389b382e91770dbf88228f", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 31, + "Shared Read Blocks": 0, + "Shared Written Blocks": 1, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 1800, + "WAL FPI": 0, + "WAL Records": 24 + }, + "Triggers": [] + }, + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 15, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 4 + }, + { + "calls": 4, + "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 4 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 26, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 26 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", + "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 111, + "actual_rows_per_work_unit": 14.4, + "actual_rows_times_loops": 72, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 111, + "planner_rows": 223, + "planner_total_cost": 1430.5299999999997, + "planner_total_cost_per_work_unit": 286.10599999999994, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 560, + "shared_hit_blocks_per_work_unit": 112.0, + "shared_read_blocks": 1, + "shared_written_blocks": 1, + "statement_calls": 119, + "statement_calls_per_work_unit": 23.8, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 15235, + "wal_fpi": 1, + "wal_records": 153, + "work_units": 5 + } + }, + "description": "Four-channel structural creation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 178.599918, + "p95_ms": 199.465228, + "samples_ns": [ + 199359793, + 181656571, + 176844420, + 187769060, + 169506740, + 168084180, + 173714597, + 185584442, + 199711243, + 178599918, + 165768385, + 167108404, + 179375359, + 165697362, + 187617787 + ] + }, + "wall": { + "median_ms": 239.876444, + "p95_ms": 271.1865105, + "samples_ns": [ + 278470266, + 242613064, + 233331471, + 245463832, + 224851519, + 226477631, + 234833471, + 246720600, + 268064901, + 241773644, + 220795478, + 222440229, + 239876444, + 227693827, + 246552425 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 177.134732, + "p95_ms": 178.6601204, + "samples_ns": [ + 177134732, + 178829608, + 174158716 + ] + }, + "wall": { + "median_ms": 236.423552, + "p95_ms": 238.522604, + "samples_ns": [ + 236423552, + 238755832, + 234059355 + ] + } + } + }, + "name": "module.direct_callback.structural_creation", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "xe-0/0/3:0", + "xe-0/0/3:1", + "xe-0/0/3:2", + "xe-0/0/3:3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 29.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0c415e57213854714bfbf0f0a10c2f30457251d6eb9731a2b8aef3c3cac5b830", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_poweroutlettemplate_unique_module_type_name" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1312, + "Plans": [ + { + "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, @@ -48236,7 +46806,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 333, + "Plan Width": 1304, "Plans": [ { "Actual Loops": 1, @@ -48254,7 +46824,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 123, + "Plan Width": 1094, "Plans": [ { "Actual Loops": 1, @@ -48262,7 +46832,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -48272,7 +46842,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 115, + "Plan Width": 1086, "Plans": [ { "Actual Loops": 1, @@ -48289,7 +46859,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 87, + "Plan Width": 1058, "Plans": [ { "Actual Loops": 1, @@ -48328,29 +46898,32 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", + "Alias": "dcim_poweroutlettemplate", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48361,10 +46934,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.16, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48408,10 +46981,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.32, + "Total Cost": 24.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48452,10 +47025,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.34, + "Total Cost": 26.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48496,10 +47069,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.5, + "Total Cost": 27.64, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48540,10 +47113,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.52, + "Total Cost": 29.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48560,15 +47133,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" + "dcim_poweroutlettemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 23.53, + "Startup Cost": 29.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.53, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48576,7 +47149,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" }, { "aggregate": { @@ -48586,10 +47159,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, + "planner_rows": 1, + "planner_total_cost": 8.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -48599,21 +47172,210 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "26b71b8afa098c135690c5adc6c1cb7831abc9ff7068e1b8487e45be6a51bdb1", + "fingerprint": "0fc101cf8db3e8a0a45e243e194d29797872c45ad16125275df97f3b58c3c35b", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 32.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 140, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 5868, + "wal_fpi": 0, + "wal_records": 84 + }, + "calls": 4, + "fingerprint": "134c43025b43f63b3edf55ad33427cf5ae1d9deb499322cf01f49824013ab8dd", + "indexes": [], + "node_types": { + "ModifyTable": 4, + "Seq Scan": 4 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 35, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 1467, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 98.52, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "164dcc0bcbce6d749d7a1082e760a6568b300791aacc971f508514fbea570ec5", "indexes": [ + "dcim_cable_pkey", "dcim_device_name_c27913_idx" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Incremental Sort": 4, + "Index Only Scan": 4, + "Index Scan": 4, + "Nested Loop": 8, + "Seq Scan": 4 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -48633,14 +47395,14 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, + "Inner Unique": false, "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, @@ -48651,7 +47413,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -48659,7 +47421,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -48674,7 +47436,7 @@ "Relation Name": "dcim_device", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -48688,30 +47450,95 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 16.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48720,13 +47547,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.15, + "Total Cost": 24.57, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48738,7 +47565,7 @@ "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -48746,10 +47573,10 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.16, + "Startup Cost": 24.58, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.21, + "Total Cost": 24.63, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -48757,52 +47584,52 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.31, + "planner_rows": 0, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 319, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, "calls": 1, - "fingerprint": "27bd86446c5cf0800909c1ec902fa21fd9fd243ecc1ca24d0d3cbc013792074c", + "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", "indexes": [], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, @@ -48813,94 +47640,55 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.02, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 2.3, - "Strategy": "Plain", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.31, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 319, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.0, + "planner_rows": 4, + "planner_total_cost": 32.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 32, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -48909,12 +47697,12 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "2d3a0e703cf2e207cc924558a58b0677c41eef7e55ab94d7b992a72e98c2d922", + "calls": 4, + "fingerprint": "1adc62bdf334fe7c7a687363200e0c39f5d7a7be9e83b4e080d246392a977288", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Limit": 4, + "Seq Scan": 4 }, "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { @@ -48949,7 +47737,7 @@ "Plan Rows": 1, "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 8, "Shared Read Blocks": 0, @@ -48983,16 +47771,16 @@ }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 18.0, + "planner_rows": 0, + "planner_total_cost": 3.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -49001,36 +47789,38 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", + "calls": 1, + "fingerprint": "1b7a8d6d0595b82a8dce4ba02c6af45b36ee4650dacb670df2887e9e70570087", "indexes": [], "node_types": { - "Limit": 9, - "Seq Scan": 9 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -49039,31 +47829,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.0, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.0, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49071,99 +47862,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 0.07, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 117, - "shared_read_blocks": 1, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 7417, - "wal_fpi": 0, - "wal_records": 106 - }, - "calls": 1, - "fingerprint": "3397ae75665803d484b2e870de785e2be338fc3f3da69af9b03a3db8acace896", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Values Scan": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "*VALUES*", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Values Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 117, - "Shared Read Blocks": 1, - "Shared Written Blocks": 1, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 7417, - "WAL FPI": 0, - "WAL Records": 106 - }, - "Triggers": [] - }, - "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -49173,193 +47872,105 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 0, + "planner_total_cost": 8.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 33, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1465, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "34a8f832c2911950ab3a2024a0b9c7b0bcdb877877e0d20de97ce9697bd64f17", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], + "fingerprint": "2263667d82d1e3212b805b8962fc6a3b1ca28924465ae7d395c349b881649b8a", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 33, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 8.0, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1465, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 10.18, + "planner_rows": 8, + "planner_total_cost": 64.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 64, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -49368,18 +47979,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "34ade45165f859b900607b0e12ff6b568c9d187974bbbfccad45ed197fbe7de3", - "indexes": [ - "dcim_moduletype_pkey" - ], + "calls": 8, + "fingerprint": "2484ec2928c29206e477378038a89f6d3044368214d828a844c1c6cd3c69de66", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Limit": 8, + "Seq Scan": 8 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -49390,102 +47997,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 118, + "Plan Width": 2005, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.16, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49493,20 +48035,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 10.17, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.18, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49514,7 +48049,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" }, { "aggregate": { @@ -49525,7 +48060,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 29.68, + "planner_total_cost": 23.53, "shared_dirtied_blocks": 0, "shared_hit_blocks": 4, "shared_read_blocks": 0, @@ -49537,19 +48072,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3a2d1ec90f82e310b983f873308c5a74efa1ea5d7ee9abc6761d47672e528940", + "fingerprint": "24f473198eeb64d98b4a613d0bbbf37b80ebc244f015889f40b4bac2ffa52b72", "indexes": [ "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_rearporttemplate_unique_module_type_name" + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 3, + "Index Scan": 2, "Nested Loop": 5, - "Seq Scan": 3, + "Seq Scan": 4, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -49563,7 +48097,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 341, "Plans": [ { "Actual Loops": 1, @@ -49581,7 +48115,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 341, "Plans": [ { "Actual Loops": 1, @@ -49599,7 +48133,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1180, + "Plan Width": 333, "Plans": [ { "Actual Loops": 1, @@ -49617,7 +48151,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 970, + "Plan Width": 123, "Plans": [ { "Actual Loops": 1, @@ -49625,7 +48159,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -49635,7 +48169,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 962, + "Plan Width": 115, "Plans": [ { "Actual Loops": 1, @@ -49652,7 +48186,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 934, + "Plan Width": 87, "Plans": [ { "Actual Loops": 1, @@ -49691,32 +48225,29 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", + "Alias": "dcim_modulebaytemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49727,10 +48258,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 10.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49774,10 +48305,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.46, + "Total Cost": 18.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49818,10 +48349,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.49, + "Total Cost": 20.34, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49862,10 +48393,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.64, + "Total Cost": 21.5, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49906,10 +48437,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.67, + "Total Cost": 23.52, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49926,15 +48457,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" + "dcim_modulebaytemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.68, + "Startup Cost": 23.53, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 23.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -49942,7 +48473,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" }, { "aggregate": { @@ -49953,7 +48484,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_total_cost": 2.31, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -49965,15 +48496,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], + "fingerprint": "27bd86446c5cf0800909c1ec902fa21fd9fd243ecc1ca24d0d3cbc013792074c", + "indexes": [], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, @@ -49984,40 +48514,73 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -50028,10 +48591,11 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 2.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -50039,120 +48603,201 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, + "planner_rows": 2, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 0 }, "calls": 1, - "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", + "fingerprint": "2ac669a659ba8d1aabe7bb9a6d0c86ad4d4722f341c74811b39900e731c23aa7", "indexes": [ - "dcim_moduletype_pkey" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_moduletype", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_moduletype", + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.21, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 24.58, + "planner_total_cost": 8.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -50162,22 +48807,299 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "42056e4d4a2cf73a3fd9670ed59790bb1f650c8bfc873fd3ea457389d32a40d7", + "fingerprint": "2d3a0e703cf2e207cc924558a58b0677c41eef7e55ab94d7b992a72e98c2d922", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 18.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 18, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 0.07, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 116, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 7417, + "wal_fpi": 0, + "wal_records": 106 + }, + "calls": 1, + "fingerprint": "34780f5e53c20b4c37773013b057b76bcc1b26bed8c6b683cc3c18fb2ed74d90", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Values Scan": 1 + }, + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 2017, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "*VALUES*", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Values Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 2017, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 116, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.07, + "WAL Buffers Full": 0, + "WAL Bytes": 7417, + "WAL FPI": 0, + "WAL Records": 106 + }, + "Triggers": [] + }, + "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 24.75, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 28, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3977187abae50177e01a00bb4d86fbe334362dd81b6c023d22b7f3f622323619", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", + "dcim_devicetype_pkey", "dcim_moduletype_unique_manufacturer_model" ], "node_types": { "Index Scan": 2, + "Materialize": 1, "Nested Loop": 5, "Seq Scan": 4, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -50186,17 +49108,17 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, + "Plan Rows": 5, "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -50204,17 +49126,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, + "Plan Rows": 5, "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -50222,17 +49143,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 722, + "Plan Rows": 5, + "Plan Width": 694, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -50241,15 +49162,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 512, + "Plan Width": 262, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -50259,155 +49180,90 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 504, + "Plan Width": 254, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 476, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.21, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.37, + "Total Cost": 9.3, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -50421,7 +49277,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -50439,21 +49295,22 @@ "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.39, + "Total Cost": 11.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -50461,76 +49318,172 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 22.55, + "Total Cost": 14.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", + "Actual Loops": 5, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Maximum Storage": 17, + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 20, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 20, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, + "Storage": "Memory", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 10.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.57, + "Total Cost": 24.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -50538,24 +49491,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T7\".name", + "\"T6\".name", "dcim_moduletype.model", "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 24.58, + "Startup Cost": 24.73, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.58, + "Total Cost": 24.75, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -50563,20 +49516,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { - "actual_loops": 63, - "actual_rows_times_loops": 63, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 63, - "planner_total_cost": 728.9100000000007, + "planner_rows": 1, + "planner_total_cost": 29.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 441, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -50585,755 +49538,88 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 63, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "3a2d1ec90f82e310b983f873308c5a74efa1ea5d7ee9abc6761d47672e528940", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_rearporttemplate_unique_module_type_name" + ], "node_types": { - "Hash": 63, - "Hash Join": 63, - "Limit": 63, - "Seq Scan": 126 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 22, + "Plan Width": 1180, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.49, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.49, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.71, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 9, - "Sort": 9 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", - "indexes": [ - "dcim_consoleserverport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "69c249674607ef4bd898562d5dd5e73e51dcb399cd5d9c0b319442c9419e111e", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1446, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, + "Plan Width": 970, "Plans": [ { "Actual Loops": 1, @@ -51341,7 +49627,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -51351,7 +49637,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1228, + "Plan Width": 962, "Plans": [ { "Actual Loops": 1, @@ -51368,7 +49654,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1200, + "Plan Width": 934, "Plans": [ { "Actual Loops": 1, @@ -51407,11 +49693,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", + "Alias": "dcim_rearporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -51421,8 +49707,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -51537,7 +49823,7 @@ "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.48, + "Total Cost": 26.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -51625,7 +49911,7 @@ "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.66, + "Total Cost": 29.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -51642,12 +49928,12 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" + "dcim_rearporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.67, + "Startup Cost": 29.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 29.68, @@ -51658,20 +49944,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -51681,22 +49967,21 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6a250ea2a0c7f445cb802719ca76651a364263a07b34702a3aef716601a48040", + "fingerprint": "3c42fb1ed65e38e2f6ccbc6cd18e9779358db1f319e39958ea7a004c07167f02", "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f", "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -51705,8 +49990,8 @@ "quicksort" ], "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 } }, "Local Dirtied Blocks": 0, @@ -51716,14 +50001,15 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1116, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -51733,7 +50019,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1116, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -51741,8 +50027,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -51755,10 +50040,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -51772,49 +50056,45 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", + "Actual Rows": 5.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", - "Index Searches": 1, + "Filter": "(module_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", + "Plan Width": 2005, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -51822,20 +50102,22 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 16.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -51843,20 +50125,217 @@ }, "Triggers": [] }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { "aggregate": { - "actual_loops": 24, + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 192, - "planner_total_cost": 953.5200000000002, + "planner_rows": 0, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 14, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_moduletype", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 24.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -51865,24 +50344,19 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 24, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "calls": 1, + "fingerprint": "42056e4d4a2cf73a3fd9670ed59790bb1f650c8bfc873fd3ea457389d32a40d7", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Bitmap Heap Scan": 24, - "Bitmap Index Scan": 24, - "Hash": 24, - "Hash Join": 24, - "Index Scan": 48, - "Nested Loop": 48, - "Seq Scan": 24, - "Sort": 24 + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -51895,8 +50369,8 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, @@ -51904,7 +50378,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -51912,8 +50387,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, @@ -51921,6 +50396,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -51929,159 +50405,227 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 1, + "Plan Width": 722, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 512, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 504, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 476, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 5, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 21.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52090,46 +50634,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T4", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 22.55, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52138,46 +50678,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Alias": "T7", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 24.57, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52185,21 +50721,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 24.58, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 24.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52207,20 +50746,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.21, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -52230,21 +50769,22 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6f05d3f772d0946bae70bbe42fa47f409fd4cca753c83f34e85a740d8033bfe1", + "fingerprint": "4260e45e27233268fcf14525ac4d1229a1d864f04af0fb3e4232d430d4689040", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -52264,15 +50804,14 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -52282,7 +50821,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -52290,7 +50829,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -52303,9 +50843,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -52319,45 +50860,47 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.15, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52365,22 +50908,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_rearport.name COLLATE natural_sort" ], - "Startup Cost": 16.16, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.21, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52388,20 +50929,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 12.24, + "planner_rows": 2, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -52410,14 +50951,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "6f5ab77e1a32861ae79db6f122db01ac4dd1c0a8c37762d132bbc637fbcfe5b6", - "indexes": [], + "calls": 2, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], "node_types": { - "Limit": 4, - "Seq Scan": 4 + "Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -52431,34 +50974,37 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 440, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 4, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.06, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52466,13 +51012,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.06, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52480,20 +51026,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -52503,22 +51049,21 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6ff21baa021ac7ff51b30607e4072d8ddf915cc7e6dae2eb5df79f29751ce37a", + "fingerprint": "477045a2e1eb3c4a432e8a318a949af8c923a2aa6e17b6d8cac12def569dc598", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" + "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -52538,14 +51083,15 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1041, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -52555,7 +51101,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -52563,8 +51109,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -52577,10 +51122,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -52594,49 +51138,45 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52644,20 +51184,22 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 16.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52665,20 +51207,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 9, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.0, + "planner_rows": 9, + "planner_total_cost": 73.71, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -52687,55 +51229,60 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "750dfb2edf517badb6259c2efa4bb9f8c1cafeae57c2de4c2caefc8de067b5de", - "indexes": [], + "calls": 9, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], "node_types": { - "Limit": 4, - "Seq Scan": 4 + "Index Scan": 9, + "Sort": 9 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2005, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52743,13 +51290,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -52757,20 +51311,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 24, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 192, + "planner_total_cost": 972.7199999999996, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 24, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -52779,51 +51333,46 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "762d501e081f48edd74a88728916d1d5c8539bd2abdf7ca579de1ba470fd6b43", + "calls": 24, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_powerport_unique_device_name" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Bitmap Heap Scan": 24, + "Bitmap Index Scan": 24, + "Hash": 24, + "Hash Join": 24, + "Index Scan": 48, + "Nested Loop": 48, + "Seq Scan": 24, + "Sort": 24 }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1027, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -52831,479 +51380,210 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1027, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_powerport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 64.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 64, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "7ac79afa7986990f3c2e2e2acce74927e1df3d4aff5a8e8b085cd62f4350006e", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 24.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 23, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "80a2bf5f8fd08e26deb258ea658a6636a7f35f020d49280bb692d26a20658f0b", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, + "Plan Rows": 8, + "Plan Width": 1998, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, + "Plan Rows": 8, + "Plan Width": 1976, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.37, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 14.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.32, + "Total Cost": 24.98, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.06, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -53311,153 +51591,61 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.43, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 5, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.17, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.68, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -53465,24 +51653,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 24.73, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.75, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -53490,7 +51675,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { @@ -53500,11 +51685,11 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, + "planner_rows": 1, + "planner_total_cost": 8.17, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 1, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, @@ -53513,71 +51698,74 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "82e71217ad82cfa71cf62df3f09258bae44e32965456b9ce1e398287a8948fd0", - "indexes": [], + "fingerprint": "59ab2fb47d0689f8af87dbb3128a08efbe076c17e37e047ca91d3d68e081fae4", + "indexes": [ + "dcim_cabletermination_unique_termination" + ], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Index Only Scan": 1, + "Limit": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_cabletermination", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -53585,7 +51773,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" }, { "aggregate": { @@ -53595,97 +51783,182 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 31, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, "shared_read_blocks": 0, - "shared_written_blocks": 1, + "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1800, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 24 + "wal_records": 0 }, "calls": 1, - "fingerprint": "82e94d03295b01ac3708bd8f6b3d963646a1ec5c4a4c851a5c30b0ae767c5634", + "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", "indexes": [ + "dcim_consoleserverport_unique_device_name", "dcim_device_name_c27913_idx" ], "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, "Index Scan": 1, - "ModifyTable": 1 + "Nested Loop": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 2, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 2, - "Shared Hit Blocks": 31, + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, - "Shared Written Blocks": 1, - "Startup Cost": 0.12, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.37, "WAL Buffers Full": 0, - "WAL Bytes": 1800, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 24 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" }, { "aggregate": { @@ -53695,10 +51968,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -53708,41 +51981,49 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "84ae5c14b22940578d08dfd39a21112c935d479c590a61ef16ad9a6ba1e6a2ab", + "fingerprint": "613079e67042ee5e8e1bf3bc90ce4f08f2b578d5d9a77569593c7267963b8558", "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" ], "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, + "Plan Rows": 2, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -53752,360 +52033,107 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.64, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.67, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54113,20 +52141,112 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + }, + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 27.089999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 1, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -54136,46 +52256,127 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "870f15a8572e4c2ebbfaf4fa1c52019f9318818f7ccc7566b430f62a7f3a7821", + "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 66.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 25, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_poweroutlet_unique_device_name" + "core_objecttype_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Index Scan": 5, + "Limit": 5, + "Nested Loop": 5, + "Seq Scan": 5 }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1291, + "Plan Rows": 1, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -54188,38 +52389,37 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1291, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", + "Plan Width": 154, + "Relation Name": "core_objecttype", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54227,35 +52427,30 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", + "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 5.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54266,31 +52461,24 @@ "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54298,7 +52486,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { "aggregate": { @@ -54321,11 +52509,11 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8d20638f59875d24dea6586ef4c5eb88f08ba9059633074dc322dc840fc84a5a", + "fingerprint": "69c249674607ef4bd898562d5dd5e73e51dcb399cd5d9c0b319442c9419e111e", "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e", "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_powerporttemplate_unique_module_type_name" + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { "Index Scan": 3, @@ -54333,7 +52521,7 @@ "Seq Scan": 3, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -54347,7 +52535,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1166, + "Plan Width": 1454, "Plans": [ { "Actual Loops": 1, @@ -54365,7 +52553,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1166, + "Plan Width": 1454, "Plans": [ { "Actual Loops": 1, @@ -54383,7 +52571,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 1446, "Plans": [ { "Actual Loops": 1, @@ -54401,7 +52589,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 948, + "Plan Width": 1236, "Plans": [ { "Actual Loops": 1, @@ -54409,7 +52597,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -54419,7 +52607,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 940, + "Plan Width": 1228, "Plans": [ { "Actual Loops": 1, @@ -54436,7 +52624,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 912, + "Plan Width": 1200, "Plans": [ { "Actual Loops": 1, @@ -54475,11 +52663,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", + "Alias": "dcim_coolingintaketemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -54489,8 +52677,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -54605,7 +52793,7 @@ "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.49, + "Total Cost": 26.48, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54693,7 +52881,7 @@ "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.67, + "Total Cost": 29.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54710,12 +52898,12 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" + "dcim_coolingintaketemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.68, + "Startup Cost": 29.67, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 29.68, @@ -54726,20 +52914,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.21, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -54749,21 +52937,22 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8e6fa8212ab4b0e5d94a9a05057f30f6d722f8f2b550cba4d090b06a7ab6314f", + "fingerprint": "6e21cafae719a7e99161e90641f576fa6fde81b51c50aa85b10f5e2e3b90d1f5", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_powerport_unique_device_name" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -54783,15 +52972,14 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 1027, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -54801,7 +52989,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1027, "Plans": [ { "Actual Loops": 1, @@ -54809,7 +52997,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -54822,9 +53011,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -54838,45 +53028,49 @@ }, { "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "dcim_powerport", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_powerport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 999, + "Relation Name": "dcim_powerport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.15, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54884,22 +53078,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_powerport.name COLLATE natural_sort" ], - "Startup Cost": 16.16, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.21, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -54907,20 +53099,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 2.0, + "planner_total_cost": 29.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -54930,230 +53122,291 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", - "indexes": [], + "fingerprint": "6e294c54f01d09d93544d66b4ebf9400a5fd290bbb8cabde83908f56ce737283", + "indexes": [ + "dcim_consoleporttemplate_unique_module_type_name", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 892, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 98.52, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 44, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "9433c348618e06de7d3bd6b0e63bef2e75fc94d381647a2d2f47e9337bf91c51", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 4, - "Index Only Scan": 4, - "Index Scan": 4, - "Nested Loop": 8, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, + "Plan Width": 1158, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3285, + "Plan Width": 1150, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 26.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55162,46 +53415,71 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_cable", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.42, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55210,36 +53488,38 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.57, + "Total Cost": 29.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_consoleporttemplate.name COLLATE natural_sort" ], - "Startup Cost": 24.58, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.63, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55247,20 +53527,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.03, + "planner_rows": 4, + "planner_total_cost": 12.24, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -55269,14 +53549,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "9cd805dab6f15af00acba1e106b3c05520eca0bd8d05fb43563248a439ed0514", + "calls": 4, + "fingerprint": "6f5ab77e1a32861ae79db6f122db01ac4dd1c0a8c37762d132bbc637fbcfe5b6", "indexes": [], "node_types": { - "Seq Scan": 1, - "Sort": 1 + "Limit": 4, + "Seq Scan": 4 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -55287,18 +53567,18 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 440, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -55307,17 +53587,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55325,20 +53605,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.03, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55346,20 +53619,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 18, + "actual_rows_times_loops": 18, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 14.11, + "planner_rows": 18, + "planner_total_cost": 146.51999999999998, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, + "shared_hit_blocks": 36, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -55368,15 +53641,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "9f905952c5f102fc6ba193a7451fcdca547f872fc3cae608c39a9bc263b7e705", - "indexes": [], + "calls": 18, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 + "Index Scan": 18, + "Limit": 18 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -55390,406 +53664,37 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 3200, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3069, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2938, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2046, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1915, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.11, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55797,13 +53702,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.11, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55811,20 +53716,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 72, - "planner_total_cost": 129.33, + "planner_rows": 4, + "planner_total_cost": 32.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 32, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -55833,76 +53738,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], + "calls": 4, + "fingerprint": "750dfb2edf517badb6259c2efa4bb9f8c1cafeae57c2de4c2caefc8de067b5de", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 9, - "Bitmap Index Scan": 9 + "Limit": 4, + "Seq Scan": 4 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 1, + "Plan Width": 2005, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -55910,20 +53808,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 8, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, + "planner_rows": 8, + "planner_total_cost": 64.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 64, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -55932,76 +53830,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], + "calls": 8, + "fingerprint": "7ac79afa7986990f3c2e2e2acce74927e1df3d4aff5a8e8b085cd62f4350006e", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 + "Limit": 8, + "Seq Scan": 8 }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, + "Filter": "((id <> ?) AND (channel_id = ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.19, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.19, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.66, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -56009,7 +53900,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { @@ -56022,7 +53913,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -56032,10 +53923,10 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a8b516f999ebee5826a066db69fa8df13327e64a670cba85d400f2e2b9698de8", + "fingerprint": "7b58f7cce0901a46775ec1fe9d696487007c28f8cdc46c562e47b2df70171156", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" + "dcim_coolingintake_device_id_df1c3674", + "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, @@ -56043,7 +53934,7 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -56067,7 +53958,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1041, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, @@ -56084,7 +53975,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, @@ -56092,7 +53983,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -56109,7 +54000,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -56124,11 +54015,12 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_frontport", + "Alias": "dcim_coolingintake", "Async Capable": false, "Disabled": false, + "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", + "Index Name": "dcim_coolingintake_device_id_df1c3674", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -56138,8 +54030,9 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -56157,7 +54050,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -56174,12 +54067,12 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" + "dcim_coolingintake.name COLLATE natural_sort" ], "Startup Cost": 16.32, "Temp Read Blocks": 0, @@ -56192,20 +54085,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" }, { "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, + "actual_loops": 63, + "actual_rows_times_loops": 63, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 397.3, + "planner_rows": 63, + "planner_total_cost": 864.9900000000007, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 315, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -56214,46 +54107,40 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 10, - "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "calls": 63, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "core_objecttype_pkey" ], "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 + "Index Scan": 63, + "Limit": 63, + "Nested Loop": 63, + "Seq Scan": 63 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -56261,240 +54148,49 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -56503,18 +54199,18 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", + "Plan Width": 154, + "Relation Name": "core_objecttype", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -56522,118 +54218,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 39.59, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 39.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" - }, - { - "aggregate": { - "actual_loops": 18, - "actual_rows_times_loops": 18, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 18, - "planner_total_cost": 146.51999999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 54, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 18, - "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 18, - "Limit": 18 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -56641,13 +54232,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -56655,20 +54246,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.0, + "planner_rows": 0, + "planner_total_cost": 3.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -56678,35 +54269,37 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "ac9a27be4b943b95246f0d3b619bf4a6a945cae9bcbd58cb29ef2b50b1a8cc78", + "fingerprint": "82e71217ad82cfa71cf62df3f09258bae44e32965456b9ce1e398287a8948fd0", "indexes": [], "node_types": { - "Limit": 1, + "ModifyTable": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -56715,31 +54308,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -56747,20 +54341,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -56770,22 +54364,21 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "acae54e9a8724a8e4a2798a9307fc965ce0c1c02277b027e97ab5c16155573ad", + "fingerprint": "89bce9fc7f55edc1a7c4e51fd4689414c0d040fc7a6e7d280fd5dcc9761d8a0e", "indexes": [ - "dcim_coolingintake_device_id_df1c3674", "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -56805,14 +54398,15 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1264, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -56822,7 +54416,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1264, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -56830,8 +54424,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -56844,10 +54437,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -56861,49 +54453,45 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -56911,20 +54499,22 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 16.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -56932,205 +54522,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1292, - "wal_fpi": 0, - "wal_records": 16 - }, - "calls": 4, - "fingerprint": "ae91bf70df76c2d71a9696dee0d5b7f2f4a1315c1e9653522ee343423fdf2fe8", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Result": 4 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 323, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "aeb4e7d4fdad067afaf827e1b891057257abff35122086cdf527096099aca37a", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id > ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.0, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 24.75, + "planner_total_cost": 29.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -57140,23 +54545,23 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "bab19a8e2658ef955a2d8b741902e765e1fd8154bfb730a43e8764cb6c0811b1", + "fingerprint": "8d20638f59875d24dea6586ef4c5eb88f08ba9059633074dc322dc840fc84a5a", "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_powerporttemplate_unique_module_type_name" ], "node_types": { - "Index Scan": 2, - "Materialize": 1, + "Index Scan": 3, "Nested Loop": 5, - "Seq Scan": 4, + "Seq Scan": 3, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -57165,17 +54570,17 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 1166, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -57183,16 +54588,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 1166, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -57200,17 +54606,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, + "Plan Rows": 1, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -57219,15 +54625,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 262, + "Plan Width": 948, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -57237,90 +54643,158 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 254, + "Plan Width": 940, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 912, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.3, + "Total Cost": 24.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -57334,7 +54808,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -57349,25 +54823,24 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.32, + "Total Cost": 26.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -57375,172 +54848,76 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.06, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.43, + "Total Cost": 27.64, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 5, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.17, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 5, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.68, + "Total Cost": 29.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -57548,7 +54925,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -57557,15 +54934,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_powerporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 24.73, + "Startup Cost": 29.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.75, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -57573,7 +54950,192 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8e2d5cf4e67e550b77e5341090db3969f2d06360b222e2c45a9746e26dfea451", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_frontport_unique_device_name" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_frontport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" }, { "aggregate": { @@ -57584,9 +55146,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.0, + "planner_total_cost": 2.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -57596,13 +55158,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "bbdf80cc1eb87cf3559061f33f4a439f0b101281bd81e6c6e57d02e173a78472", + "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -57616,12 +55178,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 892, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -57633,17 +55195,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 2.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -57651,13 +55213,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 2.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -57665,20 +55227,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_loops": 7, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 24.7, + "planner_rows": 7, + "planner_total_cost": 57.190000000000005, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -57687,24 +55249,116 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "bca1ffe75a54701d8bdc08955414208f1233aaf01f9f237fb471ae28dcac99f0", + "calls": 7, + "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" + "dcim_cabletermination_unique_termination" ], "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, + "Index Only Scan": 7, + "Limit": 7 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_cabletermination", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 2.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9cd805dab6f15af00acba1e106b3c05520eca0bd8d05fb43563248a439ed0514", + "indexes": [], + "node_types": { + "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -57713,16 +55367,116 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 4, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 14.11, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "9f905952c5f102fc6ba193a7451fcdca547f872fc3cae608c39a9bc263b7e705", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -57731,16 +55485,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 3200, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -57748,8 +55503,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 694, + "Plan Rows": 1, + "Plan Width": 3069, "Plans": [ { "Actual Loops": 1, @@ -57757,8 +55512,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -57767,7 +55522,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 262, + "Plan Width": 2938, "Plans": [ { "Actual Loops": 1, @@ -57775,7 +55530,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -57785,37 +55540,158 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 254, + "Plan Width": 2046, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 1915, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 6.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -57823,8 +55699,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", + "Actual Rows": 1.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -57834,32 +55710,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.3, + "Total Cost": 8.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -57868,7 +55744,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "T7", + "Alias": "T5", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -57879,8 +55755,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 892, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -57888,22 +55764,22 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 2.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.32, + "Total Cost": 10.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -57911,11 +55787,10 @@ }, { "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interfacetemplate", + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -57923,172 +55798,76 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 4, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.06, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.42, + "Total Cost": 12.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 4, + "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.17, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 4, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 14, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.65, + "Total Cost": 14.11, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58096,24 +55875,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 14, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 24.69, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.7, + "Total Cost": 14.11, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58121,20 +55889,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 18.089999999999996, + "planner_rows": 5, + "planner_total_cost": 12.66, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -58143,47 +55911,51 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", - "indexes": [], + "calls": 1, + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], "node_types": { - "Limit": 9, - "Seq Scan": 9 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, + "Plan Rows": 5, + "Plan Width": 60, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Rows": 5, + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -58191,21 +55963,24 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 4.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 12.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58213,220 +55988,188 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, + "planner_rows": 1, + "planner_total_cost": 10.18, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 0 }, "calls": 1, - "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", + "fingerprint": "aa68a9b0b1fbdedccdf2abc425504666c5938e801f260c7324e5935ef6344b6e", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_moduletype_pkey" ], "node_types": { "Index Scan": 1, - "ModifyTable": 1 + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 118, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 24.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 237, - "wal_fpi": 0, - "wal_records": 3 - }, - "calls": 3, - "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 3, - "ModifyTable": 3 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 118, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 10.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 10.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 10.18, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, + "planner_rows": 1, + "planner_total_cost": 8.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -58436,110 +56179,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d7c5ab22cb2daf70c17bbda47840d9dc1d9d2ff787ba45076a7bb443165f652e", + "fingerprint": "ac9a27be4b943b95246f0d3b619bf4a6a945cae9bcbd58cb29ef2b50b1a8cc78", "indexes": [], "node_types": { - "ModifyTable": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.26, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 9, - "Limit": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -58558,33 +56204,29 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58592,13 +56234,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58606,20 +56248,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 5, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.21, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -58629,21 +56271,22 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "dc3e878838ceab8d6aa80af82a7364832362844a7630e764ec7843a6e61e2758", + "fingerprint": "ad4280832ec72d05833891853180966290f12b31f06a17569189ead7a0148361", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_poweroutlet_unique_device_name" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -58652,8 +56295,8 @@ "quicksort" ], "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 } }, "Local Dirtied Blocks": 0, @@ -58663,15 +56306,14 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -58681,7 +56323,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, @@ -58689,7 +56331,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -58702,9 +56345,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -58718,45 +56362,49 @@ }, { "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", "Async Capable": false, "Disabled": false, - "Filter": "(module_id = ?)", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.15, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58764,22 +56412,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_poweroutlet.name COLLATE natural_sort" ], - "Startup Cost": 16.16, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.21, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58787,7 +56433,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" }, { "aggregate": { @@ -58798,9 +56444,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -58810,18 +56456,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", + "fingerprint": "ad93fed257104185788090c756dd09636e1903e506c4a575bc008ce3a6ee3f65", "indexes": [ - "dcim_consoleport_unique_device_name", "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -58845,7 +56490,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1023, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -58862,7 +56507,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1023, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -58902,34 +56547,29 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleport", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, + "Filter": "((module_id IS NULL) AND (device_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", + "Plan Width": 2005, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58937,13 +56577,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58954,17 +56594,17 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 16.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -58972,41 +56612,41 @@ }, "Triggers": [] }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_rows": 0, + "planner_total_cost": 0.04, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 52, - "shared_read_blocks": 12, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 575, + "wal_bytes": 1292, "wal_fpi": 0, - "wal_records": 8 + "wal_records": 16 }, - "calls": 1, - "fingerprint": "e89816763ca6a9e380295812e114bf8c5957e04c8a1901c8a2a5829614ea5ebf", + "calls": 4, + "fingerprint": "ae91bf70df76c2d71a9696dee0d5b7f2f4a1315c1e9653522ee343423fdf2fe8", "indexes": [], "node_types": { - "ModifyTable": 1, - "Result": 1 + "ModifyTable": 4, + "Result": 4 }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -59016,8 +56656,8 @@ "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 896, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, @@ -59032,9 +56672,9 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 896, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -59047,36 +56687,36 @@ "WAL Records": 0 } ], - "Relation Name": "dcim_module", + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 52, - "Shared Read Blocks": 12, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 575, + "WAL Bytes": 323, "WAL FPI": 0, - "WAL Records": 8 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, + "planner_rows": 1, + "planner_total_cost": 8.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -59086,37 +56726,36 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e91040485f4f9ae782fa19d77b9db83850c3cbca973a2d85e86e1bd98793c4e4", + "fingerprint": "aeb4e7d4fdad067afaf827e1b891057257abff35122086cdf527096099aca37a", "indexes": [], "node_types": { - "ModifyTable": 1, + "Aggregate": 1, "Seq Scan": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Aggregate", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 2, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Filter": "((channel_id > ?) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -59125,32 +56764,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.0, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 8.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -59158,7 +56797,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" }, { "aggregate": { @@ -59171,7 +56810,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -59181,10 +56820,10 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "eaf4dfa413b0a0454816c86c42dd7383e364e3e96e734f349b3efb1ad5420b26", + "fingerprint": "b8e7839f7b1c9604f0585df890907b8de7f20162db6f4477c70c135174765c1f", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" + "dcim_coolingoutflow_device_id_74dd615f", + "dcim_device_name_c27913_idx" ], "node_types": { "Incremental Sort": 1, @@ -59192,7 +56831,7 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -59216,7 +56855,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1041, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, @@ -59233,7 +56872,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, @@ -59241,7 +56880,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -59258,7 +56897,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -59273,12 +56912,12 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_frontport", + "Alias": "dcim_coolingoutflow", "Async Capable": false, "Disabled": false, "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -59288,8 +56927,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -59308,7 +56947,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -59325,12 +56964,12 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" + "dcim_coolingoutflow.name COLLATE natural_sort" ], "Startup Cost": 16.32, "Temp Read Blocks": 0, @@ -59343,112 +56982,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 14, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 14, - "planner_total_cost": 112.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 112, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 14, - "fingerprint": "ebe800ac343a48a675c36befa6f8bd7ad9b5c6874689db4ca18eea16aa6a0310", - "indexes": [], - "node_types": { - "Limit": 14, - "Seq Scan": 14 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, + "planner_rows": 5, + "planner_total_cost": 24.75, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -59458,23 +57005,23 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "f2a00f976e5f69992e82b118c695553090aca0e8fe7182ecf4f005efa338ef0b", + "fingerprint": "bab19a8e2658ef955a2d8b741902e765e1fd8154bfb730a43e8764cb6c0811b1", "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "dcim_devicetype_unique_manufacturer_slug", + "dcim_devicetype_pkey", "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 3, + "Index Scan": 2, + "Materialize": 1, "Nested Loop": 5, - "Seq Scan": 3, + "Seq Scan": 4, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -59483,17 +57030,17 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1314, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -59501,17 +57048,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1314, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -59519,17 +57065,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1306, + "Plan Rows": 5, + "Plan Width": 694, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -59538,15 +57084,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1096, + "Plan Width": 262, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -59556,158 +57102,90 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1088, + "Plan Width": 254, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1060, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.46, + "Total Cost": 9.3, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -59721,7 +57199,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -59736,24 +57214,25 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.49, + "Total Cost": 11.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -59761,76 +57240,172 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.64, + "Total Cost": 14.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 5, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Maximum Storage": 17, + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, + "Storage": "Memory", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 10.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.67, + "Total Cost": 24.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -59838,7 +57413,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -59847,15 +57422,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.68, + "Startup Cost": 24.73, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 24.75, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -59863,20 +57438,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, + "planner_rows": 2, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -59886,41 +57461,49 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "f7c67f872dd953320fad7a638ef416b2315a0b5a751ef7e6ada66cbc5fc6de92", + "fingerprint": "bb3cf426addd935c81b1abaff4fb0aedbc7a807c6b2307318f69073f0c0fc216", "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -59930,302 +57513,48 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1158, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.64, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -60234,16 +57563,17 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -60252,38 +57582,36 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.67, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 16.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -60291,52 +57619,50 @@ }, "Triggers": [] }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, + "planner_rows": 1, "planner_total_cost": 8.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 34, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1562, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 22 + "wal_records": 0 }, "calls": 1, - "fingerprint": "f8157f105aadd015d037744a697d777a82529cc0e8c15cd71897999caf99be3d", + "fingerprint": "bbdf80cc1eb87cf3559061f33f4a439f0b101281bd81e6c6e57d02e173a78472", "indexes": [], "node_types": { - "ModifyTable": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, @@ -60353,9 +57679,9 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, + "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 8, "Shared Read Blocks": 0, @@ -60370,9 +57696,8 @@ "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 34, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -60380,26 +57705,26 @@ "Temp Written Blocks": 0, "Total Cost": 8.0, "WAL Buffers Full": 0, - "WAL Bytes": 1562, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 22 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, + "planner_rows": 4, + "planner_total_cost": 24.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -60409,23 +57734,23 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "f8ca762ffeab5ac78dc0ccddb5f56f319f1dcd34dfdbc48f5b63987a878ad6b3", + "fingerprint": "bca1ffe75a54701d8bdc08955414208f1233aaf01f9f237fb471ae28dcac99f0", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_frontporttemplate_unique_module_type_name", + "dcim_devicetype_pkey", "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 3, + "Index Scan": 2, + "Materialize": 1, "Nested Loop": 5, - "Seq Scan": 3, + "Seq Scan": 4, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -60434,17 +57759,17 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, + "Plan Rows": 4, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -60452,17 +57777,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, + "Plan Rows": 4, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -60470,17 +57794,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, + "Plan Rows": 4, + "Plan Width": 694, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -60489,15 +57813,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 970, + "Plan Width": 262, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -60507,158 +57831,90 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 962, + "Plan Width": 254, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.46, + "Total Cost": 9.3, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -60672,7 +57928,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -60687,24 +57943,25 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.49, + "Total Cost": 11.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -60712,76 +57969,172 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 4, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 3.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.64, + "Total Cost": 14.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 4, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Maximum Storage": 17, + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, + "Storage": "Memory", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 10.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.67, + "Total Cost": 24.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -60789,24 +58142,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T6\".name", + "\"T7\".name", "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.68, + "Startup Cost": 24.69, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 24.7, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -60814,20 +58167,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 18.089999999999996, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -60836,69 +58189,162 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", - "indexes": [], + "calls": 1, + "fingerprint": "bce1a17ce482c9e652ee4c397104e74fb46fd559c41744e4ed469c16639cc2bf", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" + ], "node_types": { - "Limit": 9, - "Seq Scan": 9 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Width": 1041, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_rearport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -60906,41 +58352,43 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 5, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 3.58, + "planner_total_cost": 40.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 25, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 395, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 5 }, - "calls": 1, - "fingerprint": "fbcddf7bb5b1f788f986300970a2d78acfbf8abe11891e9d0029a33091f627bc", - "indexes": [], + "calls": 5, + "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Index Scan": 5, + "ModifyTable": 5 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -60948,671 +58396,175 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Delete", + "Operation": "Update", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, + "Plan Width": 14, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.58, + "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 9, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 32.0, + "planner_rows": 72, + "planner_total_cost": 129.33, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 136, + "shared_hit_blocks": 9, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 5856, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 84 + "wal_records": 0 }, - "calls": 4, - "fingerprint": "fde43f0d411efede8be4967d949eaaa80144aa8d9d8d88c3a0b86e166b349db5", - "indexes": [], + "calls": 9, + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], "node_types": { - "ModifyTable": 4, - "Seq Scan": 4 + "Bitmap Heap Scan": 9, + "Bitmap Index Scan": 9 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 8, + "Plan Width": 24, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 34, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.0, + "Total Cost": 14.37, "WAL Buffers Full": 0, - "WAL Bytes": 1464, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, - { - "calls": 9, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 4 - }, - { - "calls": 9, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 8, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 24, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 18, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 18 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 5 - }, - { - "calls": 16, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 14, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 16, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 63, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 63 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 10 - }, - { - "calls": 9, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 5, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 8, - "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 301, - "actual_rows_per_work_unit": 38.0, - "actual_rows_times_loops": 190, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 301, - "planner_rows": 618, - "planner_total_cost": 3993.1799999999994, - "planner_total_cost_per_work_unit": 798.6359999999999, - "shared_dirtied_blocks": 3, - "shared_hit_blocks": 1895, - "shared_hit_blocks_per_work_unit": 379.0, - "shared_read_blocks": 13, - "shared_written_blocks": 2, - "statement_calls": 333, - "statement_calls_per_work_unit": 66.6, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 25084, - "wal_fpi": 0, - "wal_records": 353, - "work_units": 5 - } - }, - "description": "Existing parent plus four channels rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 579.243993, - "p95_ms": 606.8015297999999, - "samples_ns": [ - 579243993, - 560161354, - 591693877, - 588207714, - 571524659, - 566865136, - 589309638, - 565139341, - 586887607, - 623069639, - 578152802, - 562149609, - 592317627, - 567539485, - 599829483 - ] - }, - "wall": { - "median_ms": 766.828205, - "p95_ms": 804.6346788999999, - "samples_ns": [ - 771956055, - 744986034, - 788089930, - 766828205, - 765685320, - 750628715, - 780958397, - 746096600, - 767891798, - 826664402, - 766543594, - 747662958, - 777646506, - 765955520, - 795193369 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 597.420704, - "p95_ms": 599.0206313, - "samples_ns": [ - 597420704, - 592914521, - 599198401 - ] - }, - "wall": { - "median_ms": 788.433765, - "p95_ms": 795.1548507, - "samples_ns": [ - 788433765, - 780689909, - 795901638 - ] - } - } - }, - "name": "module.complete_model_save.existing_family", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "et-0/0/3:1", - "et-0/0/3:2", - "et-0/0/3:3", - "et-0/0/3:4" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 1, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 55.599999999999994, + "planner_rows": 2, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 35, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -61621,36 +58573,50 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], + "calls": 1, + "fingerprint": "d387a36e9fa8ea4c1e559804a480b28b2d54b6d94ce5f29b4ecb9938eee7503d", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 5, - "Nested Loop": 5, - "Seq Scan": 10 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -61660,34 +58626,36 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "core_objecttype", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.05, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -61695,11 +58663,11 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", + "Actual Rows": 4.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -61708,45 +58676,55 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.06, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 16.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -61754,44 +58732,41 @@ }, "Triggers": [] }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 33.12, + "planner_total_cost": 3.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 128, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 5868, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 84 + "wal_records": 0 }, - "calls": 4, - "fingerprint": "0652b3db5103daa905517e440c5d58abd95d89f06adcbd7da81dc85dbe04cac9", - "indexes": [ - "dcim_interface_pkey" - ], + "calls": 1, + "fingerprint": "d7c5ab22cb2daf70c17bbda47840d9dc1d9d2ff787ba45076a7bb443165f652e", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "ModifyTable": 4 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -61799,107 +58774,73 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Update", + "Operation": "Delete", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 32, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 3.58, "WAL Buffers Full": 0, - "WAL Bytes": 1467, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_loops": 9, + "actual_rows_times_loops": 9, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.68, + "planner_rows": 9, + "planner_total_cost": 27.089999999999996, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 27, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -61908,20 +58849,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", - "indexes": [ - "dcim_cabletermination_unique_termination" - ], + "calls": 9, + "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", + "indexes": [], "node_types": { - "Index Only Scan": 4, - "Limit": 4 + "Limit": 9, + "Seq Scan": 9 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -61931,38 +58870,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", + "Actual Rows": 1.0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -61970,13 +58905,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -61984,20 +58919,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 5, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 26.75, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -62007,42 +58942,50 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "133a84cf7b2f8065a05c661a60d445ccf3c482bf1f2a5070d4cb88f96348f110", + "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" + "dcim_consoleport_unique_device_name", + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 2, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -62050,520 +58993,110 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 5, - "Actual Rows": 1.0, + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", "Async Capable": false, "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.17, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.68, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 26.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.75, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 10, - "planner_total_cost": 82.89999999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "1dc8a2e3485086e606f51c5109c6862a737ac2249b72634003e63ae924447091", - "indexes": [ - "dcim_interface_unique_device_name" - ], - "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Limit": 10 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.29, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -62571,44 +59104,41 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.28, + "planner_rows": 1, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, + "shared_hit_blocks": 52, + "shared_read_blocks": 12, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1465, + "wal_bytes": 575, "wal_fpi": 0, - "wal_records": 21 + "wal_records": 8 }, "calls": 1, - "fingerprint": "20092052b41370072a97fe0735bedacb48b99db3bd00267723975013cb6e4aee", - "indexes": [ - "dcim_interface_pkey" - ], + "fingerprint": "e89816763ca6a9e380295812e114bf8c5957e04c8a1901c8a2a5829614ea5ebf", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -62616,94 +59146,56 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Update", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 896, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, + "Plan Width": 896, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 30, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 52, + "Shared Read Blocks": 12, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 1465, + "WAL Bytes": 575, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 8 }, "Triggers": [] }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" }, { "aggregate": { @@ -62714,9 +59206,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 4.78, + "planner_total_cost": 3.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -62726,7 +59218,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "24d57674e856185006ed36b4ed8527a503c8d4ea9662ad8fbf3d5ec632cf12ad", + "fingerprint": "e91040485f4f9ae782fa19d77b9db83850c3cbca973a2d85e86e1bd98793c4e4", "indexes": [], "node_types": { "ModifyTable": 1, @@ -62769,13 +59261,13 @@ "Relation Name": "extras_cachedvalue", "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -62784,13 +59276,13 @@ ], "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -62802,16 +59294,16 @@ }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 9, + "actual_rows_times_loops": 9, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 10.049999999999999, + "planner_rows": 9, + "planner_total_cost": 73.26, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -62820,14 +59312,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", - "indexes": [], + "calls": 9, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 5, - "Seq Scan": 5 + "Index Only Scan": 9, + "Limit": 9 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -62846,29 +59340,33 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -62879,10 +59377,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -62890,20 +59388,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_loops": 10, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 3, - "planner_total_cost": 21.32, + "planner_rows": 80, + "planner_total_cost": 405.29999999999995, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -62912,51 +59410,46 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "311666c6609515b436be56eba7277ead3dfec470e1ce5bfedde7397c8d94fd07", + "calls": 10, + "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", "indexes": [ - "dcim_device_name_c27913_idx" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 3, - "Plan Width": 1227, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -62964,218 +59457,317 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 3, - "Plan Width": 1227, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 3, - "Plan Width": 981, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 21.26, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 40.53, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 14, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 14, + "planner_total_cost": 112.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 112, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -63184,20 +59776,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], + "calls": 14, + "fingerprint": "ebe800ac343a48a675c36befa6f8bd7ad9b5c6874689db4ca18eea16aa6a0310", + "indexes": [], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Limit": 14, + "Seq Scan": 14 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -63207,37 +59797,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63245,13 +59832,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63259,20 +59846,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 30, - "actual_rows_times_loops": 30, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 30, - "planner_total_cost": 347.09999999999985, + "planner_rows": 2, + "planner_total_cost": 16.21, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 210, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -63281,73 +59868,89 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 30, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "ee34ba6058b289c34b295da44509bd422db15fc761d4bc41c62f6b86b4556be4", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Hash": 30, - "Hash Join": 30, - "Limit": 30, - "Seq Scan": 60 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.64, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63356,91 +59959,67 @@ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 16.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 16.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63448,117 +60027,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 5, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.949999999999996, + "planner_rows": 1, + "planner_total_cost": 29.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -63567,16 +60049,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "calls": 1, + "fingerprint": "f2a00f976e5f69992e82b118c695553090aca0e8fe7182ecf4f005efa338ef0b", "indexes": [ - "extras_subscription_unique_per_object_and_user" + "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 5, - "Sort": 5 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -63590,37 +60076,353 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 16, + "Plan Width": 1314, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1088, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 29.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63628,20 +60430,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "created DESC", - "user_id" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 8.18, + "Startup Cost": 29.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63649,20 +60455,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.29, + "planner_total_cost": 29.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -63672,237 +60478,364 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "4b16644b8edb223e66746e053be6329d3bab697a85c226956d0b151caedf144f", + "fingerprint": "f7c67f872dd953320fad7a638ef416b2315a0b5a751ef7e6ada66cbc5fc6de92", "indexes": [ - "dcim_interface_unique_parent_channel_id" + "dcim_consoleserverporttemplate_unique_module_type_name", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Only Scan": 1, - "Limit": 1, - "Result": 1 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 2, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "InitPlan", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Backward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.26, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.26, - "Subplan Name": "InitPlan 1", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5791eaab3c87483dee707c59b280a81d836b64e0babbde1432d2641f14e163ae", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, + "Plan Width": 1150, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 932, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 904, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 868, + "Relation Name": "dcim_consoleserverporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 27.64, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63911,13 +60844,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.16, + "Total Cost": 29.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63925,20 +60858,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" + "dcim_consoleserverporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 11.17, + "Startup Cost": 29.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.18, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -63946,20 +60883,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" }, { "aggregate": { - "actual_loops": 15, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 120, - "planner_total_cost": 595.95, + "planner_rows": 1, + "planner_total_cost": 29.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -63968,24 +60905,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 15, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "calls": 1, + "fingerprint": "f8ca762ffeab5ac78dc0ccddb5f56f319f1dcd34dfdbc48f5b63987a878ad6b3", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_frontporttemplate_unique_module_type_name", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Bitmap Heap Scan": 15, - "Bitmap Index Scan": 15, - "Hash": 15, - "Hash Join": 15, - "Index Scan": 30, - "Nested Loop": 30, - "Seq Scan": 15, - "Sort": 15 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -63998,8 +60931,8 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, @@ -64007,7 +60940,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -64015,8 +60949,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, @@ -64024,6 +60958,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -64032,159 +60967,230 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 1, + "Plan Width": 1180, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 970, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 962, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 934, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 26.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -64193,46 +61199,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T4", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 27.64, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -64241,46 +61243,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 29.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -64288,21 +61286,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 29.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -64310,20 +61311,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, + "planner_rows": 0, + "planner_total_cost": 3.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -64333,35 +61334,37 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", + "fingerprint": "fbcddf7bb5b1f788f986300970a2d78acfbf8abe11891e9d0029a33091f627bc", "indexes": [], "node_types": { - "Limit": 1, + "ModifyTable": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 189, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -64370,128 +61373,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 10, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 10, - "planner_total_cost": 81.4, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 10, - "Limit": 10 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -64499,53 +61406,52 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.12, + "planner_rows": 0, + "planner_total_cost": 32.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 136, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 5856, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 84 }, "calls": 4, - "fingerprint": "761ee19763539df632793b4962082a63bf204538423024055fc45495b06467b2", - "indexes": [ - "dcim_interface_pkey" - ], + "fingerprint": "fde43f0d411efede8be4967d949eaaa80144aa8d9d8d88c3a0b86e166b349db5", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 + "ModifyTable": 4, + "Seq Scan": 4 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, @@ -64553,186 +61459,694 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", + "Plan Width": 2003, "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 34, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.0, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1464, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 }, { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1292, - "wal_fpi": 0, - "wal_records": 16 - }, - "calls": 4, - "fingerprint": "7ac476970b2348d91b81cbe1ecd8fa5d3e96d4a39cb05eea975e20538ee26e26", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Result": 4 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "calls": 9, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 4 + }, + { + "calls": 9, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 8, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 24, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 18, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 18 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 5 + }, + { + "calls": 16, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 14, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 16, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 63, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 63 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 10 + }, + { + "calls": 9, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 5, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 8, + "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 301, + "actual_rows_per_work_unit": 38.0, + "actual_rows_times_loops": 190, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 301, + "planner_rows": 618, + "planner_total_cost": 4186.009999999999, + "planner_total_cost_per_work_unit": 837.2019999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1720, + "shared_hit_blocks_per_work_unit": 344.0, + "shared_read_blocks": 13, + "shared_written_blocks": 0, + "statement_calls": 333, + "statement_calls_per_work_unit": 66.6, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 23266, + "wal_fpi": 0, + "wal_records": 329, + "work_units": 5 + } + }, + "description": "Existing parent plus four channels rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 572.30267, + "p95_ms": 596.0159633, + "samples_ns": [ + 577984331, + 577810798, + 589037889, + 557252767, + 595981277, + 552741496, + 565470589, + 585527200, + 542446936, + 575161596, + 562846479, + 566716975, + 596096898, + 558647690, + 572302670 + ] + }, + "wall": { + "median_ms": 763.76116, + "p95_ms": 780.5311197000001, + "samples_ns": [ + 767080881, + 773277047, + 763761160, + 729997702, + 785600295, + 740510819, + 746490618, + 778358616, + 720794155, + 771520009, + 739128884, + 744483118, + 774794107, + 752399433, + 765146381 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 555.973158, + "p95_ms": 613.3104218999999, + "samples_ns": [ + 619681229, + 555973158, + 533581315 + ] + }, + "wall": { + "median_ms": 739.811632, + "p95_ms": 792.0176952999999, + "samples_ns": [ + 797818369, + 739811632, + 712558490 + ] + } + } + }, + "name": "module.complete_model_save.existing_family", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "et-0/0/3:1", + "et-0/0/3:2", + "et-0/0/3:3", + "et-0/0/3:4" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 49.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "0846ead0f89e191bc9f765b8353e3a3800c26852c72088f48f05de8e199b6fd5", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 323, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 18.15, + "planner_rows": 5, + "planner_total_cost": 26.75, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -64742,36 +62156,41 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8de796ea6c1b707c099273dafe72ad0a0120f905cd5d5951fd15ad57605937b1", - "indexes": [], + "fingerprint": "1f946cd00c528c6d3888d22ded02c3fe1eb58032fb896e01887e324f5b9a9fa9", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -64780,17 +62199,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -64798,8 +62216,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, + "Plan Rows": 5, + "Plan Width": 694, "Plans": [ { "Actual Loops": 1, @@ -64807,8 +62225,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -64817,7 +62235,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 829, + "Plan Width": 262, "Plans": [ { "Actual Loops": 1, @@ -64825,7 +62243,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -64835,158 +62253,37 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 640, + "Plan Width": 254, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.06, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -64994,8 +62291,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -65005,32 +62302,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.08, + "Total Cost": 9.3, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65039,7 +62336,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "T5", + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -65050,8 +62347,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, @@ -65066,15 +62363,15 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.1, + "Total Cost": 11.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65082,10 +62379,11 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -65093,76 +62391,172 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 5.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 11, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.12, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, + "Actual Loops": 5, "Actual Rows": 1.0, - "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Maximum Storage": 17, + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, + "Storage": "Memory", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 10.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.15, + "Total Cost": 26.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65170,13 +62564,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 26.73, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.15, + "Total Cost": 26.75, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65184,20 +62589,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.49, + "planner_rows": 0, + "planner_total_cost": 4.78, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -65207,246 +62612,29 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "90d608e7d84938007eeb8f7529e305a9c8fd8b07a46188af1873a9138c099763", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], + "fingerprint": "24d57674e856185006ed36b4ed8527a503c8d4ea9662ad8fbf3d5ec632cf12ad", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9411893adff0c553e236e22a59a76622f700318344845b2275bde44ea6435c89", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, @@ -65465,7 +62653,7 @@ "Plan Rows": 1, "Plan Width": 6, "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 0, @@ -65501,15 +62689,15 @@ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, + "planner_rows": 1, + "planner_total_cost": 2.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -65519,71 +62707,106 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9848f4db3cda0cd62e84e47bf96750eb8bbb5ada50a5ed44edd46f32aa073004", + "fingerprint": "27bd86446c5cf0800909c1ec902fa21fd9fd243ecc1ca24d0d3cbc013792074c", "indexes": [], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Aggregate", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, + "Plan Width": 75, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 75, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 2.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 2.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 2.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 2.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65591,20 +62814,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { - "actual_loops": 5, + "actual_loops": 10, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 40, - "planner_total_cost": 71.85, + "planner_rows": 10, + "planner_total_cost": 130.9, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 130, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -65613,76 +62836,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], + "calls": 10, + "fingerprint": "27eafbd00a02385c688edaca88fd3a010ebd552675d0bcae07df06e1d63dc549", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 5, - "Bitmap Index Scan": 5 + "Limit": 10, + "Seq Scan": 10 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, + "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 13.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 13.09, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65690,20 +62906,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 5, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, + "planner_rows": 5, + "planner_total_cost": 10.049999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -65712,38 +62928,36 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "a7f8af528dabb822f0393a1382e9af345d8f4ea8074b8ff4c01820127c091560", + "calls": 5, + "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", "indexes": [], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Limit": 5, + "Seq Scan": 5 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -65752,32 +62966,31 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", + "Plan Width": 4, + "Relation Name": "dcim_module", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65785,20 +62998,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_rows": 4, + "planner_total_cost": 49.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -65807,14 +63020,17 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", - "indexes": [], + "calls": 4, + "fingerprint": "29dbf86808692e112b04633431f157b92ccb236ecb199d537378cb7ac2a8bf1d", + "indexes": [ + "dcim_interface_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -65828,34 +63044,68 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 981, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Exact Heap Blocks": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65866,10 +63116,10 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65877,20 +63127,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, + "planner_rows": 3, + "planner_total_cost": 21.32, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -65900,71 +63150,157 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b07515b1fe6b7bb479b88f539607863996330941d3c0a1c2b285f0b238969826", - "indexes": [], + "fingerprint": "311666c6609515b436be56eba7277ead3dfec470e1ce5bfedde7397c8d94fd07", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "ModifyTable": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, "Seq Scan": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 3, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, + "Plan Rows": 3, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 3, + "Plan Width": 981, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 21.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 21.26, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.78, + "Total Cost": 21.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -65972,7 +63308,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" }, { "aggregate": { @@ -65983,9 +63319,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.31, + "planner_total_cost": 10.18, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -65995,14 +63331,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b6c2663b9f6e35dba9b11f2ad2906e3ff83e265ed01bc9f3ed0a739b8c619575", - "indexes": [], + "fingerprint": "34ade45165f859b900607b0e12ff6b568c9d187974bbbfccad45ed197fbe7de3", + "indexes": [ + "dcim_moduletype_pkey" + ], "node_types": { - "Aggregate": 1, + "Index Scan": 1, + "Nested Loop": 1, "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -66013,26 +63352,28 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Sort", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 32, + "Plan Width": 118, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 75, + "Plan Width": 118, "Plans": [ { "Actual Loops": 1, @@ -66049,37 +63390,64 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 75, + "Plan Width": 98, "Relation Name": "netbox_interface_name_rules_interfacenamerule", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.02, + "Total Cost": 10.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66087,14 +63455,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 3.3, - "Strategy": "Plain", + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 10.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.31, + "Total Cost": 10.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66102,112 +63476,111 @@ }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 10.049999999999999, + "planner_rows": 0, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 319, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, - "calls": 5, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", + "calls": 1, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", "indexes": [], "node_types": { - "Limit": 5, - "Seq Scan": 5 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 319, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, + "actual_loops": 5, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 5, - "planner_total_cost": 21.41, + "planner_total_cost": 40.949999999999996, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -66216,158 +63589,81 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "c1c1f3e867d042c288661eeb857e7d733b3fad634fd3e7baf3f564a249d39a55", + "calls": 5, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", "indexes": [ - "dcim_device_name_c27913_idx" + "extras_subscription_unique_per_object_and_user" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "Index Scan": 5, + "Sort": 5 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 1227, + "Plan Rows": 1, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 0.0, + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 981, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.27, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "created DESC", + "user_id" ], - "Startup Cost": 21.32, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.41, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66375,20 +63671,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 15, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.16, + "planner_rows": 120, + "planner_total_cost": 607.9499999999998, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -66397,17 +63693,24 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "c34dcc7ad1be5e812ab7c578f70cae35a117d6250b4f815eeb1ee6968da07bed", + "calls": 15, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ - "dcim_interface_unique_parent_channel_id" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 + "Bitmap Heap Scan": 15, + "Bitmap Index Scan": 15, + "Hash": 15, + "Hash Join": 15, + "Index Scan": 30, + "Nested Loop": 30, + "Seq Scan": 15, + "Sort": 15 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -66418,87 +63721,313 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, - "Filter": "(id <> ?)", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "((parent_id = ?) AND (channel_id = ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 40.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.29, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66506,53 +64035,55 @@ }, "Triggers": [] }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.12, + "planner_rows": 0, + "planner_total_cost": 49.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 128, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 5868, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 84 }, "calls": 4, - "fingerprint": "d60225a64cb8335877e0c2eb1f8a8512f0bc03ff8e847ec93ca17f6b1d2c5508", + "fingerprint": "4fd9b0fdcd1a268f96b45fa79f8f574e62765c1d2a65e0c3d3eb4b2d7694c07c", "indexes": [ "dcim_interface_pkey" ], "node_types": { "Bitmap Heap Scan": 4, "Bitmap Index Scan": 4, - "Limit": 4 + "ModifyTable": 4 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 981, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, @@ -66570,7 +64101,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 981, + "Plan Width": 2003, "Plans": [ { "Actual Loops": 1, @@ -66596,7 +64127,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.27, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66610,32 +64141,33 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 32, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1467, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" }, { "aggregate": { @@ -66646,7 +64178,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 8, - "planner_total_cost": 65.96, + "planner_total_cost": 81.96, "shared_dirtied_blocks": 0, "shared_hit_blocks": 20, "shared_read_blocks": 0, @@ -66658,7 +64190,7 @@ "wal_records": 0 }, "calls": 4, - "fingerprint": "dc68cc397cbb3d07d875dbc3c8d17beade82d9721286337073243e79d91934bd", + "fingerprint": "52f08049c38bc4a112bb28e4c30bd89426cc5a391f67a4df95b61fdcfe643e57", "indexes": [ "dcim_device_name_c27913_idx", "dcim_interface_pkey" @@ -66789,7 +64321,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.27, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66803,10 +64335,10 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66818,10 +64350,10 @@ "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.39, + "Startup Cost": 8.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 20.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66841,10 +64373,10 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.44, + "Startup Cost": 20.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.49, + "Total Cost": 20.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66863,9 +64395,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 5, - "planner_total_cost": 40.7, + "planner_total_cost": 15.049999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -66875,15 +64407,13 @@ "wal_records": 0 }, "calls": 5, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "indexes": [], "node_types": { - "Index Only Scan": 5, - "Limit": 5 + "Limit": 5, + "Seq Scan": 5 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -66902,33 +64432,29 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66936,13 +64462,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -66950,20 +64476,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 10.049999999999999, + "planner_rows": 4, + "planner_total_cost": 49.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -66972,18 +64498,21 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", - "indexes": [], + "calls": 4, + "fingerprint": "6632a94307bbcfbd0b0f0d86652e34ee319a35469d94262f6af87434d9d59de6", + "indexes": [ + "dcim_interface_unique_parent_channel_id" + ], "node_types": { - "Limit": 5, - "Seq Scan": 5 + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -66997,30 +64526,66 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Exact Heap Blocks": 1, + "Filter": "(id <> ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((parent_id = ?) AND (channel_id = ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67028,13 +64593,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.01, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67042,346 +64607,38 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 66.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 25, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 5, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 15, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 10, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 10 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 5 - }, - { - "calls": 16, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 10, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 16, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 30, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 30 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 148, - "actual_rows_per_work_unit": 20.2, - "actual_rows_times_loops": 101, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 148, - "planner_rows": 288, - "planner_total_cost": 1766.3299999999995, - "planner_total_cost_per_work_unit": 353.2659999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 706, - "shared_hit_blocks_per_work_unit": 141.2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 180, - "statement_calls_per_work_unit": 36.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 8944, - "wal_fpi": 0, - "wal_records": 125, - "work_units": 5 - } - }, - "description": "Existing parent plus four channels rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 5, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 355.06779, - "p95_ms": 374.4911956, - "samples_ns": [ - 374400199, - 361976158, - 372367363, - 347571998, - 361578332, - 355067790, - 343955309, - 350905882, - 352819289, - 348743805, - 364904769, - 374703521, - 327753100, - 340526295, - 372696696 - ] - }, - "wall": { - "median_ms": 460.578018, - "p95_ms": 492.98233369999997, - "samples_ns": [ - 496363522, - 484420339, - 491533253, - 451914166, - 467038823, - 460578018, - 444361625, - 452533750, - 458413743, - 454024390, - 479787333, - 491119893, - 433349512, - 443991498, - 489240174 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 398.054239, - "p95_ms": 423.5860933, - "samples_ns": [ - 385662806, - 426422966, - 398054239 - ] - }, - "wall": { - "median_ms": 519.327591, - "p95_ms": 557.4672654, - "samples_ns": [ - 516148167, - 561705007, - 519327591 - ] - } - } - }, - "name": "module.direct_callback.existing_family", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "et-0/0/3:1", - "et-0/0/3:2", - "et-0/0/3:3", - "et-0/0/3:4" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 100.08000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 63, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 9, - "Nested Loop": 9, - "Seq Scan": 18 + "Index Scan": 5, + "Limit": 5, + "Nested Loop": 5, + "Seq Scan": 5 }, "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { @@ -67422,26 +64679,29 @@ "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 154, "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.05, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67466,13 +64726,13 @@ "Relation Name": "django_content_type", "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.06, + "Total Cost": 5.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67480,13 +64740,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67494,13 +64754,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67513,15 +64773,15 @@ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 31.68, + "planner_total_cost": 2.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -67531,379 +64791,151 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0557709e2d8b3849ddb158031de17a5a720f8cdc33be4bc28e7cea2772c75230", + "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + }, + { + "aggregate": { + "actual_loops": 10, + "actual_rows_times_loops": 10, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 10, + "planner_total_cost": 81.4, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 20, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 10, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Index Scan": 10, + "Limit": 10 }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1314, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1306, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1096, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1060, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.67, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67911,24 +64943,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.68, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -67936,119 +64957,111 @@ }, "Triggers": [] }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 3, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.6, + "planner_rows": 0, + "planner_total_cost": 0.03, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 969, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 12 }, - "calls": 4, - "fingerprint": "0de296f6069a7728e0c818ffdc0d0708cc2bf33c222de22b5e36701e0804c26a", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], + "calls": 3, + "fingerprint": "7ac476970b2348d91b81cbe1ecd8fa5d3e96d4a39cb05eea975e20538ee26e26", + "indexes": [], "node_types": { - "Index Scan": 4, - "Limit": 4 + "ModifyTable": 3, + "Result": 3 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 323, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_loops": 30, + "actual_rows_times_loops": 30, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 284.16, + "planner_rows": 30, + "planner_total_cost": 411.90000000000015, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 150, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -68057,53 +65070,39 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", + "calls": 30, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", "indexes": [ - "dcim_interface_vdcs_interface_id_6d58dbaf", - "dcim_virtua_name_079d4d_idx" + "core_objecttype_pkey" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Incremental Sort": 4, - "Index Scan": 4, - "Materialize": 4, - "Nested Loop": 4 + "Index Scan": 30, + "Limit": 30, + "Nested Loop": 30, + "Seq Scan": 30 }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 154, + "Plan Rows": 1, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -68112,166 +65111,97 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 154, + "Plan Rows": 1, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_virtualdevicecontext", + "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_virtua_name_079d4d_idx", - "Index Searches": 1, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 90, - "Plan Width": 154, - "Relation Name": "dcim_virtualdevicecontext", - "Scan Direction": "Forward", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 45.49, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Materialize", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_vdcs", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_vdcs", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.41, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.36, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 70.68, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_virtualdevicecontext.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_virtualdevicecontext.name COLLATE natural_sort", - "dcim_virtualdevicecontext.id" - ], - "Startup Cost": 12.66, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 71.04, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -68279,20 +65209,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.36, + "planner_rows": 1, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -68301,20 +65231,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", + "calls": 1, + "fingerprint": "88a2149f6d5e45820cb29f3a306d79cd41b6b2372d5c29b084701832104f59d8", "indexes": [ - "dcim_cabletermination_unique_termination" + "dcim_devicetype_pkey" ], "node_types": { - "Index Only Scan": 8, - "Limit": 8 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -68324,38 +65254,37 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", + "Plan Width": 707, + "Relation Name": "dcim_devicetype", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -68363,13 +65292,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -68377,99 +65306,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 0.07, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 136, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 7365, - "wal_fpi": 0, - "wal_records": 105 - }, - "calls": 1, - "fingerprint": "1175acc2976b3d9dd6977b36d72332ebefee97c38f16ec3616b0eadd99d38a6f", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Values Scan": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "*VALUES*", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Values Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 136, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 7365, - "WAL FPI": 0, - "WAL Records": 105 - }, - "Triggers": [] - }, - "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { @@ -68480,9 +65317,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.16, + "planner_total_cost": 18.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -68492,15 +65329,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "130a9c68e430a3cd6fd9977034ac17749d4ecf787ecccbeca066a016bbe92006", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], + "fingerprint": "8de796ea6c1b707c099273dafe72ad0a0120f905cd5d5951fd15ad57605937b1", + "indexes": [], "node_types": { - "Aggregate": 1, - "Index Scan": 1 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -68511,224 +65347,19 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(channel_id > ?)", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 31, - "shared_read_blocks": 1, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1800, - "wal_fpi": 0, - "wal_records": 24 - }, - "calls": 1, - "fingerprint": "13654a06bacfac254fb06750f6d8a093129072cbc1c4c861af5e55c39289c486", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 2, - "Shared Hit Blocks": 31, - "Shared Read Blocks": 1, - "Shared Written Blocks": 1, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 1800, - "WAL FPI": 0, - "WAL Records": 24 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "13edc9d8b03c8192c752b0990ddec8628a0f89986aad094104f550b8ceee862b", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -68737,15 +65368,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1454, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -68755,15 +65386,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1446, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -68773,15 +65404,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1236, + "Plan Width": 829, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -68791,15 +65422,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1228, + "Plan Width": 640, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -68808,37 +65440,96 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1200, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 5.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -68846,103 +65537,96 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", + "Actual Rows": 1.0, + "Alias": "T3", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 7.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.46, + "Total Cost": 10.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -68953,40 +65637,40 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 2.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.48, + "Total Cost": 12.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -68996,41 +65680,41 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 28.64, + "Total Cost": 15.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -69041,10 +65725,10 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -69057,15 +65741,15 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.66, + "Total Cost": 18.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -69073,24 +65757,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.67, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.68, + "Total Cost": 18.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -69098,7 +65771,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -69109,9 +65782,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 5.97, + "planner_total_cost": 4.78, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -69121,7 +65794,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "170089e639b60f660b823122e1dcd9f0ed100696c3c405ba66841e9a0a449e1e", + "fingerprint": "9411893adff0c553e236e22a59a76622f700318344845b2275bde44ea6435c89", "indexes": [], "node_types": { "ModifyTable": 1, @@ -69164,13 +65837,13 @@ "Relation Name": "extras_cachedvalue", "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 4.78, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -69179,13 +65852,13 @@ ], "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 4.78, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -69203,8 +65876,8 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 25.53, + "planner_rows": 0, + "planner_total_cost": 4.78, "shared_dirtied_blocks": 0, "shared_hit_blocks": 4, "shared_read_blocks": 0, @@ -69216,400 +65889,71 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "17a433a868fc1c1bf882caf0745e1cee53b5bf6e987536bd207cb9a0357071bc", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], + "fingerprint": "9848f4db3cda0cd62e84e47bf96750eb8bbb5ada50a5ed44edd46f32aa073004", + "indexes": [], "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 333, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 123, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 115, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.34, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.5, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.52, + "Total Cost": 4.78, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 25.53, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.53, + "Total Cost": 4.78, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -69617,20 +65961,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, + "planner_rows": 4, + "planner_total_cost": 32.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -69639,72 +65983,75 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "1eef6a7f7b66b50b828eac092308401ecf0ecd7ac3e9f0f35bd8c2f5b2ca9077", - "indexes": [], + "calls": 4, + "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", + "indexes": [ + "dcim_cabletermination_unique_termination" + ], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Index Only Scan": 4, + "Limit": 4 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_cabletermination", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -69712,20 +66059,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.08, + "planner_rows": 1, + "planner_total_cost": 12.29, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -69734,16 +66081,17 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "1f3b36d8d13681dd41fb47eee39756eb8ee878347d2e444d42f6e225c1e0ae83", + "calls": 1, + "fingerprint": "9f6d1c068ddcacef5e49e9dc4abff6ba7a8d5691ad921b40085ec7b33cdd60c3", "indexes": [ - "dcim_interface_pkey" + "dcim_interface_unique_parent_channel_id" ], "node_types": { - "Index Only Scan": 4, - "Limit": 4 + "Index Only Scan": 1, + "Limit": 1, + "Result": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", "plan": { "Plan": { "Actual Loops": 1, @@ -69754,55 +66102,180 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Result", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 2, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Limit", + "Parallel Aware": false, + "Parent Relationship": "InitPlan", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Backward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.26, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.26, + "Subplan Name": "InitPlan 1", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 12.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.78, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a7f8af528dabb822f0393a1382e9af345d8f4ea8074b8ff4c01820127c091560", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 4.78, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 4.78, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -69810,7 +66283,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -69821,9 +66294,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 18.11, + "planner_total_cost": 3.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -69833,14 +66306,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "2302d9b2f2d3af41c0a2c7ebb80cc28133e199b56139a0b449b04c5be391f327", + "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", "indexes": [], "node_types": { "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -69854,464 +66326,317 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 3200, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3200, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 4.78, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "b07515b1fe6b7bb479b88f539607863996330941d3c0a1c2b285f0b238969826", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Seq Scan": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.78, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 12.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 30, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1465, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "ba45dd9e6f9094cb75ab2c4de61d51391db0e253d8495b359e55a08627cd1652", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3069, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2938, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2046, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1915, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.11, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 30, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.11, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1465, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 33.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 156, - "shared_read_blocks": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 3, + "shared_hit_blocks": 9, + "shared_read_blocks": 4, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 6020, + "wal_bytes": 4030, "wal_fpi": 0, - "wal_records": 88 + "wal_records": 6 }, - "calls": 4, - "fingerprint": "2ad63997c549a7fa9f09dbedec8f942933ec1aa124890a9a844a7568e3a5a8c3", - "indexes": [ - "dcim_interface_pkey" - ], + "calls": 1, + "fingerprint": "c10b95c39c4fd8945590f3ef4a181604d4134212561bfec7742356c3c331aecf", + "indexes": [], "node_types": { - "Index Scan": 4, - "ModifyTable": 4 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -70319,7 +66644,7 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Update", + "Operation": "Insert", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, @@ -70327,160 +66652,61 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 39, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1505, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 18.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", - "indexes": [], - "node_types": { - "Limit": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.0, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 3, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 4, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.0, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 4030, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 6 }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.54, + "planner_rows": 5, + "planner_total_cost": 21.41, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -70489,24 +66715,22 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "332b5fd54c25ed756e674b40b64846fd49d3fd970c88bdbb8a8ee2e58057733d", + "calls": 1, + "fingerprint": "c1c1f3e867d042c288661eeb857e7d733b3fad634fd3e7baf3f564a249d39a55", "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_device_name_c27913_idx" ], "node_types": { - "Incremental Sort": 2, - "Index Only Scan": 2, - "Index Scan": 4, - "Nested Loop": 4 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -70515,8 +66739,8 @@ "quicksort" ], "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 } }, "Local Dirtied Blocks": 0, @@ -70525,12 +66749,12 @@ "Local Written Blocks": 0, "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, + "Plan Rows": 5, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -70543,8 +66767,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, + "Plan Rows": 5, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, @@ -70552,7 +66776,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -70567,7 +66791,7 @@ "Relation Name": "dcim_device", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -70581,98 +66805,30 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", + "Filter": "(module_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 5, + "Plan Width": 981, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.56, + "Total Cost": 13.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -70681,13 +66837,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.72, + "Total Cost": 21.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -70699,7 +66855,7 @@ "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -70707,10 +66863,10 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 24.73, + "Startup Cost": 21.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.77, + "Total Cost": 21.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -70718,18 +66874,115 @@ }, "Triggers": [] }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_total_cost": 20.49, "shared_dirtied_blocks": 0, "shared_hit_blocks": 5, "shared_read_blocks": 0, @@ -70741,22 +66994,23 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "34a8f832c2911950ab3a2024a0b9c7b0bcdb877877e0d20de97ce9697bd64f17", + "fingerprint": "c986143e5ce7cb71fdb11f65b496478e0ab8134146f7b417389eb7d105d4b1dd", "indexes": [ "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" + "dcim_interface_pkey" ], "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, "Incremental Sort": 1, "Index Only Scan": 1, - "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -70776,14 +67030,15 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1041, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -70793,7 +67048,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, @@ -70801,8 +67056,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -70815,10 +67069,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -70832,47 +67085,79 @@ }, { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, + "Exact Heap Blocks": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 8.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 20.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -70880,7 +67165,8 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, @@ -70888,12 +67174,13 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 20.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 20.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -70901,20 +67188,119 @@ }, "Triggers": [] }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 5, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 40, + "planner_total_cost": 71.85, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], + "node_types": { + "Bitmap Heap Scan": 5, + "Bitmap Index Scan": 5 + }, + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 24, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 5, "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 5, - "planner_total_cost": 29.75, + "planner_total_cost": 15.049999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -70923,95 +67309,597 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "36eb3f3d3369a6cdf593087fcc6577273b7d8d8cf4a9bf642aa7ad41e7918300", + "calls": 5, + "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", + "indexes": [], + "node_types": { + "Limit": 5, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + }, + { + "aggregate": { + "actual_loops": 5, + "actual_rows_times_loops": 5, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 40.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 10, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 5, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "Index Only Scan": 5, + "Limit": 5 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 5, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 15, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 10, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 10 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 5, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 5 + }, + { + "calls": 16, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 10, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 16, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 30, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 30 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 148, + "actual_rows_per_work_unit": 20.2, + "actual_rows_times_loops": 101, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 148, + "planner_rows": 288, + "planner_total_cost": 2001.68, + "planner_total_cost_per_work_unit": 400.336, + "shared_dirtied_blocks": 3, + "shared_hit_blocks": 769, + "shared_hit_blocks_per_work_unit": 153.8, + "shared_read_blocks": 4, + "shared_written_blocks": 0, + "statement_calls": 180, + "statement_calls_per_work_unit": 36.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 12651, + "wal_fpi": 0, + "wal_records": 127, + "work_units": 5 + } + }, + "description": "Existing parent plus four channels rename", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 5, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 368.633294, + "p95_ms": 398.4531558, + "samples_ns": [ + 365480167, + 368770519, + 338799475, + 372606590, + 357888947, + 371790248, + 405582562, + 374659436, + 347397255, + 339363738, + 342451041, + 357032161, + 368633294, + 395378086, + 395397696 + ] + }, + "wall": { + "median_ms": 469.16973, + "p95_ms": 512.3222351, + "samples_ns": [ + 469037806, + 476231992, + 447711068, + 477711813, + 457186942, + 469169730, + 524290196, + 485720289, + 459963921, + 449548144, + 450828672, + 466702594, + 485647014, + 505894175, + 507193109 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 354.663245, + "p95_ms": 369.5370329, + "samples_ns": [ + 352455367, + 371189676, + 354663245 + ] + }, + "wall": { + "median_ms": 468.622032, + "p95_ms": 484.324413, + "samples_ns": [ + 468622032, + 486069122, + 462674130 + ] + } + } + }, + "name": "module.direct_callback.existing_family", + "semantic_result": { + "interface_names": [ + "et-0/0/3", + "et-0/0/3:1", + "et-0/0/3:2", + "et-0/0/3:3", + "et-0/0/3:4" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0557709e2d8b3849ddb158031de17a5a720f8cdc33be4bc28e7cea2772c75230", + "indexes": [ + "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1314, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1306, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1096, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -71021,90 +67909,158 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 254, + "Plan Width": 1088, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 1060, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflowtemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1024, + "Relation Name": "dcim_coolingoutflowtemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.3, + "Total Cost": 24.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -71118,7 +68074,7 @@ "Plan Width": 24, "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -71133,25 +68089,24 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.32, + "Total Cost": 27.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -71159,172 +68114,76 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.06, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.43, + "Total Cost": 28.64, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 5, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.17, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 5, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 31.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -71332,7 +68191,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -71341,15 +68200,15 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_coolingoutflowtemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.73, + "Startup Cost": 31.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.75, + "Total Cost": 31.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -71357,200 +68216,302 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 3, + "actual_rows_times_loops": 3, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, + "planner_rows": 6, + "planner_total_cost": 49.050000000000004, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 319, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], + "calls": 3, + "fingerprint": "0c3501db398afff033af0790c219ebc5f747ddeb3e409e5beed9f54515cc5953", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Incremental Sort": 3, + "Index Only Scan": 3, + "Index Scan": 3, + "Nested Loop": 3 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 16.35, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 7, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.07, + "planner_rows": 4, + "planner_total_cost": 32.6, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 42, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 2205, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 28 + "wal_records": 0 }, - "calls": 7, - "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", - "indexes": [], + "calls": 4, + "fingerprint": "0de296f6069a7728e0c818ffdc0d0708cc2bf33c222de22b5e36701e0804c26a", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], "node_types": { - "ModifyTable": 7, - "Result": 7 + "Index Scan": 4, + "Limit": 4 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.15, "WAL Buffers Full": 0, - "WAL Bytes": 315, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, + "planner_rows": 32, + "planner_total_cost": 284.16, "shared_dirtied_blocks": 0, "shared_hit_blocks": 4, "shared_read_blocks": 0, @@ -71561,34 +68522,45 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "3cea1be9e5aa6d886c08bf6caf1a479a3b93cdc6c5e23af232ba84bf1e4de72a", + "calls": 4, + "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" + "dcim_interface_vdcs_interface_id_6d58dbaf", + "dcim_virtua_name_079d4d_idx" ], "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Incremental Sort": 4, + "Index Scan": 4, + "Materialize": 4, + "Nested Loop": 4 }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, + "Plan Rows": 8, + "Plan Width": 154, "Plans": [ { "Actual Loops": 1, @@ -71596,7 +68568,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -71605,44 +68577,478 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, + "Plan Rows": 8, + "Plan Width": 154, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_virtualdevicecontext", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Index Name": "dcim_virtua_name_079d4d_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, + "Plan Rows": 90, + "Plan Width": 154, + "Relation Name": "dcim_virtualdevicecontext", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 45.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_vdcs", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_vdcs", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.36, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 70.68, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_virtualdevicecontext.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_virtualdevicecontext.name COLLATE natural_sort", + "dcim_virtualdevicecontext.id" + ], + "Startup Cost": 12.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 71.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 16.54, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 68, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 3108, + "wal_fpi": 0, + "wal_records": 44 + }, + "calls": 2, + "fingerprint": "102f70b3f9b69a3adcb85abe2226f65dad2107a4252ac4164b746297d72de8b7", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 2, + "ModifyTable": 2 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 34, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1554, + "WAL FPI": 0, + "WAL Records": 22 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "130a9c68e430a3cd6fd9977034ac17749d4ecf787ecccbeca066a016bbe92006", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], + "node_types": { + "Aggregate": 1, + "Index Scan": 1 + }, + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(channel_id > ?)", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 31.68, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "13edc9d8b03c8192c752b0990ddec8628a0f89986aad094104f550b8ceee862b", + "indexes": [ + "dcim_coolingintaketemplate_module_type_id_b734e68e", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" + ], + "node_types": { + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1454, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1446, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1236, "Plans": [ { "Actual Loops": 1, @@ -71650,7 +69056,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -71660,7 +69066,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 932, + "Plan Width": 1228, "Plans": [ { "Actual Loops": 1, @@ -71677,7 +69083,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 904, + "Plan Width": 1200, "Plans": [ { "Actual Loops": 1, @@ -71716,11 +69122,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", + "Alias": "dcim_coolingintaketemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", + "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -71730,8 +69136,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", + "Plan Width": 1164, + "Relation Name": "dcim_coolingintaketemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -71846,7 +69252,7 @@ "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.49, + "Total Cost": 27.48, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -71934,7 +69340,7 @@ "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.67, + "Total Cost": 31.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -71951,12 +69357,12 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" + "dcim_coolingintaketemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 31.68, + "Startup Cost": 31.67, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 31.68, @@ -71967,20 +69373,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" + "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 0, + "planner_total_cost": 5.97, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -71990,73 +69396,71 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], + "fingerprint": "170089e639b60f660b823122e1dcd9f0ed100696c3c405ba66841e9a0a449e1e", + "indexes": [], "node_types": { - "Index Scan": 1, - "Limit": 1 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -72064,7 +69468,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -72074,97 +69478,421 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, + "planner_rows": 1, + "planner_total_cost": 25.53, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 0 }, "calls": 1, - "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", + "fingerprint": "17a433a868fc1c1bf882caf0745e1cee53b5bf6e987536bd207cb9a0357071bc", "indexes": [ - "dcim_moduletype_pkey" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Index Scan": 2, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 341, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 341, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 333, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 123, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 115, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_modulebaytemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 51, + "Relation Name": "dcim_modulebaytemplate", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.34, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.5, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 25.52, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_modulebaytemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 25.53, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 25.53, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" + "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" }, { "aggregate": { @@ -72187,7 +69915,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "421f594faa0731f74fbb4a6851605c6c9d972471047d1c09f1cbd9fd54ea4d36", + "fingerprint": "1eef6a7f7b66b50b828eac092308401ecf0ecd7ac3e9f0f35bd8c2f5b2ca9077", "indexes": [], "node_types": { "ModifyTable": 1, @@ -72228,7 +69956,7 @@ "Plan Rows": 1, "Plan Width": 6, "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, + "Rows Removed by Filter": 2, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, @@ -72263,16 +69991,16 @@ }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.31, + "planner_rows": 4, + "planner_total_cost": 33.08, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -72281,15 +70009,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", - "indexes": [], + "calls": 4, + "fingerprint": "1f3b36d8d13681dd41fb47eee39756eb8ee878347d2e444d42f6e225c1e0ae83", + "indexes": [ + "dcim_interface_pkey" + ], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Index Only Scan": 4, + "Limit": 4 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -72300,73 +70029,41 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 32, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 98, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.02, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -72377,11 +70074,10 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 3.3, - "Strategy": "Plain", + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.31, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -72389,20 +70085,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 24.77, + "planner_rows": 1, + "planner_total_cost": 18.11, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -72412,47 +70108,512 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "4459502543f48c38817e6fc567f67e3a24796f336ba4bc0908836b987611d30f", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], + "fingerprint": "2302d9b2f2d3af41c0a2c7ebb80cc28133e199b56139a0b449b04c5be391f327", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 2, - "Nested Loop": 2 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, + "Plan Rows": 1, + "Plan Width": 3200, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3200, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3069, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2938, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2046, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1915, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 15, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 15.09, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.11, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 24.77, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 9, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "246ce0d51bba2b3eaa8fc460e2a2ff98c5c0aa20732c79fe900b7f0e666525e9", + "indexes": [ + "dcim_cable_pkey", + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 2, + "Nested Loop": 2 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 3531, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -72474,7 +70635,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -72489,7 +70650,7 @@ "Relation Name": "dcim_device", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -72603,7 +70764,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -72621,7 +70782,7 @@ "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -72644,16 +70805,16 @@ }, { "aggregate": { - "actual_loops": 83, - "actual_rows_times_loops": 83, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 83, - "planner_total_cost": 960.3100000000017, + "planner_rows": 1, + "planner_total_cost": 11.18, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 581, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -72662,16 +70823,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 83, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "258d7240a18c19ddd4eccc28989e74afa286047daa4df47cbac2302556d0f23f", + "indexes": [ + "dcim_moduletype_pkey" + ], "node_types": { - "Hash": 83, - "Hash Join": 83, - "Limit": 83, - "Seq Scan": 166 + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -72682,35 +70845,36 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 141, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 141, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -72718,17 +70882,18 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", + "Plan Rows": 1, + "Plan Width": 121, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.64, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -72737,77 +70902,45 @@ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 11.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -72815,13 +70948,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 11.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 11.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -72829,61 +70969,63 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 3, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, + "planner_rows": 0, + "planner_total_cost": 24.81, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 117, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 4515, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 66 }, - "calls": 2, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "calls": 3, + "fingerprint": "2ad63997c549a7fa9f09dbedec8f942933ec1aa124890a9a844a7568e3a5a8c3", "indexes": [ - "dcim_moduletype_pkey" + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 2, - "Limit": 2 + "Index Scan": 3, + "ModifyTable": 3 }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", + "Index Name": "dcim_interface_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -72893,53 +71035,54 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", + "Plan Width": 2003, + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 39, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1505, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 22 }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 9, + "actual_rows_times_loops": 9, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.18, + "planner_rows": 9, + "planner_total_cost": 18.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -72948,18 +71091,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "45bf8d6c0ee76807d0df879c6c274fccec89426f89da8a8588953b733c889a9a", - "indexes": [ - "dcim_moduletype_pkey" - ], + "calls": 9, + "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", + "indexes": [], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Limit": 9, + "Seq Scan": 9 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -72970,102 +71109,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 141, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 141, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 121, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.16, + "Total Cost": 2.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -73073,20 +71147,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 11.17, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.18, + "Total Cost": 2.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -73094,21 +71161,21 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 137.8, + "planner_rows": 8, + "planner_total_cost": 34.45, "shared_dirtied_blocks": 0, "shared_hit_blocks": 0, - "shared_read_blocks": 0, + "shared_read_blocks": 1, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, @@ -73116,22 +71183,22 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "45d5d2ed9d0ad1d23c9b95d52ec2e7b5b9237af2c643d322e9fd77ef60343dc9", + "calls": 1, + "fingerprint": "32e707da707ecb159da849aa02f3b501151d2acee14824870ab6d565a3ebf15b", "indexes": [ "dcim_interface_tagged_vlans_interface_id_5870c9e9", "ipam_vlangroup_pkey" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Hash": 4, - "Hash Join": 4, - "Index Scan": 4, - "Materialize": 4, - "Nested Loop": 8, - "Seq Scan": 8, - "Sort": 4 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Hash": 1, + "Hash Join": 1, + "Index Scan": 1, + "Materialize": 1, + "Nested Loop": 2, + "Seq Scan": 2, + "Sort": 1 }, "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", "plan": { @@ -73220,7 +71287,7 @@ "Relation Name": "ipam_vlan", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, @@ -73328,7 +71395,7 @@ ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 14.47, "Temp Read Blocks": 0, @@ -73401,7 +71468,7 @@ "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 14.47, "Temp Read Blocks": 0, @@ -73449,7 +71516,7 @@ ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Startup Cost": 14.61, "Temp Read Blocks": 0, @@ -73463,7 +71530,7 @@ ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, "Sort Key": [ "dcim_site.name COLLATE natural_sort", @@ -73490,16 +71557,16 @@ }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.7, + "planner_rows": 5, + "planner_total_cost": 29.75, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -73508,52 +71575,43 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "48cabb300aea102df938a4632d5ab9692f4467a1cc8bc25922ca15793bb45743", + "calls": 1, + "fingerprint": "36eb3f3d3369a6cdf593087fcc6577273b7d8d8cf4a9bf642aa7ad41e7918300", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Incremental Sort": 2, - "Index Only Scan": 2, "Index Scan": 2, - "Nested Loop": 2 + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -73561,109 +71619,389 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 18.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, + "Actual Loops": 5, "Actual Rows": 1.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Maximum Storage": 17, + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Scan Direction": "Forward", + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, + "Storage": "Memory", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 11.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" ], - "Startup Cost": 16.3, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.73, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 29.75, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -73671,210 +72009,189 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { - "actual_loops": 13, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 13, - "planner_total_cost": 106.46999999999998, + "planner_rows": 0, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 26, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 319, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, - "calls": 13, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], + "calls": 1, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], "node_types": { - "Index Scan": 13, - "Sort": 13 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 319, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 8, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.6, + "planner_rows": 0, + "planner_total_cost": 0.08, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 2520, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 32 }, - "calls": 4, - "fingerprint": "4abb0442e2c8e75f799e2ff4277b53c8ed7a46e038b9bed2d16fd68ce8d1f9ae", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], + "calls": 8, + "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", + "indexes": [], "node_types": { - "Index Scan": 4, - "Limit": 4 + "ModifyTable": 8, + "Result": 8 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 315, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { @@ -73887,7 +72204,7 @@ "planner_rows": 1, "planner_total_cost": 31.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -73897,9 +72214,9 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "5161a089d32944aacde3d6b32a6937b401a635adbffa8e6e86f42032f39d5d19", + "fingerprint": "3cea1be9e5aa6d886c08bf6caf1a479a3b93cdc6c5e23af232ba84bf1e4de72a", "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name", + "dcim_consoleserverporttemplate_unique_module_type_name", "dcim_devicetype_unique_manufacturer_slug", "dcim_moduletype_unique_manufacturer_model" ], @@ -73909,7 +72226,7 @@ "Seq Scan": 3, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -73985,7 +72302,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -74036,7 +72353,7 @@ "Rows Removed by Filter": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -74051,11 +72368,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", + "Alias": "dcim_consoleserverporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", + "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -74066,7 +72383,7 @@ "Parent Relationship": "Inner", "Plan Rows": 1, "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", + "Relation Name": "dcim_consoleserverporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -74084,7 +72401,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -74131,7 +72448,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -74175,7 +72492,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -74219,7 +72536,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -74263,7 +72580,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -74277,7 +72594,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -74286,7 +72603,7 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" + "dcim_consoleserverporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", @@ -74302,102 +72619,104 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" + "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 23.88, + "planner_rows": 1, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 216, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, - "calls": 4, - "fingerprint": "55d43a24ed589958003bf84c280f6c6cd39d4852c5abd6439b48afe9f325a9e9", - "indexes": [], + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], "node_types": { - "ModifyTable": 4, - "Seq Scan": 4 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 54, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { @@ -74407,195 +72726,110 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 0, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 79, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 1 }, "calls": 1, - "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", + "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", "indexes": [ - "dcim_consoleserverport_unique_device_name", - "dcim_device_name_c27913_idx" + "dcim_moduletype_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 14, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], + "Relation Name": "dcim_moduletype", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" + "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 27.089999999999996, + "planner_rows": 0, + "planner_total_cost": 5.97, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -74604,36 +72838,38 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "calls": 1, + "fingerprint": "421f594faa0731f74fbb4a6851605c6c9d972471047d1c09f1cbd9fd54ea4d36", "indexes": [], "node_types": { - "Limit": 9, - "Seq Scan": 9 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -74642,31 +72878,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -74674,20 +72911,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 3, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, + "planner_rows": 3, + "planner_total_cost": 50.550000000000004, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -74696,20 +72933,19 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "667d66c002552c9f55767cd7c49d660dc98fe86803bbdfe7d106ddd39a3c4d41", + "calls": 3, + "fingerprint": "4243c2cc34631c6006d3185cf384e0af294dad750c60c1746d4200bd1354d228", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_poweroutlettemplate_unique_module_type_name" + "extras_tag_pkey" ], "node_types": { "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Nested Loop": 6, + "Seq Scan": 6, + "Sort": 3, + "Unique": 3 }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -74720,28 +72956,25 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Unique", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1312, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1312, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, @@ -74749,8 +72982,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Join Filter": "(extras_taggeditem.content_type_id = django_content_type.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -74759,7 +72992,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1304, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, @@ -74767,8 +73000,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -74777,167 +73009,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1094, + "Plan Width": 920, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_taggeditem", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", + "Filter": "(object_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1086, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1058, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 12, + "Relation Name": "extras_taggeditem", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.46, + "Total Cost": 2.96, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -74946,42 +73045,46 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_manufacturer", + "Alias": "extras_tag", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_taggeditem.tag_id)", + "Index Name": "extras_tag_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 916, + "Relation Name": "extras_tag", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.49, + "Total Cost": 11.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -74990,9 +73093,10 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -75000,9 +73104,10 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -75010,7 +73115,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -75019,57 +73124,41 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 16.81, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Sort Key": [ + "extras_tag.weight", + "extras_tag.name", + "extras_tag.slug", + "extras_tag.created", + "extras_tag.last_updated", + "extras_tag.owner_id", + "extras_tag.id", + "extras_tag.color", + "extras_tag.description" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 16.82, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.67, + "Total Cost": 16.82, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -75077,24 +73166,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, + "Startup Cost": 16.82, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.68, + "Total Cost": 16.85, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -75102,7 +73180,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" + "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" }, { "aggregate": { @@ -75115,7 +73193,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -75125,10 +73203,10 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6a250ea2a0c7f445cb802719ca76651a364263a07b34702a3aef716601a48040", + "fingerprint": "4260e45e27233268fcf14525ac4d1229a1d864f04af0fb3e4232d430d4689040", "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f", - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_rearport_unique_device_name" ], "node_types": { "Incremental Sort": 1, @@ -75136,7 +73214,7 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -75160,7 +73238,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1116, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -75177,7 +73255,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1116, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -75185,7 +73263,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -75202,7 +73280,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -75217,12 +73295,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", + "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", + "Index Name": "dcim_rearport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -75232,9 +73309,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -75252,7 +73328,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -75269,12 +73345,12 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" + "dcim_rearport.name COLLATE natural_sort" ], "Startup Cost": 16.32, "Temp Read Blocks": 0, @@ -75287,198 +73363,114 @@ }, "Triggers": [] }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" + "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 1, + "planner_total_cost": 3.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 270, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 5 + "wal_records": 0 }, "calls": 1, - "fingerprint": "6b65fea395e35ff1a90c9b084dafc67c8bef2c225c62e5c4f460f157dda03015", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], + "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", + "indexes": [], "node_types": { - "Incremental Sort": 1, - "Index Scan": 2, - "LockRows": 1, - "Nested Loop": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "LockRows", + "Node Type": "Aggregate", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3092, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 2, - "Plan Width": 3092, + "Plan Rows": 1, + "Plan Width": 98, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3092, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 863, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ANY ('?'::bigint[]))", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2011, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.3, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "id" ], - "Startup Cost": 16.31, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 3.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -75486,34 +73478,35 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 16.31, + "Startup Cost": 3.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 3.31, "WAL Buffers Full": 0, - "WAL Bytes": 270, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 5 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 0, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 48.9, + "planner_rows": 4, + "planner_total_cost": 32.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -75522,76 +73515,162 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 6, - "fingerprint": "6b9bcac00def8b4ff7fd59a573cb26a2a0fbd25315922a0c45a603903b813b76", + "calls": 2, + "fingerprint": "44a60a051dffa5d50eb9733e9df60d708f8eb3f3212560929b568cfb42ff97a0", "indexes": [ + "dcim_device_name_c27913_idx", "dcim_interface_device_id_359c6115" ], "node_types": { - "Index Scan": 6, - "Limit": 6 + "Incremental Sort": 2, + "Index Only Scan": 2, + "Index Scan": 2, + "Nested Loop": 2 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -75599,20 +73678,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 32, - "actual_rows_times_loops": 0, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 256, - "planner_total_cost": 1271.3600000000004, + "planner_rows": 2, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -75621,319 +73700,60 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 32, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "calls": 2, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_moduletype_pkey" ], "node_types": { - "Bitmap Heap Scan": 32, - "Bitmap Index Scan": 32, - "Hash": 32, - "Hash Join": 32, - "Index Scan": 64, - "Nested Loop": 64, - "Seq Scan": 32, - "Sort": 32 + "Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -75941,21 +73761,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -75963,7 +73775,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { @@ -75973,10 +73785,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 1, + "planner_total_cost": 8.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -75986,161 +73798,75 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6ff21baa021ac7ff51b30607e4072d8ddf915cc7e6dae2eb5df79f29751ce37a", + "fingerprint": "480c6a84f60d8393bf9bf1a5aa02e81f79beaf5f2e9c42389b0427a4e428feb9", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" + "dcim_interface_parent_id_3e2b159b" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -76148,20 +73874,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 13, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 13, + "planner_total_cost": 106.46999999999998, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 26, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -76170,162 +73896,81 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "762d501e081f48edd74a88728916d1d5c8539bd2abdf7ca579de1ba470fd6b43", + "calls": 13, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_powerport_unique_device_name" + "extras_subscription_unique_per_object_and_user" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Index Scan": 13, + "Sort": 13 }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1027, + "Plan Rows": 1, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" + "created DESC", + "user_id" ], - "Startup Cost": 16.32, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -76333,82 +73978,89 @@ }, "Triggers": [] }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.58, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 13, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 270, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 5 }, "calls": 1, - "fingerprint": "77b8e4f8414ca97ddfb2defbe2072cc755e3736a1cdb523f7bdd09483c833a95", + "fingerprint": "4a1eae46055efb95554297e6ec8ad6ec168b973458a3b48d64626d8b60d8b9eb", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" ], "node_types": { + "Incremental Sort": 1, "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "LockRows": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "LockRows", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 730, + "Plan Rows": 2, + "Plan Width": 3092, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Incremental Sort", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 730, + "Plan Rows": 2, + "Plan Width": 3092, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -76417,255 +74069,69 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 722, + "Plan Width": 3092, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 504, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 476, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 863, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.39, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Filter": "(id = ANY ('?'::bigint[]))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 2011, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -76674,57 +74140,36 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 26.55, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 16.3, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.31, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.57, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -76732,45 +74177,34 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.58, + "Startup Cost": 16.31, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.58, + "Total Cost": 16.37, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 270, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 5 }, "Triggers": [] }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" + "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" }, { "aggregate": { "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.7, + "planner_rows": 2, + "planner_total_cost": 16.3, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -76780,236 +74214,51 @@ "wal_records": 0 }, "calls": 2, - "fingerprint": "79b3f288d06d57cc72840fbfe5d222eb2e8203361ba9b6d88df42f2e87708e9c", + "fingerprint": "4abb0442e2c8e75f799e2ff4277b53c8ed7a46e038b9bed2d16fd68ce8d1f9ae", "indexes": [ - "dcim_device_name_c27913_idx", "dcim_interface_device_id_359c6115" ], "node_types": { - "Incremental Sort": 2, - "Index Only Scan": 2, "Index Scan": 2, - "Nested Loop": 2 + "Limit": 2 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7ea46d85f0aa9c4aaeaa11dffdfdd0aab1897ddadad7c3987a8b0f96962328ed", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Rows Removed by Filter": 5, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -77041,20 +74290,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 32, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, + "planner_rows": 256, + "planner_total_cost": 1296.9599999999994, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 32, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -77063,62 +74312,319 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "82816bdc6b383a0bfb3655562991ff322c35f9e92caaef0da7f1bb26676f3585", + "calls": 32, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ - "dcim_interface_device_id_359c6115" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Index Scan": 8, - "Limit": 8 + "Bitmap Heap Scan": 32, + "Bitmap Index Scan": 32, + "Hash": 32, + "Hash Join": 32, + "Index Scan": 64, + "Nested Loop": 64, + "Seq Scan": 32, + "Sort": 32 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2005, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "((name)::text = '?'::text)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -77126,13 +74632,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -77140,20 +74654,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 3, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, + "planner_rows": 6, + "planner_total_cost": 74.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -77162,19 +74676,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "870f15a8572e4c2ebbfaf4fa1c52019f9318818f7ccc7566b430f62a7f3a7821", + "calls": 3, + "fingerprint": "559d59fcdf99fee07003dd71547f451c65bbad3c169bac7f5982c356e4a48c2a", "indexes": [ + "dcim_cable_pkey", "dcim_device_name_c27913_idx", - "dcim_poweroutlet_unique_device_name" + "dcim_interface_device_id_359c6115" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Incremental Sort": 3, + "Index Only Scan": 3, + "Index Scan": 6, + "Nested Loop": 6 }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -77198,7 +74713,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1291, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -77206,6 +74721,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -77215,7 +74731,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1291, + "Plan Width": 3531, "Plans": [ { "Actual Loops": 1, @@ -77223,8 +74739,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", + "Heap Fetches": 1, "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -77237,10 +74752,9 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -77255,48 +74769,112 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 3285, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((cable_id IS NOT NULL) AND (id = ?))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_cable", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_interface.cable_id)", + "Index Name": "dcim_cable_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1280, + "Relation Name": "dcim_cable", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 16.56, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 24.72, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -77304,7 +74882,8 @@ } ], "Presorted Key": [ - "dcim_device.name" + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, @@ -77312,12 +74891,13 @@ "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 16.32, + "Startup Cost": 24.73, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 24.77, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -77325,20 +74905,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" + "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.08, + "planner_rows": 2, + "planner_total_cost": 16.35, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -77347,75 +74927,162 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "8d2173ab0cfc71a79faa199c07304df9f9fad9ee06c7edfa8134a2fa6ffcf0aa", + "calls": 1, + "fingerprint": "55acfb72af702b176263cc3d5a20a7d8e882ac3ea5a03ac004cd97bc9b4636ef", "indexes": [ - "dcim_interface_pkey" + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" ], "node_types": { - "Index Only Scan": 4, - "Limit": 4 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 2251, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -77423,58 +75090,60 @@ }, "Triggers": [] }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.0, + "planner_rows": 0, + "planner_total_cost": 23.88, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 24, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 216, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, - "calls": 1, - "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", + "calls": 4, + "fingerprint": "55d43a24ed589958003bf84c280f6c6cd39d4852c5abd6439b48afe9f325a9e9", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "ModifyTable": 4, + "Seq Scan": 4 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 892, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -77483,73 +75152,74 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.0, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.0, + "Total Cost": 5.97, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 54, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_rows": 5, + "planner_total_cost": 0.07, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 53, - "shared_read_blocks": 11, + "shared_hit_blocks": 136, + "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 575, + "wal_bytes": 7464, "wal_fpi": 0, - "wal_records": 8 + "wal_records": 106 }, "calls": 1, - "fingerprint": "95bc4b19ce9991973ddf719e69b14ff46f3213e1194be89cf320b40041a28791", + "fingerprint": "59b21ec0b4519c4bcb5e15f959c8b7c8fd0187ef8addd9d16bfbd8b6718a83ac", "indexes": [], "node_types": { "ModifyTable": 1, - "Result": 1 + "Values Scan": 1 }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 5.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -77559,54 +75229,55 @@ "Node Type": "ModifyTable", "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 896, + "Plan Rows": 5, + "Plan Width": 2017, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, + "Alias": "*VALUES*", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Values Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 896, + "Plan Rows": 5, + "Plan Width": 2017, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 0.07, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 99, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 } ], - "Relation Name": "dcim_module", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 53, - "Shared Read Blocks": 11, + "Shared Hit Blocks": 136, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 0.07, "WAL Buffers Full": 0, - "WAL Bytes": 575, + "WAL Bytes": 7464, "WAL FPI": 0, - "WAL Records": 8 + "WAL Records": 106 }, "Triggers": [] }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" + "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" }, { "aggregate": { @@ -77616,287 +75287,174 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 3611, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 35 + "wal_records": 0 }, "calls": 1, - "fingerprint": "9647c8a930f4400e04fc171adcea9ecd76a1ba413102db5b153f2b3c8d88e95c", + "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", "indexes": [ - "dcim_interface_pkey" + "dcim_consoleserverport_unique_device_name", + "dcim_device_name_c27913_idx" ], "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, "Index Scan": 1, - "ModifyTable": 1 + "Nested Loop": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 2, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 378, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleserverport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleserverport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleserverport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 48, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 3611, - "WAL FPI": 0, - "WAL Records": 35 - }, - "Triggers": [] - }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - }, - { - "aggregate": { - "actual_loops": 13, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 104, - "planner_total_cost": 186.81000000000003, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 26, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 13, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 13, - "Bitmap Index Scan": 13 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } + "Presorted Key": [ + "dcim_device.name" ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleserverport.name COLLATE natural_sort" ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.19, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.66, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -77904,7 +75462,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" + "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" }, { "aggregate": { @@ -77917,7 +75475,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -77927,7 +75485,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "a8b516f999ebee5826a066db69fa8df13327e64a670cba85d400f2e2b9698de8", + "fingerprint": "613079e67042ee5e8e1bf3bc90ce4f08f2b578d5d9a77569593c7267963b8558", "indexes": [ "dcim_device_name_c27913_idx", "dcim_frontport_unique_device_name" @@ -77987,7 +75545,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -78004,7 +75562,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -78052,7 +75610,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -78069,7 +75627,7 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -78091,16 +75649,108 @@ }, { "aggregate": { - "actual_loops": 10, + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 27.089999999999996, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 27, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "indexes": [], + "node_types": { + "Limit": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + }, + { + "aggregate": { + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 397.3, + "planner_rows": 1, + "planner_total_cost": 31.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -78109,24 +75759,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 10, - "fingerprint": "a90e1f0aa5a3a8d362205aedd087b12d680eb15d48f80615cd018c714b301a14", + "calls": 1, + "fingerprint": "667d66c002552c9f55767cd7c49d660dc98fe86803bbdfe7d106ddd39a3c4d41", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_poweroutlettemplate_unique_module_type_name" ], "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -78139,8 +75785,8 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1312, "Plans": [ { "Actual Loops": 1, @@ -78148,7 +75794,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -78156,8 +75803,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1312, "Plans": [ { "Actual Loops": 1, @@ -78165,6 +75812,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -78173,161 +75821,230 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 1, + "Plan Width": 1304, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 1094, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", + "Inner Unique": true, + "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 1086, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 1058, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlettemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1022, + "Relation Name": "dcim_poweroutlettemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 27.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78336,46 +76053,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T4", + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 28.64, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78384,46 +76097,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 31.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78431,21 +76140,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_poweroutlettemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 31.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 31.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78453,20 +76165,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" + "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" }, { "aggregate": { - "actual_loops": 18, - "actual_rows_times_loops": 18, + "actual_loops": 9, + "actual_rows_times_loops": 9, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 18, - "planner_total_cost": 146.51999999999998, + "planner_rows": 9, + "planner_total_cost": 119.07000000000002, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 54, + "shared_hit_blocks": 45, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -78475,16 +76187,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 18, - "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", + "calls": 9, + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", "indexes": [ - "dcim_device_name_c27913_idx" + "core_objecttype_pkey" ], "node_types": { - "Index Scan": 18, - "Limit": 18 + "Index Scan": 9, + "Limit": 9, + "Nested Loop": 9, + "Seq Scan": 9 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -78498,16 +76212,176 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 65.2, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 24, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "6b9bcac00def8b4ff7fd59a573cb26a2a0fbd25315922a0c45a603903b813b76", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 8, + "Limit": 8 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -78517,8 +76391,9 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 5, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -78528,7 +76403,7 @@ "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78542,7 +76417,7 @@ "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78550,7 +76425,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { @@ -78563,7 +76438,7 @@ "planner_rows": 2, "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -78573,10 +76448,10 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "acae54e9a8724a8e4a2798a9307fc965ce0c1c02277b027e97ab5c16155573ad", + "fingerprint": "6e21cafae719a7e99161e90641f576fa6fde81b51c50aa85b10f5e2e3b90d1f5", "indexes": [ - "dcim_coolingintake_device_id_df1c3674", - "dcim_device_name_c27913_idx" + "dcim_device_name_c27913_idx", + "dcim_powerport_unique_device_name" ], "node_types": { "Incremental Sort": 1, @@ -78584,7 +76459,7 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -78608,7 +76483,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 1264, + "Plan Width": 1027, "Plans": [ { "Actual Loops": 1, @@ -78625,7 +76500,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1264, + "Plan Width": 1027, "Plans": [ { "Actual Loops": 1, @@ -78633,7 +76508,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -78650,7 +76525,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -78665,12 +76540,12 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", + "Alias": "dcim_powerport", "Async Capable": false, "Disabled": false, "Filter": "(module_id IS NULL)", "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Name": "dcim_powerport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -78680,8 +76555,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", + "Plan Width": 999, + "Relation Name": "dcim_powerport", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -78700,7 +76575,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -78717,12 +76592,12 @@ "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" + "dcim_powerport.name COLLATE natural_sort" ], "Startup Cost": 16.32, "Temp Read Blocks": 0, @@ -78735,7 +76610,104 @@ }, "Triggers": [] }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" + "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" + }, + { + "aggregate": { + "actual_loops": 18, + "actual_rows_times_loops": 18, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 18, + "planner_total_cost": 146.51999999999998, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 36, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 18, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 18, + "Limit": 18 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { @@ -78746,9 +76718,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 31.68, + "planner_total_cost": 29.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -78758,19 +76730,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "ad681ef6c1663ff4cc32dfd9d7df0a0ac044a5742ed635bc2102eb5964ce9089", + "fingerprint": "77b8e4f8414ca97ddfb2defbe2072cc755e3736a1cdb523f7bdd09483c833a95", "indexes": [ "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_rearporttemplate_unique_module_type_name" + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 3, + "Index Scan": 2, "Nested Loop": 5, - "Seq Scan": 3, + "Seq Scan": 4, "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -78784,7 +76755,7 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, @@ -78792,7 +76763,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -78802,7 +76773,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1188, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, @@ -78820,7 +76791,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1180, + "Plan Width": 722, "Plans": [ { "Actual Loops": 1, @@ -78838,7 +76809,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 970, + "Plan Width": 512, "Plans": [ { "Actual Loops": 1, @@ -78846,7 +76817,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -78856,7 +76827,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 962, + "Plan Width": 504, "Plans": [ { "Actual Loops": 1, @@ -78873,7 +76844,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 934, + "Plan Width": 476, "Plans": [ { "Actual Loops": 1, @@ -78912,32 +76883,29 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, + "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 6.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78945,13 +76913,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 14.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -78992,13 +76960,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.46, + "Total Cost": 22.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79036,13 +77004,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.49, + "Total Cost": 25.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79080,13 +77048,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 28.64, + "Total Cost": 26.55, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79095,7 +77063,7 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "T6", + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -79124,13 +77092,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.67, + "Total Cost": 29.57, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79138,24 +77106,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_manufacturer.name", "dcim_devicetype.model", "dcim_moduletypeprofile.name", - "\"T6\".name", + "\"T7\".name", "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 31.68, + "Startup Cost": 29.58, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.68, + "Total Cost": 29.58, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79163,18 +77131,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" + "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_total_cost": 8.15, "shared_dirtied_blocks": 0, "shared_hit_blocks": 3, "shared_read_blocks": 0, @@ -79186,17 +77154,19 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", - "indexes": [], + "fingerprint": "7b3add9262ffd4507521331eb65359ee4faae6e2777797a78cd79d68bb0d4efd", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -79206,34 +77176,39 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79244,10 +77219,10 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79255,7 +77230,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { @@ -79265,10 +77240,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.15, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -79278,75 +77253,161 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b223da72643e47731a86e14b2fa6979a3b468cb411a85afda78aa1c160ba4554", + "fingerprint": "7b58f7cce0901a46775ec1fe9d696487007c28f8cdc46c562e47b2df70171156", "indexes": [ - "dcim_interface_parent_id_3e2b159b" + "dcim_coolingintake_device_id_df1c3674", + "dcim_device_name_c27913_idx" ], "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, "Index Scan": 1, - "Limit": 1 + "Nested Loop": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 1264, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1264, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_coolingintake", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingintake_device_id_df1c3674", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 1236, + "Relation Name": "dcim_coolingintake", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_coolingintake.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79354,20 +77415,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 65.76, + "planner_rows": 1, + "planner_total_cost": 8.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -79376,20 +77437,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "b3777b38207c60808a9fdc334525ad008c42e43de9ede4317147890f1d3e5335", + "calls": 1, + "fingerprint": "7ea46d85f0aa9c4aaeaa11dffdfdd0aab1897ddadad7c3987a8b0f96962328ed", "indexes": [ - "extras_tag_pkey", - "extras_tagg_content_717743_idx" + "dcim_interface_parent_id_3e2b159b" ], "node_types": { - "Index Scan": 8, - "Nested Loop": 8, - "Seq Scan": 4, - "Sort": 4, - "Unique": 4 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -79400,210 +77457,42 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Unique", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 916, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_taggeditem", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((content_type_id = django_content_type.id) AND (object_id = ?))", - "Index Name": "extras_tagg_content_717743_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 12, - "Relation Name": "extras_taggeditem", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_tag", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_taggeditem.tag_id)", - "Index Name": "extras_tag_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 916, - "Relation Name": "extras_tag", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_tag.weight", - "extras_tag.name", - "extras_tag.slug", - "extras_tag.created", - "extras_tag.last_updated", - "extras_tag.owner_id", - "extras_tag.id", - "extras_tag.color", - "extras_tag.description" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.41, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.42, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79611,13 +77500,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 16.41, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.44, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -79625,20 +77514,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, + "actual_loops": 83, + "actual_rows_times_loops": 83, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 29.75, + "planner_rows": 83, + "planner_total_cost": 1139.590000000001, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 415, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -79647,43 +77536,40 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "b6cfc8460b8da9c85a12b70c38baffa79e7d0a13dbe0222762076a17e2e3c818", + "calls": 83, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" + "core_objecttype_pkey" ], "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "Index Scan": 83, + "Limit": 83, + "Nested Loop": 83, + "Seq Scan": 83 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -79691,364 +77577,83 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.43, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 5, + "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.17, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.68, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -80056,24 +77661,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.73, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.75, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -80081,20 +77675,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, + "planner_rows": 4, + "planner_total_cost": 32.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -80103,42 +77697,51 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "bc5b049f9ef8807616f1dbbaad1225c17a329dabd8dfea4ed10f2cbdbcea791f", + "calls": 2, + "fingerprint": "81c6ac8171b8afbc88c809e0f20ccb3e3ffac100c460d2658ef023725f092414", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_powerporttemplate_unique_module_type_name" + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" ], "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Incremental Sort": 2, + "Index Only Scan": 2, + "Index Scan": 2, + "Nested Loop": 2 }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1166, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -80148,320 +77751,70 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1166, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 948, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 912, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 28.64, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 3, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -80470,38 +77823,36 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.67, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.68, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -80509,54 +77860,250 @@ }, "Triggers": [] }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 34, - "shared_read_blocks": 1, - "shared_written_blocks": 1, + "planner_rows": 4, + "planner_total_cost": 32.56, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1554, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 22 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "bd5d2251ba765a9a1851eda8391904940c67d699aa9f8735d6cfea5c377a5174", + "calls": 4, + "fingerprint": "82816bdc6b383a0bfb3655562991ff322c35f9e92caaef0da7f1bb26676f3585", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2005, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((name)::text = '?'::text)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 32.56, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 12, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "88474e6fa9c456585d26c00c0520fcb33e3a688675e6ad61dc3964de75745e56", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 2005, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((name)::text = '?'::text)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 33.08, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "8d2173ab0cfc71a79faa199c07304df9f9fad9ee06c7edfa8134a2fa6ffcf0aa", "indexes": [ "dcim_interface_pkey" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Index Only Scan": 4, + "Limit": 4 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, @@ -80564,6 +78111,7 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Heap Fetches": 2, "Index Cond": "(id = ?)", "Index Name": "dcim_interface_pkey", "Index Searches": 1, @@ -80571,16 +78119,16 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, + "Plan Width": 4, "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.25, @@ -80593,23 +78141,22 @@ "WAL Records": 0 } ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 2, - "Shared Hit Blocks": 34, - "Shared Read Blocks": 1, - "Shared Written Blocks": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 1554, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 22 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { @@ -80620,9 +78167,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 24.77, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -80632,19 +78179,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "bf6cc0427bd3c868aea955603374ea990c8b9a3e558143fe5a49d74e5dd89183", + "fingerprint": "8e2d5cf4e67e550b77e5341090db3969f2d06360b222e2c45a9746e26dfea451", "indexes": [ - "dcim_cable_pkey", "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_frontport_unique_device_name" ], "node_types": { "Incremental Sort": 1, "Index Only Scan": 1, - "Index Scan": 2, - "Nested Loop": 2 + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -80668,7 +78214,7 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 3531, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -80676,7 +78222,6 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -80686,7 +78231,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3531, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -80694,7 +78239,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -80707,9 +78253,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -80724,112 +78271,48 @@ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_frontport", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_frontport_unique_device_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 1013, + "Relation Name": "dcim_frontport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.56, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.39, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.72, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -80837,22 +78320,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_frontport.name COLLATE natural_sort" ], - "Startup Cost": 24.73, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.77, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -80860,20 +78341,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" + "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, + "planner_rows": 1, + "planner_total_cost": 2.0, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -80883,37 +78364,35 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "c2bc17f7c58694d993c7c94459e7aa951e2e20ce8ae53b60c3e64039fa7f7b8f", + "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", "indexes": [], "node_types": { - "ModifyTable": 1, + "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 892, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -80922,32 +78401,31 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, + "Plan Width": 892, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 2.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 2.0, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -80955,43 +78433,41 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, + "planner_rows": 1, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 33, - "shared_read_blocks": 0, + "shared_hit_blocks": 53, + "shared_read_blocks": 11, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1562, + "wal_bytes": 575, "wal_fpi": 0, - "wal_records": 22 + "wal_records": 8 }, "calls": 1, - "fingerprint": "c38dbda229325d6f93975ea329f72a3639c9437fec35aee86ac8b286e0cf3495", - "indexes": [ - "dcim_interface_pkey" - ], + "fingerprint": "95bc4b19ce9991973ddf719e69b14ff46f3213e1194be89cf320b40041a28791", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -80999,99 +78475,92 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Update", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 896, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 896, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 33, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 53, + "Shared Read Blocks": 11, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 1562, + "WAL Bytes": 575, "WAL FPI": 0, - "WAL Records": 22 + "WAL Records": 8 }, "Triggers": [] }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" + "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" }, { "aggregate": { - "actual_loops": 3, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 24.42, + "planner_total_cost": 8.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 237, + "wal_bytes": 3611, "wal_fpi": 0, - "wal_records": 3 + "wal_records": 35 }, - "calls": 3, - "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", + "calls": 1, + "fingerprint": "9647c8a930f4400e04fc171adcea9ecd76a1ba413102db5b153f2b3c8d88e95c", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 3, - "ModifyTable": 3 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -81107,11 +78576,11 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Index Name": "dcim_interface_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -81121,54 +78590,54 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", + "Plan Width": 378, + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 48, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 3611, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 35 }, "Triggers": [] }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 8, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 398.24, + "planner_rows": 8, + "planner_total_cost": 65.36, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -81177,42 +78646,40 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", + "calls": 8, + "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", "indexes": [ - "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "wireless_wi_ssid_64a9ce_idx" + "dcim_cabletermination_unique_termination" ], "node_types": { "Index Only Scan": 8, - "Nested Loop": 4 + "Limit": 8 }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 90, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "wireless_wirelesslan", + "Alias": "dcim_cabletermination", "Async Capable": false, "Disabled": false, "Heap Fetches": 0, - "Index Name": "wireless_wi_ssid_64a9ce_idx", + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -81221,67 +78688,132 @@ "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 90, - "Relation Name": "wireless_wirelesslan", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_cabletermination", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 45.04, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - }, + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 5, + "planner_total_cost": 12.66, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", + "indexes": [ + "dcim_porttemplatemapping_module_type_id_3a84e529" + ], + "node_types": { + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_porttemplatemapping", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Plan Rows": 5, + "Plan Width": 60, + "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_wireless_lans", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", - "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "Index Searches": 0, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_interface_wireless_lans", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.91, + "Total Cost": 4.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(module_type_id = ?)", + "Relation Name": "dcim_porttemplatemapping", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.29, + "Startup Cost": 4.19, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 99.56, + "Total Cost": 12.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81289,20 +78821,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" + "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.35, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -81312,10 +78844,10 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "cbf24f565034e8d7d8c2d32786b7d3399007f6cd1faa701190c829080c5bef86", + "fingerprint": "ad4280832ec72d05833891853180966290f12b31f06a17569189ead7a0148361", "indexes": [ "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_poweroutlet_unique_device_name" ], "node_types": { "Incremental Sort": 1, @@ -81323,11 +78855,11 @@ "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -81347,15 +78879,14 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -81365,7 +78896,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1291, "Plans": [ { "Actual Loops": 1, @@ -81373,7 +78904,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -81386,9 +78918,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -81402,12 +78935,13 @@ }, { "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "dcim_poweroutlet", "Async Capable": false, "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Index Name": "dcim_interface_device_id_359c6115", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_poweroutlet_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -81417,33 +78951,33 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, + "Plan Width": 1263, + "Relation Name": "dcim_poweroutlet", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81451,22 +78985,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_poweroutlet.name COLLATE natural_sort" ], - "Startup Cost": 16.3, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81474,7 +79006,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" }, { "aggregate": { @@ -81484,10 +79016,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, + "planner_rows": 1, + "planner_total_cost": 31.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -81497,71 +79029,404 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "cc506ef5115eea72cb6a71290ec18a9ad3da8ca5c16a42cb1b6bb3516117e602", - "indexes": [], + "fingerprint": "ad681ef6c1663ff4cc32dfd9d7df0a0ac044a5742ed635bc2102eb5964ce9089", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_rearporttemplate_unique_module_type_name" + ], "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, + "Plan Width": 1188, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1180, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 970, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 962, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 934, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_rearporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_rearporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_rearporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.67, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_rearporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.97, + "Total Cost": 31.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81569,120 +79434,112 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, + "planner_rows": 1, + "planner_total_cost": 3.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 0 }, "calls": 1, - "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.03, + "planner_total_cost": 8.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -81692,54 +79549,61 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d725c59c89d2583c8bfad235e00854b605817bc129fe0003e0b0a5efae22aaf2", - "indexes": [], + "fingerprint": "b223da72643e47731a86e14b2fa6979a3b468cb411a85afda78aa1c160ba4554", + "indexes": [ + "dcim_interface_parent_id_3e2b159b" + ], "node_types": { - "Seq Scan": 1, - "Sort": 1 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Filter": "((id <> ?) AND (channel_id = ?))", + "Index Cond": "(parent_id = ?)", + "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 4, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81747,20 +79611,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.03, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81768,20 +79625,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { - "actual_loops": 13, - "actual_rows_times_loops": 13, + "actual_loops": 1, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 13, - "planner_total_cost": 39.12999999999999, + "planner_rows": 5, + "planner_total_cost": 29.75, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 39, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -81790,55 +79647,408 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 13, - "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", - "indexes": [], + "calls": 1, + "fingerprint": "b6cfc8460b8da9c85a12b70c38baffa79e7d0a13dbe0222762076a17e2e3c818", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], "node_types": { - "Limit": 13, - "Seq Scan": 13 + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Rows": 5, + "Plan Width": 730, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 5, + "Plan Width": 694, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 254, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 18.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 5, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Maximum Storage": 17, + "Node Type": "Materialize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Storage": "Memory", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 29.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81846,13 +80056,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.73, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 29.75, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -81860,20 +80081,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.26, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -81882,159 +80103,60 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", + "calls": 1, + "fingerprint": "b8e7839f7b1c9604f0585df890907b8de7f20162db6f4477c70c135174765c1f", "indexes": [ + "dcim_coolingoutflow_device_id_74dd615f", "dcim_device_name_c27913_idx" ], "node_types": { - "Index Only Scan": 9, - "Limit": 9 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 2, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 3, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 49.050000000000004, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 3, - "fingerprint": "dbf887eda54c114262ac17443fbd21da78fac511a996b047ad18481182001ec0", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 3, - "Index Only Scan": 3, - "Index Scan": 3, - "Nested Loop": 3 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1116, "Plans": [ { "Actual Loops": 1, @@ -82042,7 +80164,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -82055,9 +80178,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -82071,12 +80195,13 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "dcim_coolingoutflow", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_coolingoutflow_device_id_74dd615f", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -82086,33 +80211,33 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, + "Plan Width": 1088, + "Relation Name": "dcim_coolingoutflow", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82120,22 +80245,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_coolingoutflow.name COLLATE natural_sort" ], - "Startup Cost": 16.3, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82143,7 +80266,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" }, { "aggregate": { @@ -82154,9 +80277,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.15, + "planner_total_cost": 31.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -82166,15 +80289,19 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "dc62d53b05e3896ac6f7631697e41dd5456e3f7b4d467934e2e7ff2b62ebdfad", + "fingerprint": "bc5b049f9ef8807616f1dbbaad1225c17a329dabd8dfea4ed10f2cbdbcea791f", "indexes": [ - "dcim_interface_parent_id_3e2b159b" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model", + "dcim_powerporttemplate_unique_module_type_name" ], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -82185,42 +80312,356 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 1166, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1166, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1158, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 948, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 940, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 912, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_powerporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_powerporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 876, + "Relation Name": "dcim_powerporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.64, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 31.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82228,13 +80669,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_powerporttemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 31.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82242,20 +80694,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.7, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -82264,23 +80716,23 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "dc74d7b6bbc2e49a504929642bda23ec48d5559f343a7e3d9dc5657b4102df8f", + "calls": 1, + "fingerprint": "bce1a17ce482c9e652ee4c397104e74fb46fd559c41744e4ed469c16639cc2bf", "indexes": [ "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_rearport_unique_device_name" ], "node_types": { - "Incremental Sort": 2, - "Index Only Scan": 2, - "Index Scan": 2, - "Nested Loop": 2 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -82300,15 +80752,14 @@ "Node Type": "Incremental Sort", "Parallel Aware": false, "Plan Rows": 2, - "Plan Width": 2251, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Inner Unique": false, "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -82318,7 +80769,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1041, "Plans": [ { "Actual Loops": 1, @@ -82326,7 +80777,8 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, @@ -82339,9 +80791,10 @@ "Plan Rows": 1, "Plan Width": 28, "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -82355,12 +80808,13 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "dcim_rearport", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_rearport_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -82370,33 +80824,33 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, + "Plan Width": 1013, + "Relation Name": "dcim_rearport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82404,22 +80858,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_device.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_rearport.name COLLATE natural_sort" ], - "Startup Cost": 16.3, + "Startup Cost": 16.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 16.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82427,20 +80879,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_loops": 3, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 29.7, + "planner_rows": 24, + "planner_total_cost": 103.35000000000001, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -82449,24 +80901,28 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "def8b7ee80ebc202e4e128a770dac6119ea37083560bc945294082f6bb3ad80a", + "calls": 3, + "fingerprint": "bd333d56ed3f4cf6160e1f229368ca0361fb5104c9a4b78bec297649e71649f5", "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" + "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "ipam_vlangroup_pkey" ], "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "Bitmap Heap Scan": 3, + "Bitmap Index Scan": 3, + "Hash": 3, + "Hash Join": 3, + "Index Scan": 3, + "Materialize": 3, + "Nested Loop": 6, + "Seq Scan": 6, + "Sort": 3 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -82475,16 +80931,15 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 4, - "Plan Width": 730, + "Plan Rows": 8, + "Plan Width": 253, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Inner Unique": true, "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -82493,16 +80948,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 730, + "Plan Rows": 8, + "Plan Width": 253, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(ipam_vlan.site_id = dcim_site.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -82510,282 +80966,183 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 694, + "Plan Rows": 8, + "Plan Width": 35, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, + "Plan Rows": 8, + "Plan Width": 26, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "ipam_vlan", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, + "Plan Rows": 80, + "Plan Width": 26, + "Relation Name": "ipam_vlan", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.8, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.37, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 14.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.32, + "Total Cost": 25.48, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interfacetemplate", + "Actual Loops": 0, + "Actual Rows": 0, "Async Capable": false, "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 4, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 4, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, + "Plan Width": 25, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -82794,12 +81151,12 @@ "Local Written Blocks": 0, "Node Type": "Seq Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 25, + "Relation Name": "dcim_site", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -82812,45 +81169,77 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.16, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 14.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.17, + "Total Cost": 28.61, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "ipam_vlangroup", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ipam_vlan.group_id)", + "Index Name": "ipam_vlangroup_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 226, + "Relation Name": "ipam_vlangroup", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.71, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 14.61, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.65, + "Total Cost": 34.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82858,24 +81247,23 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_site.name COLLATE natural_sort", + "ipam_vlangroup.name COLLATE natural_sort", + "ipam_vlangroup.id", + "ipam_vlan.vid", + "ipam_vlan.id" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 29.69, + "Startup Cost": 34.43, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.7, + "Total Cost": 34.45, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -82883,7 +81271,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" + "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" }, { "aggregate": { @@ -82893,195 +81281,110 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 34, + "shared_read_blocks": 1, + "shared_written_blocks": 1, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1554, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 22 }, "calls": 1, - "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", + "fingerprint": "bd5d2251ba765a9a1851eda8391904940c67d699aa9f8735d6cfea5c377a5174", "indexes": [ - "dcim_consoleport_unique_device_name", - "dcim_device_name_c27913_idx" + "dcim_interface_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 2, + "Shared Hit Blocks": 34, + "Shared Read Blocks": 1, + "Shared Written Blocks": 1, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.37, + "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1554, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 22 }, "Triggers": [] }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 24.24, + "planner_rows": 0, + "planner_total_cost": 5.97, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -83090,36 +81393,38 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "e419040bed4af7c6635bb2d9563b77bcbe142851b57b4ff3f7d02a06e92a691d", + "calls": 1, + "fingerprint": "c2bc17f7c58694d993c7c94459e7aa951e2e20ce8ae53b60c3e64039fa7f7b8f", "indexes": [], "node_types": { - "Limit": 4, - "Seq Scan": 4 + "ModifyTable": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 440, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -83128,31 +81433,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.06, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.06, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -83160,237 +81466,54 @@ }, "Triggers": [] }, - "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 5, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, + "planner_rows": 0, + "planner_total_cost": 8.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 33, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1562, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 22 }, "calls": 1, - "fingerprint": "e4b054f7183b15834f375d967f24be75186ab06fec35f196958c16e5845f19e9", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "e7302348e6f139d6f96e5bec9fcd1a4eb13cb984bd92a907433dfea86d00c387", + "fingerprint": "c38dbda229325d6f93975ea329f72a3639c9437fec35aee86ac8b286e0cf3495", "indexes": [ "dcim_interface_pkey" ], "node_types": { - "Index Scan": 4, - "Limit": 4 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2005, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, @@ -83409,12 +81532,12 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2005, + "Plan Width": 2003, "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.25, @@ -83427,8 +81550,9 @@ "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 33, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.25, @@ -83436,13 +81560,13 @@ "Temp Written Blocks": 0, "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1562, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 22 }, "Triggers": [] }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" }, { "aggregate": { @@ -83452,10 +81576,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, + "planner_rows": 1, + "planner_total_cost": 31.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -83465,49 +81589,41 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e91d170e25e21c9ea751a115f62397dd14d8c5dceee4b3bf42fbafce22979497", + "fingerprint": "c43594cbf82112e24b28dbd798d4addf266611e2cd60710feaa779686e546dad", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_consoleporttemplate_unique_module_type_name", + "dcim_devicetype_unique_manufacturer_slug", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, + "Plan Rows": 1, + "Plan Width": 1158, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -83517,487 +81633,25 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2251, + "Plan Width": 1158, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.31, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 35, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1467, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "e98f740b1f002a34c1f818c3b8094af4f7a11beb450f3a9e2edd93f79aeab8da", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 378, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 35, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1467, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "eaf4dfa413b0a0454816c86c42dd7383e364e3e96e734f349b3efb1ad5420b26", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ee3649403cbd94a1e7fe43aa285e583280201118851313e1369cab04339b3f71", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_frontporttemplate_unique_module_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, + "Plan Width": 1150, "Plans": [ { "Actual Loops": 1, @@ -84015,7 +81669,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 970, + "Plan Width": 940, "Plans": [ { "Actual Loops": 1, @@ -84023,7 +81677,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -84033,7 +81687,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 962, + "Plan Width": 932, "Plans": [ { "Actual Loops": 1, @@ -84050,7 +81704,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 934, + "Plan Width": 904, "Plans": [ { "Actual Loops": 1, @@ -84074,7 +81728,7 @@ "Rows Removed by Filter": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -84089,11 +81743,11 @@ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", + "Alias": "dcim_consoleporttemplate", "Async Capable": false, "Disabled": false, "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Name": "dcim_consoleporttemplate_unique_module_type_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -84103,8 +81757,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", + "Plan Width": 868, + "Relation Name": "dcim_consoleporttemplate", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -84122,7 +81776,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.27, @@ -84169,7 +81823,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -84213,7 +81867,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -84257,7 +81911,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -84301,7 +81955,7 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.39, @@ -84315,7 +81969,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -84324,7 +81978,7 @@ "dcim_moduletypeprofile.name", "\"T6\".name", "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" + "dcim_consoleporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", @@ -84340,62 +81994,63 @@ }, "Triggers": [] }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" + "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 5, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.15, + "planner_rows": 0, + "planner_total_cost": 40.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 25, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 395, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 5 }, - "calls": 1, - "fingerprint": "f03a1ca4f343b2c372eb5c922b534ed55347cb8726549baa7dfa62dae39e1765", + "calls": 5, + "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", "indexes": [ - "dcim_interface_parent_id_3e2b159b" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Index Scan": 5, + "ModifyTable": 5 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -84405,9 +82060,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, + "Plan Width": 14, + "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -84417,129 +82071,164 @@ "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.15, + "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" }, { "aggregate": { - "actual_loops": 3, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 24.81, + "planner_rows": 32, + "planner_total_cost": 398.24, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 99, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 4392, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 63 + "wal_records": 0 }, - "calls": 3, - "fingerprint": "f6ae27a1d1d0012d8151e687d7c1a99487317e44b84a14e36d9ac87d1c0b59a7", + "calls": 4, + "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", "indexes": [ - "dcim_interface_pkey" + "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "wireless_wi_ssid_64a9ce_idx" ], "node_types": { - "Index Scan": 3, - "ModifyTable": 3 + "Index Only Scan": 8, + "Nested Loop": 4 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Nested Loop", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 8, + "Plan Width": 90, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "wireless_wirelesslan", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", + "Heap Fetches": 0, + "Index Name": "wireless_wi_ssid_64a9ce_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 90, + "Relation Name": "wireless_wirelesslan", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 45.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_wireless_lans", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", + "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", + "Plan Width": 8, + "Relation Name": "dcim_interface_wireless_lans", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 0.91, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 33, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.29, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 99.56, "WAL Buffers Full": 0, - "WAL Bytes": 1464, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" }, { "aggregate": { @@ -84550,25 +82239,25 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 6, + "planner_total_cost": 5.97, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 315, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, "calls": 1, - "fingerprint": "fd7f7d7e00dea712d1718d2e3c7791c1d1e3ee0874e220736b1939f31e75aa8f", + "fingerprint": "cc506ef5115eea72cb6a71290ec18a9ad3da8ca5c16a42cb1b6bb3516117e602", "indexes": [], "node_types": { "ModifyTable": 1, - "Result": 1 + "Seq Scan": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, @@ -84581,33 +82270,37 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Insert", + "Operation": "Delete", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, + "Filter": "((object_id = ?) AND (object_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 5.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -84615,713 +82308,370 @@ } ], "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 6, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 5.97, "WAL Buffers Full": 0, - "WAL Bytes": 315, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 2, + "actual_loops": 13, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 16.54, + "planner_rows": 104, + "planner_total_cost": 186.81000000000003, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 70, + "shared_hit_blocks": 13, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 3140, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 44 + "wal_records": 0 }, - "calls": 2, - "fingerprint": "fe3d62ee28e4d07ed66153d1d62f08e4e6551fc6b3f7c40bad23a534c3bbe68f", + "calls": 13, + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", "indexes": [ - "dcim_interface_pkey" + "dcim_interface_tagged_vlans_interface_id_5870c9e9" ], "node_types": { - "Index Scan": 2, - "ModifyTable": 2 + "Bitmap Heap Scan": 13, + "Bitmap Index Scan": 13 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 8, + "Plan Width": 24, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 378, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 35, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 14.37, "WAL Buffers Full": 0, - "WAL Bytes": 1570, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 22 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 13, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 13 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.03, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 4 + "fingerprint": "d725c59c89d2583c8bfad235e00854b605817bc129fe0003e0b0a5efae22aaf2", + "indexes": [], + "node_types": { + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Filter": "((module_id IS NULL) AND (device_id = ?))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "sort_path COLLATE natural_sort", + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.03, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" }, { + "aggregate": { + "actual_loops": 13, + "actual_rows_times_loops": 13, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 13, + "planner_total_cost": 39.12999999999999, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 39, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 13, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", - "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 + "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", + "indexes": [], + "node_types": { + "Limit": 13, + "Seq Scan": 13 + }, + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 137, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 29.7, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 17, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 32, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 4 - }, - { - "calls": 4, - "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", - "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 18, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 18 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 9 - }, - { - "calls": 29, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 10, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 29, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 83, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 83 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 10 - }, - { - "calls": 9, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 13, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 9, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 4, - "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 8, - "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", - "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 374, - "actual_rows_per_work_unit": 45.2, - "actual_rows_times_loops": 226, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 374, - "planner_rows": 852, - "planner_total_cost": 5782.180000000005, - "planner_total_cost_per_work_unit": 1156.436000000001, - "shared_dirtied_blocks": 5, - "shared_hit_blocks": 2155, - "shared_hit_blocks_per_work_unit": 431.0, - "shared_read_blocks": 13, - "shared_written_blocks": 2, - "statement_calls": 432, - "statement_calls_per_work_unit": 86.4, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 35206, - "wal_fpi": 0, - "wal_records": 482, - "work_units": 5 - } - }, - "description": "Deferred channel reconciliation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 803.235956, - "p95_ms": 848.0808356, - "samples_ns": [ - 798372323, - 800602717, - 799669034, - 820011919, - 795613685, - 816421480, - 813162635, - 852515372, - 781088870, - 818529457, - 811806137, - 803235956, - 792318643, - 785467324, - 846180320 - ] - }, - "wall": { - "median_ms": 1060.546962, - "p95_ms": 1100.3173511, - "samples_ns": [ - 1045920672, - 1060546962, - 1053462512, - 1089974855, - 1054155693, - 1081024935, - 1060655402, - 1096798403, - 1043082744, - 1062803215, - 1062186350, - 1058722249, - 1030355445, - 1032190579, - 1108528230 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 816.177775, - "p95_ms": 822.7844995, - "samples_ns": [ - 807435328, - 816177775, - 823518580 - ] - }, - "wall": { - "median_ms": 1079.16022, - "p95_ms": 1079.4812203, - "samples_ns": [ - 1051882097, - 1079160220, - 1079516887 - ] - } - } - }, - "name": "module.complete_model_save.reconciliation", - "semantic_result": { - "interface_names": [ - "3:1", - "3:2", - "3:3", - "3:4", - "et-0/0/3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 100.08000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 63, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], + "fingerprint": "def8b7ee80ebc202e4e128a770dac6119ea37083560bc945294082f6bb3ad80a", + "indexes": [ + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" + ], "node_types": { - "Limit": 9, - "Nested Loop": 9, - "Seq Scan": 18 + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 4, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, - "Join Type": "Inner", + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -85329,182 +82679,25 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 4, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 21, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0c3c3db888027a7cb714ba6460d5833f6acc7de31821030b16b976ad0e83427a", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, + "Plan Rows": 4, + "Plan Width": 694, "Plans": [ { "Actual Loops": 1, @@ -85512,8 +82705,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -85522,7 +82715,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 829, + "Plan Width": 262, "Plans": [ { "Actual Loops": 1, @@ -85530,7 +82723,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -85540,158 +82733,37 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 640, + "Plan Width": 254, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.06, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -85699,8 +82771,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -85710,32 +82782,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.08, + "Total Cost": 9.3, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -85744,7 +82816,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "T5", + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -85755,8 +82827,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, @@ -85771,15 +82843,15 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.1, + "Total Cost": 12.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -85787,10 +82859,11 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Rows": 4.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, + "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -85798,76 +82871,172 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 4, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 6.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.12, + "Total Cost": 18.42, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, + "Actual Loops": 4, "Actual Rows": 1.0, - "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Maximum Storage": 17, + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, + "Storage": "Memory", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 11.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, + "Rows Removed by Join Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.15, + "Total Cost": 29.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -85875,13 +83044,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T7\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 29.69, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.15, + "Total Cost": 29.7, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -85889,7 +83069,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" }, { "aggregate": { @@ -85899,10 +83079,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 2, + "planner_total_cost": 16.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -85912,100 +83092,183 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", + "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_consoleport_unique_device_name", + "dcim_device_name_c27913_idx" ], "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, "Index Scan": 1, - "ModifyTable": 1 + "Nested Loop": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 2, + "Plan Width": 1023, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, + "Plan Width": 1023, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_consoleport", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_consoleport_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 995, + "Relation Name": "dcim_consoleport", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_consoleport.name COLLATE natural_sort" + ], + "Startup Cost": 16.32, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" + }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 284.16, + "planner_rows": 1, + "planner_total_cost": 16.85, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 1, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, @@ -86013,221 +83276,246 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", + "calls": 1, + "fingerprint": "e3ba90e0299c9f5f80175421290280e0179307f3f1bf77a6e30dbe45a670220a", "indexes": [ - "dcim_interface_vdcs_interface_id_6d58dbaf", - "dcim_virtua_name_079d4d_idx" + "extras_tag_pkey" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Incremental Sort": 4, - "Index Scan": 4, - "Materialize": 4, - "Nested Loop": 4 + "Index Scan": 1, + "Nested Loop": 2, + "Seq Scan": 2, + "Sort": 1, + "Unique": 1 }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Unique", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 154, + "Plan Rows": 1, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 154, + "Plan Rows": 1, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_virtualdevicecontext", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_virtua_name_079d4d_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(extras_taggeditem.content_type_id = django_content_type.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 90, - "Plan Width": 154, - "Relation Name": "dcim_virtualdevicecontext", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 45.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 916, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_vdcs", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 920, "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_taggeditem", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 12, + "Relation Name": "extras_taggeditem", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 2.96, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, { "Actual Loops": 0, "Actual Rows": 0, + "Alias": "extras_tag", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", + "Index Cond": "(id = extras_taggeditem.tag_id)", + "Index Name": "extras_tag_pkey", "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 916, + "Relation Name": "extras_tag", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_vdcs", - "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.41, + "Total Cost": 16.81, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 4.36, + "Sort Key": [ + "extras_tag.weight", + "extras_tag.name", + "extras_tag.slug", + "extras_tag.created", + "extras_tag.last_updated", + "extras_tag.owner_id", + "extras_tag.id", + "extras_tag.color", + "extras_tag.description" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 16.82, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 70.68, + "Total Cost": 16.82, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_virtualdevicecontext.name" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_virtualdevicecontext.name COLLATE natural_sort", - "dcim_virtualdevicecontext.id" - ], - "Startup Cost": 12.66, + "Startup Cost": 16.82, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 71.04, + "Total Cost": 16.85, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -86235,20 +83523,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" + "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" }, { "aggregate": { "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 4, - "planner_total_cost": 32.68, + "planner_total_cost": 24.24, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 24, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -86258,19 +83546,17 @@ "wal_records": 0 }, "calls": 4, - "fingerprint": "10f5fee0ca7006161c5f05279e065baec0b1042cb727a0609a10a043a6cf6efe", - "indexes": [ - "dcim_cabletermination_unique_termination" - ], + "fingerprint": "e419040bed4af7c6635bb2d9563b77bcbe142851b57b4ff3f7d02a06e92a691d", + "indexes": [], "node_types": { - "Index Only Scan": 4, - "Limit": 4 + "Limit": 4, + "Seq Scan": 4 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -86280,38 +83566,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 440, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 6.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -86319,13 +83601,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 6.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -86333,20 +83615,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" + "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 4, + "planner_total_cost": 33.08, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 16, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -86355,42 +83637,39 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "calls": 4, + "fingerprint": "e7302348e6f139d6f96e5bec9fcd1a4eb13cb984bd92a907433dfea86d00c387", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Index Scan": 4, + "Limit": 4 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 2005, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -86400,34 +83679,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, + "Plan Width": 2005, + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -86435,7 +83712,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" }, { "aggregate": { @@ -86445,10 +83722,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 2, + "planner_total_cost": 16.35, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -86458,439 +83735,90 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", + "fingerprint": "e91d170e25e21c9ea751a115f62397dd14d8c5dceee4b3bf42fbafce22979497", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" ], "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, "Index Scan": 1, - "ModifyTable": 1 + "Nested Loop": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "20e0995c371f1f4692b2b66f7bee28347d77e5dcebbbafed0a9e1d8b70ce4a1f", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 39, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 2181, - "wal_fpi": 0, - "wal_records": 35 - }, - "calls": 1, - "fingerprint": "24726d5fc034be27f24b9a593fe9bee1eec87962ad16b58ab2283e89b8d962ef", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 3.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Heap Fetches": 1, "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", + "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 39, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 2181, - "WAL FPI": 0, - "WAL Records": 35 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "258d7240a18c19ddd4eccc28989e74afa286047daa4df47cbac2302556d0f23f", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 141, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 141, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 121, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -86898,11 +83826,13 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", + "Filter": "(module_id IS NULL)", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -86912,11 +83842,13 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -86929,36 +83861,35 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.16, + "Total Cost": 16.3, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" + "dcim_device.name COLLATE natural_sort", + "dcim_interface._name COLLATE \"C\"" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 11.17, + "Startup Cost": 16.31, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.18, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -86966,41 +83897,43 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" }, { "aggregate": { - "actual_loops": 8, + "actual_loops": 3, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 0.08, + "planner_total_cost": 24.81, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, + "shared_hit_blocks": 105, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 2520, + "wal_bytes": 4401, "wal_fpi": 0, - "wal_records": 32 + "wal_records": 63 }, - "calls": 8, - "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", - "indexes": [], + "calls": 3, + "fingerprint": "e98f740b1f002a34c1f818c3b8094af4f7a11beb450f3a9e2edd93f79aeab8da", + "indexes": [ + "dcim_interface_pkey" + ], "node_types": { - "ModifyTable": 8, - "Result": 8 + "Index Scan": 3, + "ModifyTable": 3 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -87008,7 +83941,7 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Insert", + "Operation": "Update", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, @@ -87016,61 +83949,68 @@ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 378, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 35, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 315, + "WAL Bytes": 1467, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 9, + "actual_rows_times_loops": 9, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 9, + "planner_total_cost": 73.26, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -87079,16 +84019,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "calls": 9, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", "indexes": [ - "dcim_devicetype_pkey" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Index Only Scan": 9, + "Limit": 9 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -87102,27 +84042,28 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Heap Fetches": 1, "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", + "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", + "Plan Width": 4, + "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -87154,20 +84095,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { - "actual_loops": 2, + "actual_loops": 10, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 24.58, + "planner_rows": 80, + "planner_total_cost": 405.29999999999995, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -87176,17 +84117,24 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", + "calls": 10, + "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", "indexes": [ - "dcim_interface_unique_device_name" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "Limit": 2 + "Bitmap Heap Scan": 10, + "Bitmap Index Scan": 10, + "Hash": 10, + "Hash Join": 10, + "Index Scan": 20, + "Nested Loop": 20, + "Seq Scan": 10, + "Sort": 10 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -87197,73 +84145,293 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, - "Filter": "(id <> ?)", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Filter": "(\"default\" IS NOT NULL)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 0, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -87271,13 +84439,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -87285,20 +84461,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.31, + "planner_rows": 4, + "planner_total_cost": 32.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -87307,107 +84483,162 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", - "indexes": [], + "calls": 2, + "fingerprint": "ee08771ddeb49558e2c7be9416eb4a3684e140508ff55489deee4420c4358a84", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Incremental Sort": 2, + "Index Only Scan": 2, + "Index Scan": 2, + "Nested Loop": 2 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 98, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 2005, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 2, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.02, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 3.3, - "Strategy": "Plain", + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.31, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -87415,20 +84646,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 50, - "actual_rows_times_loops": 50, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 50, - "planner_total_cost": 578.5, + "planner_rows": 1, + "planner_total_cost": 31.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 350, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -87437,534 +84668,257 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 50, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "ee3649403cbd94a1e7fe43aa285e583280201118851313e1369cab04339b3f71", + "indexes": [ + "dcim_devicetype_unique_manufacturer_slug", + "dcim_frontporttemplate_unique_module_type_name", + "dcim_moduletype_unique_manufacturer_model" + ], "node_types": { - "Hash": 50, - "Hash Join": 50, - "Limit": 50, - "Seq Scan": 100 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1188, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 22, + "Plan Width": 1180, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.49, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.49, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 137.8, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "45d5d2ed9d0ad1d23c9b95d52ec2e7b5b9237af2c643d322e9fd77ef60343dc9", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "ipam_vlangroup_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Hash": 4, - "Hash Join": 4, - "Index Scan": 4, - "Materialize": 4, - "Nested Loop": 8, - "Seq Scan": 8, - "Sort": 4 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(ipam_vlan.site_id = dcim_site.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 35, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 26, + "Plan Width": 970, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "ipam_vlan", "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 80, - "Plan Width": 26, - "Relation Name": "ipam_vlan", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.8, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 962, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_tagged_vlans", + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 934, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_frontporttemplate", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_type_id = ?)", + "Index Name": "dcim_frontporttemplate_unique_module_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 898, + "Relation Name": "dcim_frontporttemplate", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 24.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 25, - "Plans": [ + }, { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "dcim_site", + "Alias": "dcim_manufacturer", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -87973,10 +84927,10 @@ "Local Written Blocks": 0, "Node Type": "Seq Scan", "Parallel Aware": false, - "Parent Relationship": "Outer", + "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 25, - "Relation Name": "dcim_site", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -87991,6 +84945,36 @@ "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, @@ -87998,7 +84982,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88007,13 +84991,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 28.61, + "Total Cost": 28.64, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88022,46 +85006,42 @@ { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "ipam_vlangroup", + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ipam_vlan.group_id)", - "Index Name": "ipam_vlangroup_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 226, - "Relation Name": "ipam_vlangroup", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.71, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.61, + "Startup Cost": 0.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 34.31, + "Total Cost": 31.67, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88069,23 +85049,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_site.name COLLATE natural_sort", - "ipam_vlangroup.name COLLATE natural_sort", - "ipam_vlangroup.id", - "ipam_vlan.vid", - "ipam_vlan.id" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_frontporttemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 34.43, + "Startup Cost": 31.68, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 34.45, + "Total Cost": 31.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88093,245 +85074,38 @@ }, "Triggers": [] }, - "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.71, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 9, - "Sort": 9 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 32.64, + "planner_total_cost": 8.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 33, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 216, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 4, - "fingerprint": "4ebe96fcf1fa62ccb17cd925d5b56db555732a443856816365f2a0da85e41211", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 4, - "ModifyTable": 4 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 54, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.28, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 34, - "shared_read_blocks": 1, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1562, + "wal_bytes": 1464, "wal_fpi": 0, - "wal_records": 22 + "wal_records": 21 }, "calls": 1, - "fingerprint": "5f179a09e193e472f6a5cf65d73adb07df376694bb72684128bcf2a9d5420a1b", + "fingerprint": "f6ae27a1d1d0012d8151e687d7c1a99487317e44b84a14e36d9ac87d1c0b59a7", "indexes": [ "dcim_interface_pkey" ], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, + "Index Scan": 1, "ModifyTable": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, @@ -88355,60 +85129,29 @@ "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88416,127 +85159,35 @@ } ], "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 2, - "Shared Hit Blocks": 34, - "Shared Read Blocks": 1, - "Shared Written Blocks": 1, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1562, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 15.049999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 33, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1464, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 3, - "planner_total_cost": 27.77, + "planner_rows": 2, + "planner_total_cost": 16.35, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -88546,23 +85197,22 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "62dfc859714bc3e63f5bf2d06a35d167268493044fc8d078f59e76d49703e4dd", + "fingerprint": "fd7edf6ce7a10cbaea9d8d9acfe16e35ccbb7e0838cb1e1d7e8c9f2cb2e8d121", "indexes": [ "dcim_device_name_c27913_idx", - "dcim_interface_parent_id_3e2b159b" + "dcim_interface_device_id_359c6115" ], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, "Incremental Sort": 1, "Index Only Scan": 1, + "Index Scan": 1, "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -88571,8 +85221,8 @@ "quicksort" ], "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 } }, "Local Dirtied Blocks": 0, @@ -88581,12 +85231,12 @@ "Local Written Blocks": 0, "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 3, - "Plan Width": 1227, + "Plan Rows": 2, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, @@ -88599,8 +85249,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 3, - "Plan Width": 1227, + "Plan Rows": 1, + "Plan Width": 2251, "Plans": [ { "Actual Loops": 1, @@ -88637,66 +85287,33 @@ }, { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 5.0, "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, - "Filter": "(channel_id IS NOT NULL)", + "Filter": "(module_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 3, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(parent_id = ?)", + "Plan Rows": 1, + "Plan Width": 2005, "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.16, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.51, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88705,13 +85322,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.29, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.68, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88723,7 +85340,7 @@ "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -88731,10 +85348,10 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 27.71, + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.77, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -88742,7 +85359,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { "aggregate": { @@ -88753,32 +85370,32 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_total_cost": 8.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 39, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1585, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 23 }, "calls": 1, - "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", + "fingerprint": "ffd0eb5fb57cc394e1702cd1e2052c795d886d549086aba655a61ec18d38c2b0", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_interface_pkey" ], "node_types": { "Index Scan": 1, "ModifyTable": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -88786,20 +85403,19 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Delete", + "Operation": "Update", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -88809,204 +85425,702 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 39, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1585, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 23 }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + } + ], + "statements": [ { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "calls": 1, + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 13, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 13 + }, + { + "calls": 1, + "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", + "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", + "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 4 + }, + { + "calls": 13, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", + "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", + "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", + "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 32, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", + "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", + "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", + "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", + "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", + "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", + "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", + "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 4 + }, + { + "calls": 4, + "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", + "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", + "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 18, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 18 + }, + { + "calls": 1, + "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", + "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 9 + }, + { + "calls": 29, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 10, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", + "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", + "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", + "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 29, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 83, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 83 + }, + { + "calls": 4, + "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", + "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", + "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", + "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 10 + }, + { + "calls": 9, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", + "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 13, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", + "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 0 + }, + { + "calls": 8, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", + "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 9, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 4, + "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 8, + "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", + "rows_affected": 8 + }, + { + "calls": 10, + "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", + "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 374, + "actual_rows_per_work_unit": 45.2, + "actual_rows_times_loops": 226, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 374, + "planner_rows": 852, + "planner_total_cost": 6015.690000000005, + "planner_total_cost_per_work_unit": 1203.138000000001, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 1914, + "shared_hit_blocks_per_work_unit": 382.8, + "shared_read_blocks": 14, + "shared_written_blocks": 1, + "statement_calls": 432, + "statement_calls_per_work_unit": 86.4, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 33638, + "wal_fpi": 0, + "wal_records": 461, + "work_units": 5 + } + }, + "description": "Deferred channel reconciliation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 0, + "module_bays": 1, + "modules_before": 0 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 800.106797, + "p95_ms": 849.2166795, + "samples_ns": [ + 798429347, + 847908567, + 811773803, + 772250461, + 852268942, + 806763307, + 805493153, + 793866381, + 803560476, + 800106797, + 749309492, + 748790722, + 771356928, + 830383456, + 754422024 + ] + }, + "wall": { + "median_ms": 1057.152016, + "p95_ms": 1122.9117425999998, + "samples_ns": [ + 1057152016, + 1107073929, + 1072809088, + 1022267048, + 1144104734, + 1056955472, + 1065056720, + 1043849186, + 1094843735, + 1092406596, + 993057623, + 962628581, + 1017005280, + 1113829032, + 1020797355 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 801.017688, + "p95_ms": 805.7952858, + "samples_ns": [ + 799076947, + 806326130, + 801017688 + ] + }, + "wall": { + "median_ms": 1058.255403, + "p95_ms": 1064.7612726, + "samples_ns": [ + 1058255403, + 1057002281, + 1065484147 + ] + } + } + }, + "name": "module.complete_model_save.reconciliation", + "semantic_result": { + "interface_names": [ + "3:1", + "3:2", + "3:3", + "3:4", + "et-0/0/3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.28, + "planner_rows": 9, + "planner_total_cost": 36.08999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, + "shared_hit_blocks": 36, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1658, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 23 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "6649831d856b035c194aeef7c01bec4a480a8e6bcf0f528211c090a547f00feb", - "indexes": [ - "dcim_interface_pkey" - ], + "calls": 9, + "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 + "Limit": 9, + "Seq Scan": 9 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 2, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 3.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 40, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 4.01, "WAL Buffers Full": 0, - "WAL Bytes": 1658, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 23 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 2, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 33.12, + "planner_total_cost": 24.56, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 140, + "shared_hit_blocks": 70, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 6280, + "wal_bytes": 3140, "wal_fpi": 0, - "wal_records": 88 + "wal_records": 44 }, - "calls": 4, - "fingerprint": "6ba4d5011022ae20a9a29882519f481a9ebafff1b1a1bff410f8cf3f66a2875a", + "calls": 2, + "fingerprint": "0705ea8939d1a0e0d45d0bb2768ca009f23502642eb2bb6b3f357c1b8888602c", "indexes": [ "dcim_interface_pkey" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "ModifyTable": 4 + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "ModifyTable": 2 }, "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", "plan": { @@ -89068,7 +86182,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.27, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -89082,10 +86196,10 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -89097,10 +86211,10 @@ "Shared Hit Blocks": 35, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 1570, "WAL FPI": 0, @@ -89112,380 +86226,148 @@ }, { "aggregate": { - "actual_loops": 23, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 184, - "planner_total_cost": 913.7900000000002, + "planner_rows": 0, + "planner_total_cost": 12.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 3274, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 34 }, - "calls": 23, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "calls": 1, + "fingerprint": "0922f5e01bd6a9526f36fb2c1c99efa08a6cdcaa8d0f3a8a58590befe368c094", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_interface_pkey" ], "node_types": { - "Bitmap Heap Scan": 23, - "Bitmap Index Scan": 23, - "Hash": 23, - "Hash Join": 23, - "Index Scan": 46, - "Nested Loop": 46, - "Seq Scan": 23, - "Sort": 23 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Exact Heap Blocks": 2, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 378, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 48, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 3274, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 34 }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" }, { "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 10, + "actual_loops": 4, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 10, - "planner_total_cost": 81.4, + "planner_rows": 4, + "planner_total_cost": 49.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, + "shared_hit_blocks": 16, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -89494,16 +86376,17 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 10, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "calls": 4, + "fingerprint": "0c10c8311b3312b81ecf8ef0878b5526934fc9619f600b31093179dfb38ff798", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 10, - "Limit": 10 + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -89517,37 +86400,68 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Exact Heap Blocks": 2, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -89555,13 +86469,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -89569,20 +86483,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 1, + "planner_total_cost": 21.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 21, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -89592,272 +86506,36 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], + "fingerprint": "0c3c3db888027a7cb714ba6460d5833f6acc7de31821030b16b976ad0e83427a", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "86538109715723a243393c67cc277ff7e4ec13d48d425a9559056296a2f33bd4", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 31.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 21, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8690e4eb99399ac127942b52b55c0addd389e39a35c694e93a11380b6b23ed53", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -89866,16 +86544,17 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, + "Plan Rows": 1, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -89883,8 +86562,8 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, + "Plan Rows": 1, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, @@ -89892,8 +86571,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -89902,7 +86581,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 262, + "Plan Width": 829, "Plans": [ { "Actual Loops": 1, @@ -89910,7 +86589,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -89920,37 +86599,158 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 254, + "Plan Width": 640, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 9, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 9.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -89958,8 +86758,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", + "Actual Rows": 1.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -89969,32 +86769,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.3, + "Total Cost": 12.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90003,7 +86803,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "T6", + "Alias": "T5", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -90014,8 +86814,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, @@ -90030,15 +86830,15 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.32, + "Total Cost": 15.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90046,11 +86846,10 @@ }, { "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -90058,172 +86857,76 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.06, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 18, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 20.43, + "Total Cost": 18.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 5, + "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.17, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 5, + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 21, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.68, + "Total Cost": 21.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90234,21 +86937,10 @@ "Shared Hit Blocks": 21, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.73, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.75, + "Total Cost": 21.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90256,20 +86948,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.49, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -90279,23 +86971,126 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "86de9cd145df632d3c8df49f0e359fe5764d799e91b6d3e8279e2f23ad403124", + "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 2, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 284.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", + "indexes": [ + "dcim_interface_vdcs_interface_id_6d58dbaf", + "dcim_virtua_name_079d4d_idx" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Incremental Sort": 4, + "Index Scan": 4, + "Materialize": 4, + "Nested Loop": 4 + }, + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Full-sort Groups": { @@ -90314,16 +87109,16 @@ "Local Written Blocks": 0, "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1227, + "Plan Rows": 8, + "Plan Width": 154, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -90332,102 +87127,130 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1227, + "Plan Rows": 8, + "Plan Width": 154, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, + "Alias": "dcim_virtualdevicecontext", "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", + "Index Name": "dcim_virtua_name_079d4d_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", + "Plan Rows": 90, + "Plan Width": 154, + "Relation Name": "dcim_virtualdevicecontext", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 45.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Loops": 0, + "Actual Rows": 0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 2, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 981, + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 2.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_vdcs", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_vdcs", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.27, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 14.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90436,13 +87259,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.39, + "Startup Cost": 4.36, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 70.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90450,22 +87273,20 @@ } ], "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" + "dcim_virtualdevicecontext.name" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_virtualdevicecontext.name COLLATE natural_sort", + "dcim_virtualdevicecontext.id" ], - "Startup Cost": 16.44, + "Startup Cost": 12.66, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.49, + "Total Cost": 71.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90473,20 +87294,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.16, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -90495,108 +87316,79 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "94a7f4df46a323222c424b26c7669806fff4925d9b34373455d02896cfbd1985", + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", "indexes": [ - "dcim_interface_unique_device_name" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, - "Filter": "(id <> ?)", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90604,20 +87396,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 15.049999999999999, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -90626,69 +87418,79 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", - "indexes": [], + "calls": 1, + "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], "node_types": { - "Limit": 5, - "Seq Scan": 5 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90696,111 +87498,113 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.29, + "planner_rows": 0, + "planner_total_cost": 12.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 35, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1467, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "9f6d1c068ddcacef5e49e9dc4abff6ba7a8d5691ad921b40085ec7b33cdd60c3", + "fingerprint": "2e057f8b0655da887525cd3e734b188565d5c3ca1ee16a4dad45340647812738", "indexes": [ - "dcim_interface_unique_parent_channel_id" + "dcim_interface_pkey" ], "node_types": { - "Index Only Scan": 1, - "Limit": 1, - "Result": 1 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 2, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Parent Relationship": "InitPlan", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2, + "Plan Width": 378, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Backward", + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.26, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.28, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.26, - "Subplan Name": "InitPlan 1", + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, "Total Cost": 12.28, @@ -90810,35 +87614,36 @@ "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 35, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 12.28, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1467, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" + "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, + "actual_loops": 5, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 72, - "planner_total_cost": 129.33, + "planner_rows": 5, + "planner_total_cost": 20.049999999999997, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, + "shared_hit_blocks": 20, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -90847,76 +87652,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], + "calls": 5, + "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 9, - "Bitmap Index Scan": 9 + "Limit": 5, + "Seq Scan": 5 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -90924,370 +87722,189 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_rows": 0, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 319, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, "calls": 1, - "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 319, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 8, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 65.76, + "planner_rows": 0, + "planner_total_cost": 0.08, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 2520, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 32 }, - "calls": 4, - "fingerprint": "b3777b38207c60808a9fdc334525ad008c42e43de9ede4317147890f1d3e5335", - "indexes": [ - "extras_tag_pkey", - "extras_tagg_content_717743_idx" - ], + "calls": 8, + "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", + "indexes": [], "node_types": { - "Index Scan": 8, - "Nested Loop": 8, - "Seq Scan": 4, - "Sort": 4, - "Unique": 4 + "ModifyTable": 8, + "Result": 8 }, - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Unique", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 916, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_taggeditem", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((content_type_id = django_content_type.id) AND (object_id = ?))", - "Index Name": "extras_tagg_content_717743_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 12, - "Relation Name": "extras_taggeditem", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_tag", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_taggeditem.tag_id)", - "Index Name": "extras_tag_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 916, - "Relation Name": "extras_tag", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_tag.weight", - "extras_tag.name", - "extras_tag.slug", - "extras_tag.created", - "extras_tag.last_updated", - "extras_tag.owner_id", - "extras_tag.id", - "extras_tag.color", - "extras_tag.description" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.41, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.42, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 16.41, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.44, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 315, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { @@ -91298,9 +87915,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 5, - "planner_total_cost": 33.41, + "planner_total_cost": 34.41, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, + "shared_hit_blocks": 28, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -91310,7 +87927,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b522042a5e58eb4cbf5ab6ec38a5f1c3b101feb993b2bc1978d455321cacf49d", + "fingerprint": "3e412f8824ff5164543c7744bed638ab38d61871e94ade7a21f187802fa3e84c", "indexes": [ "dcim_device_name_c27913_idx" ], @@ -91416,13 +88033,13 @@ "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, + "Shared Hit Blocks": 26, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.06, + "Total Cost": 26.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91431,13 +88048,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 27, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 33.27, + "Total Cost": 34.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91449,7 +88066,7 @@ "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 27, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -91457,10 +88074,10 @@ "dcim_interface.device_id", "dcim_interface._name COLLATE \"C\"" ], - "Startup Cost": 33.32, + "Startup Cost": 34.32, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 33.41, + "Total Cost": 34.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91472,16 +88089,16 @@ }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 398.24, + "planner_rows": 1, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -91490,97 +88107,60 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", "indexes": [ - "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "wireless_wi_ssid_64a9ce_idx" + "dcim_devicetype_pkey" ], "node_types": { - "Index Only Scan": 8, - "Nested Loop": 4 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 90, + "Plan Rows": 1, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "wireless_wirelesslan", + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Heap Fetches": 0, - "Index Name": "wireless_wi_ssid_64a9ce_idx", + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 90, - "Relation Name": "wireless_wirelesslan", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 45.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_wireless_lans", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", - "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_interface_wireless_lans", + "Plan Width": 707, + "Relation Name": "dcim_devicetype", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.91, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91588,13 +88168,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.29, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 99.56, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91602,90 +88182,78 @@ }, "Triggers": [] }, - "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 4, - "planner_total_cost": 32.24, + "planner_total_cost": 67.4, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 270, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 5 + "wal_records": 0 }, - "calls": 1, - "fingerprint": "cdd8b253e3555e87200c8c049d183c5b05ad3ffa03a4c40b1cc1c397eb34c6ce", + "calls": 4, + "fingerprint": "4243c2cc34631c6006d3185cf384e0af294dad750c60c1746d4200bd1354d228", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" + "extras_tag_pkey" ], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Incremental Sort": 1, - "Index Scan": 1, - "LockRows": 1, - "Nested Loop": 1 + "Index Scan": 4, + "Nested Loop": 8, + "Seq Scan": 8, + "Sort": 4, + "Unique": 4 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "LockRows", + "Node Type": "Unique", "Parallel Aware": false, - "Plan Rows": 4, - "Plan Width": 2068, + "Plan Rows": 1, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 2068, + "Plan Rows": 1, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Inner Unique": true, + "Join Filter": "(extras_taggeditem.content_type_id = django_content_type.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -91694,101 +88262,131 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 2068, + "Plan Rows": 1, + "Plan Width": 916, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 863, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 4, - "Plan Width": 987, + "Plan Width": 920, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 12.0, + "Actual Rows": 0.0, + "Alias": "extras_taggeditem", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ANY ('?'::bigint[]))", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, + "Filter": "(object_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 12, + "Relation Name": "extras_taggeditem", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.54, + "Total Cost": 2.96, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_tag", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_taggeditem.tag_id)", + "Index Name": "extras_tag_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 916, + "Relation Name": "extras_tag", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(id = ANY ('?'::bigint[]))", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 12.55, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.9, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91797,36 +88395,41 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 12.67, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 32.09, + "Total Cost": 16.81, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "extras_tag.weight", + "extras_tag.name", + "extras_tag.slug", + "extras_tag.created", + "extras_tag.last_updated", + "extras_tag.owner_id", + "extras_tag.id", + "extras_tag.color", + "extras_tag.description" ], - "Startup Cost": 32.13, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 16.82, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 32.2, + "Total Cost": 16.82, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91834,34 +88437,34 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 32.13, + "Startup Cost": 16.82, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 32.24, + "Total Cost": 16.85, "WAL Buffers Full": 0, - "WAL Bytes": 270, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 5 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" + "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 27.089999999999996, + "planner_rows": 2, + "planner_total_cost": 20.49, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -91870,69 +88473,194 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 9, - "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", - "indexes": [], + "calls": 1, + "fingerprint": "42fd8c58b212385d0dfb0ef03b938cf4bf5baa6e89e8dc02ea929f3f3e917285", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], "node_types": { - "Limit": 9, - "Seq Scan": 9 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, + "Plan Rows": 2, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Width": 1227, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 20.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 20.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 20.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -91940,243 +88668,318 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 16.56, + "planner_rows": 1, + "planner_total_cost": 3.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 78, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 3010, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 44 + "wal_records": 0 }, - "calls": 2, - "fingerprint": "df2bb8f8ad1d3c70935c5bb6221d37363568ccf21d5912c40b35d10e0f4fc3c4", - "indexes": [ - "dcim_interface_pkey" - ], + "calls": 1, + "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "ModifyTable": 2 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Aggregate", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 2, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, + "Plan Width": 98, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 3.0, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 0, + "Plan Width": 98, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.27, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 3.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 39, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 3.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 3.31, "WAL Buffers Full": 0, - "WAL Bytes": 1505, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 22 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 1, + "planner_rows": 1, + "planner_total_cost": 11.18, + "shared_dirtied_blocks": 0, "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 319, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, "calls": 1, - "fingerprint": "e6e60d8b3657c14565a93f604893ff25728f38324c3044c04a7e7ef22387de45", - "indexes": [], + "fingerprint": "45bf8d6c0ee76807d0df879c6c274fccec89426f89da8a8588953b733c889a9a", + "indexes": [ + "dcim_moduletype_pkey" + ], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 141, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Plan Width": 141, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 121, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 11.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.18, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, + "actual_loops": 9, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.7, + "planner_rows": 9, + "planner_total_cost": 73.71, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -92185,61 +88988,60 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 5, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", + "calls": 9, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", "indexes": [ - "dcim_device_name_c27913_idx" + "extras_subscription_unique_per_object_and_user" ], "node_types": { - "Index Only Scan": 5, - "Limit": 5 + "Index Scan": 9, + "Sort": 9 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", + "Plan Width": 16, + "Relation Name": "extras_subscription", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -92250,10 +89052,17 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -92261,20 +89070,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 23, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.16, + "planner_rows": 184, + "planner_total_cost": 932.1899999999996, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 23, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -92283,17 +89092,24 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "ef078615183a2af4c7a7cf6542c85158d0f32b5e3215f5982636460dfcafe135", + "calls": 23, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ - "dcim_interface_unique_parent_channel_id" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 + "Bitmap Heap Scan": 23, + "Bitmap Index Scan": 23, + "Hash": 23, + "Hash Join": 23, + "Index Scan": 46, + "Nested Loop": 46, + "Seq Scan": 23, + "Sort": 23 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -92304,73 +89120,291 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 2, - "Filter": "(id <> ?)", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 2.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "((parent_id = ?) AND (channel_id = ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 0, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -92378,13 +89412,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -92392,216 +89434,332 @@ }, "Triggers": [] }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 131.92, + "planner_rows": 0, + "planner_total_cost": 32.64, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, + "shared_hit_blocks": 12, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 216, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, - "calls": 8, - "fingerprint": "f5931459c983b29c0bd13c439547d43d830e882b8c02ded63145eecb3651d40e", + "calls": 4, + "fingerprint": "4ebe96fcf1fa62ccb17cd925d5b56db555732a443856816365f2a0da85e41211", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 + "Index Scan": 4, + "ModifyTable": 4 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1227, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1227, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 54, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 4, + "planner_total_cost": 49.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 16, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "64719873e55e7a6844626de5a39d18bb685264abaf2d04418c61140a8c3c45d0", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Limit": 4 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 981, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.39, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.44, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.49, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -92609,20 +89767,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 9, + "actual_rows_times_loops": 9, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_rows": 9, + "planner_total_cost": 119.07000000000002, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 45, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -92631,14 +89789,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "f9c75c7c0b6a4c79ed9f5bf5fa1407b8b3db30b7fee5eac241d6389b0d63400e", - "indexes": [], + "calls": 9, + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 9, + "Limit": 9, + "Nested Loop": 9, + "Seq Scan": 9 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -92652,34 +89814,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 189, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -92687,13 +89914,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -92701,505 +89928,72 @@ }, "Triggers": [] }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 5, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 9, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 4, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 3, + "planner_total_cost": 34.32, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 28, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", - "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 23, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 9 - }, - { - "calls": 9, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", - "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 10, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 10 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 9 - }, - { - "calls": 29, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 29, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 50, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 50 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 4, - "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 4, - "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", - "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 221, - "actual_rows_per_work_unit": 27.4, - "actual_rows_times_loops": 137, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 221, - "planner_rows": 524, - "planner_total_cost": 3582.48, - "planner_total_cost_per_work_unit": 716.496, - "shared_dirtied_blocks": 3, - "shared_hit_blocks": 1203, - "shared_hit_blocks_per_work_unit": 240.6, - "shared_read_blocks": 1, - "shared_written_blocks": 1, - "statement_calls": 279, - "statement_calls_per_work_unit": 55.8, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 18016, - "wal_fpi": 0, - "wal_records": 257, - "work_units": 5 - } - }, - "description": "Deferred channel reconciliation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 5, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 611.081947, - "p95_ms": 648.4423437, - "samples_ns": [ - 656362108, - 638913795, - 625321449, - 608223919, - 611081947, - 630979060, - 619425656, - 645048159, - 600751209, - 598939545, - 607361097, - 603659027, - 578782478, - 578349726, - 630436856 - ] - }, - "wall": { - "median_ms": 807.278396, - "p95_ms": 838.6323405, - "samples_ns": [ - 847391017, - 834878622, - 814319102, - 805535997, - 798704794, - 829072908, - 815917352, - 833921287, - 788875884, - 783367589, - 807278396, - 778341068, - 754220403, - 760423630, - 812662400 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 639.800823, - "p95_ms": 655.5630288, - "samples_ns": [ - 639800823, - 615660308, - 657314385 - ] - }, - "wall": { - "median_ms": 826.714249, - "p95_ms": 853.2754378, - "samples_ns": [ - 826714249, - 812707141, - 856226681 - ] - } - } - }, - "name": "module.direct_callback.reconciliation", - "semantic_result": { - "interface_names": [ - "3:1", - "3:2", - "3:3", - "3:4", - "et-0/0/3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 45, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1430, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "00685b0543ee8173ab522e12e049489bf5ebb80e9ff76a7ad597a93905550b4c", + "fingerprint": "71cd61beb47e4c991f5b0413e95063631f65c7e9cce807ccddcedc2b358a23c8", "indexes": [ - "dcim_interface_pkey" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 45, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1430, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], - "node_types": { - "Limit": 1, + "Incremental Sort": 1, + "Index Only Scan": 1, "Nested Loop": 1, - "Seq Scan": 2 + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 3, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -93208,35 +90002,37 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 3, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "core_objecttype", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.05, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -93244,11 +90040,11 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", + "Actual Rows": 4.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -93256,46 +90052,56 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Rows": 3, + "Plan Width": 981, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 26, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.06, + "Total Cost": 26.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 34.24, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 34.26, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 34.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -93303,20 +90109,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 10, + "actual_rows_times_loops": 10, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 10, + "planner_total_cost": 81.4, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 20, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -93325,16 +90131,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "0aec08a209907d95ef005ef34cc8b388ef5956d9e4b0bddfb0f210ad849b479e", + "calls": 10, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", "indexes": [ "dcim_device_name_c27913_idx" ], "node_types": { - "Index Only Scan": 1, - "Limit": 1 + "Index Scan": 10, + "Limit": 10 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -93348,7 +90154,7 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 8, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, @@ -93356,19 +90162,18 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "((id > ?) AND (id = ?))", + "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 8, + "Plan Width": 857, "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -93401,20 +90206,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -93424,50 +90229,140 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", + "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 50, + "actual_rows_times_loops": 50, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 50, + "planner_total_cost": 686.5000000000005, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 250, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 50, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", + "indexes": [ + "core_objecttype_pkey" + ], + "node_types": { + "Index Scan": 50, + "Limit": 50, + "Nested Loop": 50, + "Seq Scan": 50 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -93477,36 +90372,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1242, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -93515,11 +90408,11 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -93529,56 +90422,46 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -93586,7 +90469,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { @@ -93596,144 +90479,142 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.31, + "planner_rows": 0, + "planner_total_cost": 12.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 34, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1562, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 22 }, "calls": 1, - "fingerprint": "0fd70dee23075f61e903c6213865a3716cb55a296527729a166f09226a2eb0d9", + "fingerprint": "85d8935cd4aeaeb40b6de79ac95d23c002bbc55c37146291d8a032d7ed7ef309", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_devicebay_unique_device_name" + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 2, - "Nested Loop": 1 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", - "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Exact Heap Blocks": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_devicebay", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_devicebay_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_devicebay", + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 34, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1562, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 22 }, "Triggers": [] }, - "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" + "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 2, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 2, + "planner_total_cost": 32.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -93742,79 +90623,108 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "calls": 2, + "fingerprint": "956343b9f4df537450a85ea2764a7e45dd4224a2fe8f06d28b8c73d0682aed37", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_interface_unique_device_name" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, + "Exact Heap Blocks": 1, + "Filter": "(id <> ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 12.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 12.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -93822,20 +90732,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 4, + "planner_total_cost": 32.68, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -93844,20 +90754,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "calls": 4, + "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_cabletermination_unique_termination" ], "node_types": { - "Index Only Scan": 1, - "Limit": 1 + "Index Only Scan": 4, + "Limit": 4 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -93871,13 +90781,13 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, + "Alias": "dcim_cabletermination", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Heap Fetches": 0, + "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", + "Index Name": "dcim_cabletermination_unique_termination", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -93888,17 +90798,17 @@ "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_device", + "Relation Name": "dcim_cabletermination", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -93906,13 +90816,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -93920,43 +90830,44 @@ }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 3, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 8.14, + "planner_total_cost": 36.839999999999996, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 117, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 4515, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 66 }, - "calls": 1, - "fingerprint": "309131009a04f8af46c29da2903ee003d1a6d55a02c37ee24dd51eac2b3c793b", + "calls": 3, + "fingerprint": "9be7d17b07d8163e2df141c8b61f14f7bc4674fd764a5ca04eb7e9f4a94c79e6", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Bitmap Heap Scan": 3, + "Bitmap Index Scan": 3, + "ModifyTable": 3 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -93972,68 +90883,99 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Exact Heap Blocks": 2, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 46, - "Relation Name": "dcim_device", + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 39, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 1505, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 22 }, "Triggers": [] }, - "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 5, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.66, + "planner_rows": 5, + "planner_total_cost": 15.049999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 55, + "shared_hit_blocks": 15, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -94042,20 +90984,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "35edc223229aecec068d5880a7db8e587245a3e3765f27c0f3b550ca1f2d48f9", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], + "calls": 5, + "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", + "indexes": [], "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Limit": 5, + "Seq Scan": 5 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -94066,356 +91002,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 782, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 774, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 564, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 556, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 528, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 44, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 46, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 48, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 51, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 52, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 55, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.38, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.65, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -94423,24 +91040,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 55, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.66, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 31.66, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -94448,205 +91054,324 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, + "planner_rows": 1, + "planner_total_cost": 12.29, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 319, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 4 + "wal_records": 0 }, "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], + "fingerprint": "9f6d1c068ddcacef5e49e9dc4abff6ba7a8d5691ad921b40085ec7b33cdd60c3", + "indexes": [ + "dcim_interface_unique_parent_channel_id" + ], "node_types": { - "ModifyTable": 1, + "Index Only Scan": 1, + "Limit": 1, "Result": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Result", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 2, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Limit", "Parallel Aware": false, - "Parent Relationship": "Outer", + "Parent Relationship": "InitPlan", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 2, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Backward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.26, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.26, + "Subplan Name": "InitPlan 1", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 12.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 12.29, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 4, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.32, + "planner_rows": 4, + "planner_total_cost": 34.41, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 36, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 270, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 5 }, "calls": 1, - "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", - "indexes": [], + "fingerprint": "a2418f81c76d295e96fcdb187335d180785169f9e4f934f0f998a2450b88f3f8", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Incremental Sort": 1, + "Index Scan": 1, + "LockRows": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "LockRows", "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, + "Plan Rows": 4, + "Plan Width": 2068, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Local Dirtied Blocks": 0, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 26, + "Peak Sort Space Used": 26 + } + }, + "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, + "Plan Rows": 4, + "Plan Width": 2068, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Actual Rows": 4.0, "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, + "Plan Rows": 4, + "Plan Width": 2068, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 863, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ANY ('?'::bigint[]))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 4, + "Plan Width": 987, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 26, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 26.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 34.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 28, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "id" + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 4.02, + "Startup Cost": 34.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.02, + "Total Cost": 34.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -94654,22 +91379,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 36, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.3, - "Strategy": "Plain", + "Startup Cost": 34.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.32, + "Total Cost": 34.41, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 270, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 5 }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" }, { "aggregate": { @@ -94680,9 +91404,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_total_cost": 3.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -94692,15 +91416,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], + "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", + "indexes": [], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -94714,37 +91436,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 131, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -94752,13 +91471,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -94766,174 +91485,248 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" }, { "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 104.13, + "planner_rows": 0, + "planner_total_cost": 12.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 63, + "shared_hit_blocks": 40, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1658, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 23 }, - "calls": 9, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "b11991d58e1516281563f75a49c626a6d4ee799759a4fac7eab9f21fcff42efb", + "indexes": [ + "dcim_interface_pkey" + ], "node_types": { - "Hash": 9, - "Hash Join": 9, - "Limit": 9, - "Seq Scan": 18 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", - "Inner Unique": true, - "Join Type": "Inner", + "Exact Heap Blocks": 2, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 2003, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 3.0, "Async Capable": false, "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", + "Plan Rows": 1, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 6.64, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - }, + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 40, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 1658, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 24.58, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "bb7653d521da9bfecac19c5537129b9aab47fa03e8d2d3b6966e3f7b63bbbf16", + "indexes": [ + "dcim_interface_unique_parent_channel_id" + ], + "node_types": { + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Index Cond": "((parent_id = ?) AND (channel_id = ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -94941,13 +91734,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -94955,20 +91748,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 2, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -94977,14 +91770,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "calls": 2, + "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", "indexes": [ "dcim_moduletype_pkey" ], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Index Scan": 2, + "Limit": 2 }, "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { @@ -95024,7 +91817,7 @@ "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -95038,7 +91831,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -95056,142 +91849,231 @@ }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.14, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 0, - "shared_read_blocks": 1, + "planner_rows": 16, + "planner_total_cost": 163.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 48, + "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 601, - "wal_fpi": 1, - "wal_records": 1 + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 }, - "calls": 1, - "fingerprint": "496ca2e09c3ba0e0efbd07738272f236602e331c9ef673890afcbaf2a3959e6a", - "indexes": [], + "calls": 8, + "fingerprint": "c5e32a0f839e5a3744b4577904c620fef8c7aac2c90fab1935c3363670cfbc3a", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1, - "Sort": 1 + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 }, - "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 984, + "Plan Rows": 2, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 984, + "Plan Width": 1227, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", + "Heap Fetches": 1, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 984, - "Relation Name": "core_job", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.13, + "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 601, - "WAL FPI": 1, - "WAL Records": 1 - } - ], - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.14, - "WAL Buffers Full": 0, - "WAL Bytes": 601, - "WAL FPI": 1, - "WAL Records": 1 + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 2, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 981, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 4.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 } ], - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 1.14, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 20.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.14, + "Total Cost": 20.49, "WAL Buffers Full": 0, - "WAL Bytes": 601, - "WAL FPI": 1, - "WAL Records": 1 + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 2, + "actual_loops": 4, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.38, + "planner_rows": 32, + "planner_total_cost": 398.24, "shared_dirtied_blocks": 0, "shared_hit_blocks": 4, "shared_read_blocks": 0, @@ -95202,60 +92084,97 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "calls": 4, + "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", "indexes": [ - "extras_subscription_unique_per_object_and_user" + "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "wireless_wi_ssid_64a9ce_idx" ], "node_types": { - "Index Scan": 2, - "Sort": 2 + "Index Only Scan": 8, + "Nested Loop": 4 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, + "Plan Rows": 8, + "Plan Width": 90, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_subscription", + "Alias": "wireless_wirelesslan", "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", + "Heap Fetches": 0, + "Index Name": "wireless_wi_ssid_64a9ce_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", + "Plan Rows": 60, + "Plan Width": 90, + "Relation Name": "wireless_wirelesslan", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 45.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_wireless_lans", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 0, + "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", + "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", + "Plan Width": 8, + "Relation Name": "dcim_interface_wireless_lans", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 0.91, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95263,20 +92182,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, + "Startup Cost": 0.29, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 99.56, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95284,20 +92196,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, + "planner_rows": 2, + "planner_total_cost": 32.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -95306,124 +92218,94 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", + "calls": 2, + "fingerprint": "cc593cafb298069c7854bf668f0d10932a2151983d3668420e5c7cfb54d34fb4", "indexes": [ - "dcim_moduletype_pkey" + "dcim_interface_unique_device_name" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Exact Heap Blocks": 2, + "Filter": "(id <> ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 12.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 12.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.16, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95431,20 +92313,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, + "Startup Cost": 12.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.18, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95452,20 +92327,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 9, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_rows": 72, + "planner_total_cost": 129.33, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 9, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -95474,69 +92349,76 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", - "indexes": [], + "calls": 9, + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Bitmap Heap Scan": 9, + "Bitmap Index Scan": 9 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 8, + "Plan Width": 24, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95544,20 +92426,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_rows": 2, + "planner_total_cost": 32.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -95566,35 +92448,108 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", - "indexes": [], + "calls": 2, + "fingerprint": "e054dff730b3f4426c8d7cb6d1c2ae4a8b5f0c9f285b24365047221d9b2cffee", + "indexes": [ + "dcim_interface_unique_device_name" + ], "node_types": { - "Result": 1 + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT pg_advisory_lock(?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Filter": "(id <> ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 12.27, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 12.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95602,20 +92557,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 158.92, + "planner_rows": 5, + "planner_total_cost": 31.75, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 21, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -95624,28 +92579,24 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 4, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "calls": 1, + "fingerprint": "e1d3c683afb61d257b340778e467eb63248a5cc5d2b8a816d53e46bf7f29ae5d", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_devicetype_pkey", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Hash": 4, - "Hash Join": 4, - "Index Scan": 8, - "Nested Loop": 8, + "Index Scan": 2, + "Materialize": 1, + "Nested Loop": 5, "Seq Scan": 4, - "Sort": 4 + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -95654,16 +92605,17 @@ "Local Written Blocks": 0, "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Inner Unique": false, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -95671,16 +92623,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 5, + "Plan Width": 730, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 5.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -95688,193 +92640,193 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 5, + "Plan Width": 694, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 262, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 254, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 9.3, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 12.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, + "Filter": "(module_type_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 5, + "Plan Width": 440, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 8.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95882,61 +92834,153 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 20.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Actual Loops": 5, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Maximum Storage": 17, + "Node Type": "Materialize", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.12, + "Storage": "Memory", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 11.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 21, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 31.68, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -95944,79 +92988,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 21, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 39.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", - "indexes": [], - "node_types": { - "Result": 1 - }, - "normalized_sql": "SELECT pg_advisory_unlock(?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 31.73, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 31.75, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -96024,20 +93013,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 5, + "actual_rows_times_loops": 5, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, + "planner_rows": 5, + "planner_total_cost": 40.7, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 10, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -96046,16 +93035,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "calls": 5, + "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", "indexes": [ "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 2, - "Limit": 2 + "Index Only Scan": 5, + "Limit": 5 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -96069,7 +93058,7 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, @@ -96077,6 +93066,7 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, + "Heap Fetches": 1, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -96084,11 +93074,11 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 4, "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -96121,20 +93111,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 2, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, + "planner_rows": 2, + "planner_total_cost": 24.58, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -96143,18 +93133,17 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", + "calls": 2, + "fingerprint": "ef078615183a2af4c7a7cf6542c85158d0f32b5e3215f5982636460dfcafe135", "indexes": [ - "dcim_moduletype_pkey" + "dcim_interface_unique_parent_channel_id" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Bitmap Heap Scan": 2, + "Bitmap Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -96165,102 +93154,73 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Exact Heap Blocks": 2, + "Filter": "(id <> ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Index Cond": "((parent_id = ?) AND (channel_id = ?))", + "Index Name": "dcim_interface_unique_parent_channel_id", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.16, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -96271,17 +93231,10 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.18, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -96289,20 +93242,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" + "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.1, + "planner_total_cost": 3.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -96312,17 +93265,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8b5bd3784921b667c5a167073be74d82279688df52604ad05fae8a06cf7136f8", + "fingerprint": "f9c75c7c0b6a4c79ed9f5bf5fa1407b8b3db30b7fee5eac241d6389b0d63400e", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -96332,15 +93285,15 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 189, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "(job_id = '?'::uuid)", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -96349,17 +93302,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "core_job", + "Plan Width": 189, + "Relation Name": "dcim_module", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.1, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -96367,13 +93320,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.1, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -96381,20 +93334,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" + "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, + "planner_rows": 32, + "planner_total_cost": 140.72, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -96403,52 +93356,46 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "97b5fa96c9cf664b0e108230bb7240da416dcf62c0264d9229f618b719988111", + "calls": 4, + "fingerprint": "fa6b84bd49a2ba4dbd490588eff457bf662c528bdaf0265d29a7b5f22085aeba", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "dcim_site_pkey", + "ipam_vlangroup_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Hash": 4, + "Hash Join": 4, + "Index Scan": 8, + "Nested Loop": 8, + "Seq Scan": 4, + "Sort": 4 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 8, + "Plan Width": 253, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -96456,51 +93403,238 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, + "Plan Rows": 8, + "Plan Width": 253, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 35, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 26, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "ipam_vlan", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 80, + "Plan Width": 26, + "Relation Name": "ipam_vlan", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.8, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_interface_tagged_vlans", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_site", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ipam_vlan.site_id)", + "Index Name": "dcim_site_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 25, + "Relation Name": "dcim_site", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.44, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 14.6, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 29.34, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "ipam_vlangroup", "Async Capable": false, "Disabled": false, - "Filter": "(module_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, + "Index Cond": "(id = ipam_vlan.group_id)", + "Index Name": "ipam_vlangroup_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -96509,56 +93643,56 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Width": 226, + "Relation Name": "ipam_vlangroup", + "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 0.71, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 14.74, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 35.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_site.name COLLATE natural_sort", + "ipam_vlangroup.name COLLATE natural_sort", + "ipam_vlangroup.id", + "ipam_vlan.vid", + "ipam_vlan.id" ], - "Startup Cost": 16.3, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 35.16, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 35.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -96566,117 +93700,467 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, + "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" + } + ], + "statements": [ { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, "calls": 1, - "fingerprint": "97f18453092460d3cfc02cef47252029d1c898446e962867f08f634501875467", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 40, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 40, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" + "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", + "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", + "rows_affected": 1 }, { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, + "calls": 9, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 5, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 9, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 5 + }, + { + "calls": 4, + "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", + "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", + "rows_affected": 4 + }, + { + "calls": 23, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 9 + }, + { + "calls": 9, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", + "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 10, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 10 + }, + { + "calls": 1, + "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 9, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 9 + }, + { + "calls": 29, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 29, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 4, + "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", + "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 50, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 50 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 5 + }, + { + "calls": 5, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 5, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 5 + }, + { + "calls": 9, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 4, + "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 4 + }, + { + "calls": 1, + "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 4 + }, + { + "calls": 4, + "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", + "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", + "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 221, + "actual_rows_per_work_unit": 27.4, + "actual_rows_times_loops": 137, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 221, + "planner_rows": 524, + "planner_total_cost": 3884.15, + "planner_total_cost_per_work_unit": 776.83, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1164, + "shared_hit_blocks_per_work_unit": 232.8, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 279, + "statement_calls_per_work_unit": 55.8, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 18941, + "wal_fpi": 0, + "wal_records": 255, + "work_units": 5 + } + }, + "description": "Deferred channel reconciliation", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 5, + "interfaces_before": 5, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 604.291623, + "p95_ms": 640.0331229, + "samples_ns": [ + 591296627, + 581891731, + 590358808, + 577589411, + 620252718, + 587332736, + 594162182, + 606794725, + 611869867, + 629747474, + 642170316, + 604291623, + 607853137, + 639117183, + 597804373 + ] + }, + "wall": { + "median_ms": 793.477904, + "p95_ms": 850.495817, + "samples_ns": [ + 776667814, + 757998065, + 765075834, + 754143761, + 805048410, + 793477904, + 772965441, + 795973567, + 840351878, + 828934708, + 841742207, + 778097521, + 806016092, + 870920907, + 777890130 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 645.144269, + "p95_ms": 651.5004892999999, + "samples_ns": [ + 652206736, + 645144269, + 628523366 + ] + }, + "wall": { + "median_ms": 826.621157, + "p95_ms": 832.1735368999999, + "samples_ns": [ + 832790468, + 826621157, + 817396675 + ] + } + } + }, + "name": "module.direct_callback.reconciliation", + "semantic_result": { + "interface_names": [ + "3:1", + "3:2", + "3:3", + "3:4", + "et-0/0/3" + ], + "interfaces_after": 5 + } + }, + { + "database": { + "plans": [ + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.27, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 45, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1430, + "wal_fpi": 0, + "wal_records": 21 + }, + "calls": 1, + "fingerprint": "00685b0543ee8173ab522e12e049489bf5ebb80e9ff76a7ad597a93905550b4c", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 45, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 1430, + "WAL FPI": 0, + "WAL Records": 21 + }, + "Triggers": [] + }, + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 25.15, + "planner_total_cost": 4.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -96686,14 +94170,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", + "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", "indexes": [], "node_types": { "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -96707,406 +94190,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.15, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -97114,13 +94225,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.15, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -97128,7 +94239,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { @@ -97139,9 +94250,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 43.43, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -97151,21 +94262,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9d2d4f98c2cfb9d4f88f4f219d98bf91e750416dab0950ff83b405b5a030c2fd", + "fingerprint": "0aec08a209907d95ef005ef34cc8b388ef5956d9e4b0bddfb0f210ad849b479e", "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" + "dcim_device_name_c27913_idx" ], "node_types": { - "Hash": 1, - "Hash Join": 1, - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "Index Only Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -97176,10 +94281,121 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 3589, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Cond": "((id > ?) AND (id = ?))", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, @@ -97187,7 +94403,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -97197,383 +94413,36 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3589, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2994, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2863, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2791, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2084, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", - "Inner Unique": true, - "Join Type": "Right", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1895, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(device_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.28, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.26, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -97582,10 +94451,11 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -97595,11 +94465,12 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", + "Plan Width": 996, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -97614,34 +94485,36 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.4, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 43.41, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 43.42, + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 43.43, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -97649,20 +94522,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_total_cost": 16.31, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -97672,68 +94545,110 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", - "indexes": [], + "fingerprint": "0fd70dee23075f61e903c6213865a3716cb55a296527729a166f09226a2eb0d9", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_devicebay_unique_device_name" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 2, + "Nested Loop": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Nested Loop", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_devicebay", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_devicebay_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_devicebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -97741,20 +94656,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.16, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -97764,236 +94679,78 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9fc916cdc69ae021285de1cecbc14947d0a811e460b8ee7b7a6390204c93ed9f", + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 929, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 39, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 40, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 40, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -98001,7 +94758,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -98012,7 +94769,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 4.47, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, "shared_hit_blocks": 2, "shared_read_blocks": 0, @@ -98024,13 +94781,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "ad08c4d87a3f2bbf2fb24298a3cfe0e6c6f0d814983efbc1eeae1f10a1eb191c", - "indexes": [], + "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Only Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -98044,34 +94803,38 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 22, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "django_content_type", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -98082,102 +94845,10 @@ "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -98185,7 +94856,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { @@ -98198,17 +94869,17 @@ "planner_rows": 0, "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1735, + "wal_bytes": 79, "wal_fpi": 0, - "wal_records": 23 + "wal_records": 1 }, "calls": 1, - "fingerprint": "deb1a179ea341060c677d4d152ebb01cbd16b149e6f51dc3fa4e7a80c7d2c7e7", + "fingerprint": "309131009a04f8af46c29da2903ee003d1a6d55a02c37ee24dd51eac2b3c793b", "indexes": [ "dcim_device_name_c27913_idx" ], @@ -98216,7 +94887,7 @@ "Index Scan": 1, "ModifyTable": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", "plan": { "Plan": { "Actual Loops": 1, @@ -98251,7 +94922,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1684, + "Plan Width": 46, "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", @@ -98271,7 +94942,7 @@ ], "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 30, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -98279,13 +94950,13 @@ "Temp Written Blocks": 0, "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 1735, + "WAL Bytes": 79, "WAL FPI": 0, - "WAL Records": 23 + "WAL Records": 1 }, "Triggers": [] }, - "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" + "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" }, { "aggregate": { @@ -98296,9 +94967,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_total_cost": 4.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -98308,13 +94979,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -98328,12 +94999,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 72, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -98345,17 +95016,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", + "Plan Width": 4, + "Relation Name": "dcim_site", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -98363,13 +95034,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -98377,7 +95048,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { @@ -98388,100 +95059,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 7, - "shared_hit_blocks": 11, - "shared_read_blocks": 8, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1453, - "wal_fpi": 6, - "wal_records": 8 - }, - "calls": 1, - "fingerprint": "f3f133de4243a4f21ac6390901c2a7a0a3fd6c106581404fbd8b828d19fc1189", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_job", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 984, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 984, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 99, - "WAL FPI": 0, - "WAL Records": 1 - } - ], - "Relation Name": "core_job", - "Shared Dirtied Blocks": 7, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 8, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1453, - "WAL FPI": 6, - "WAL Records": 8 - }, - "Triggers": [] - }, - "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.3, + "planner_total_cost": 31.66, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 55, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -98490,434 +95070,3612 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", + "calls": 1, + "fingerprint": "35edc223229aecec068d5880a7db8e587245a3e3765f27c0f3b550ca1f2d48f9", "indexes": [ - "dcim_interface_device_id_359c6115" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 2, - "Limit": 2 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 782, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "00a48dac0e50d45e8aa347f6c079795d6c0cb09d3dffe4ee068f2874e8b385ed", - "normalized_sql": "SELECT %s AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = %s LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1919ddc31043c19525b5f3e5c2021bb0aaa0a6791b7391fe41aee034f5603368", - "normalized_sql": "SELECT pg_advisory_lock(%s)", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22b52f8fdd8b594e0f40265bea1076c4d7f0bd72bd33326a9a504ad5c757b278", - "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" > %s) ORDER BY ? ASC LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "26c8d42cff4acd7965798ced1cb2302a0de077fe35079bf687fd56e33ec956ab", - "normalized_sql": "SELECT pg_advisory_unlock(%s)", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3b2fd5e645edcb20006633441140723a008e260780c415f90ddb03e67f632970", - "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"description\" = %s, \"comments\" = %s, \"_config_context_data\" = %s, \"_config_context_generation\" = %s, \"local_context_data\" = %s, \"config_template_id\" = %s, \"device_type_id\" = %s, \"role_id\" = %s, \"tenant_id\" = %s, \"platform_id\" = %s, \"name\" = %s, \"serial\" = %s, \"asset_tag\" = %s, \"site_id\" = %s, \"location_id\" = %s, \"rack_id\" = %s, \"position\" = %s, \"face\" = %s, \"status\" = %s, \"airflow\" = %s, \"cooling_method\" = %s, \"primary_ip4_id\" = %s, \"primary_ip6_id\" = %s, \"oob_ip_id\" = %s, \"cluster_id\" = %s, \"virtual_chassis_id\" = %s, \"vc_position\" = %s, \"vc_priority\" = %s, \"latitude\" = %s, \"longitude\" = %s, \"console_port_count\" = %s, \"console_server_port_count\" = %s, \"power_port_count\" = %s, \"power_outlet_count\" = %s, \"cooling_intake_count\" = %s, \"cooling_outflow_count\" = %s, \"interface_count\" = %s, \"front_port_count\" = %s, \"rear_port_count\" = %s, \"device_bay_count\" = %s, \"module_bay_count\" = %s, \"inventory_item_count\" = %s WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3c389490b11937715c3d0964bc30ec7b13e51db1c13a2af0099105f714faa656", - "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = %s, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + %s) WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" IN (%s))", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 774, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 564, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 556, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 528, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 44, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 46, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 48, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 51, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 52, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 55, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 55, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, "calls": 1, - "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 0 + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "indexes": [ + "dcim_devicetype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 707, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "5d7a97e86f815b27d234df91ae479de2138442699e863f4ff28d73aa304eb1fd", - "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::jsonb[]) RETURNING \"core_job\".\"id\"", - "rows_affected": 1 + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.38, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], + "node_types": { + "Index Scan": 2, + "Sort": 2 + }, + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 16, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_subscription", + "Async Capable": false, + "Disabled": false, + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.17, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.19, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 + "aggregate": { + "actual_loops": 4, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 32, + "planner_total_cost": 162.12, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 4, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 4, + "Bitmap Index Scan": 4, + "Hash": 4, + "Hash Join": 4, + "Index Scan": 8, + "Nested Loop": 8, + "Seq Scan": 4, + "Sort": 4 + }, + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 2849, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1998, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.76, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 40.39, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 40.53, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 43.43, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 14, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "4d9916cc53dadd68dd3e43f697226bf538ba7961d85475fa5c998591a7e0a691", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" + ], + "node_types": { + "Hash": 1, + "Hash Join": 1, + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 4, + "Sort": 1 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2994, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2863, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2791, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2084, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", + "Inner Unique": true, + "Join Type": "Right", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1895, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(device_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.4, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.41, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 43.42, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.0, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 + "fingerprint": "5e370b38e341e0226b32a4d4e6568428f855b2851d5b9447dd8a62b1d740e753", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Filter": "(job_id = '?'::uuid)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 11.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 + "fingerprint": "6562425cf1d234f623f33e613399a82eb396fb7d4de9566ead0193e45a2421af", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 11.17, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 11.18, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "821b0cf47bc104eac1c0be61b6590a5102a2aaae1aa60ba1f6226bf8142dba44", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", - "rows_affected": 0 + "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", + "indexes": [], + "node_types": { + "Result": 1 + }, + "normalized_sql": "SELECT pg_advisory_lock(?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 13.23, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 9 + "fingerprint": "699a57b943ae9044d684680365d371e478cd150628e463b25ea9aaf1c483b8eb", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 3.02, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.02, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 3.3, + "Strategy": "Plain", + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.31, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 8, + "shared_hit_blocks": 10, + "shared_read_blocks": 8, + "shared_written_blocks": 1, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 941, + "wal_fpi": 6, + "wal_records": 8 + }, "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 + "fingerprint": "6fa637eae63b33c652b9332589ca3c5dc175cd16bc982998ddb457d4023f77c6", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 99, + "WAL FPI": 0, + "WAL Records": 1 + } + ], + "Relation Name": "core_job", + "Shared Dirtied Blocks": 8, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 8, + "Shared Written Blocks": 1, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 941, + "WAL FPI": 6, + "WAL Records": 8 + }, + "Triggers": [] + }, + "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 + "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", + "indexes": [], + "node_types": { + "Result": 1 + }, + "normalized_sql": "SELECT pg_advisory_unlock(?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" }, { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 2, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.28, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 2, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d4343dc9365f085be0168ec3e6c7882c1d9fbde207387e0851ebf489bfc0755d", - "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { - "calls": 1, - "fingerprint": "e236397f933fab343403e0aa5aa12607f0cf386121c81a7e3d60ec370c91425e", - "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = %s AND \"core_job\".\"status\" IN (%s, %s, %s)) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", - "rows_affected": 0 + "aggregate": { + "actual_loops": 9, + "actual_rows_times_loops": 9, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 9, + "planner_total_cost": 123.57000000000002, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 45, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 9, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", + "indexes": [ + "core_objecttype_pkey" + ], + "node_types": { + "Index Scan": 9, + "Limit": 9, + "Nested Loop": 9, + "Seq Scan": 9 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 9.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 41, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", - "normalized_sql": "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\" = %s) LIMIT ?", - "rows_affected": 1 + "fingerprint": "8db132cb7fb9f6d277c1b47c0183a3df300326f227d13abe528c94cee82e5faa", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 40, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 41, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 41, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 9.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.35, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 11, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 + "fingerprint": "97b5fa96c9cf664b0e108230bb7240da416dcf62c0264d9229f618b719988111", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.35, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 + "fingerprint": "97f18453092460d3cfc02cef47252029d1c898446e962867f08f634501875467", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "Limit": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 40, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 40, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" }, { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 25.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 25, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 51, - "actual_rows_per_work_unit": 33.0, - "actual_rows_times_loops": 33, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 51, - "planner_rows": 83, - "planner_total_cost": 614.7899999999998, - "planner_total_cost_per_work_unit": 614.7899999999998, - "shared_dirtied_blocks": 8, - "shared_hit_blocks": 375, - "shared_hit_blocks_per_work_unit": 375.0, - "shared_read_blocks": 9, - "shared_written_blocks": 0, - "statement_calls": 59, - "statement_calls_per_work_unit": 59.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 5617, - "wal_fpi": 7, - "wal_records": 58, - "work_units": 1 - } - }, - "description": "Virtual chassis reapply across 1 module(s)", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 117.909426, - "p95_ms": 134.306368, - "samples_ns": [ - 119953022, - 117909426, - 133640587, - 112739606, - 121069008, - 112570927, - 110891003, - 124408162, - 122326080, - 122397335, - 101309699, - 111854918, - 106331204, - 135859857, - 115082624 - ] - }, - "wall": { - "median_ms": 155.170155, - "p95_ms": 177.4715785, - "samples_ns": [ - 159278508, - 155170155, - 177232576, - 149192727, - 158221042, - 151523288, - 149863797, - 163739305, - 166069682, - 164793496, - 143233532, - 146287704, - 142054780, - 178029251, - 154205860 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 104.190923, - "p95_ms": 119.0646713, - "samples_ns": [ - 120717310, - 103132835, - 104190923 - ] + "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", + "indexes": [], + "node_types": { + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 829, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 25, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 25.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, - "wall": { - "median_ms": 140.867063, - "p95_ms": 158.8876694, - "samples_ns": [ - 160889959, - 140507929, - 140867063 - ] - } - } - }, - "name": "vc.complete_model_save.reapply_1", - "semantic_result": { - "interface_names": [ - "et-2/0/1" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ { "aggregate": { "actual_loops": 1, @@ -98927,9 +98685,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 11.12, + "planner_total_cost": 3.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -98939,14 +98697,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", + "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", "indexes": [], "node_types": { "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 2 + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -98960,96 +98717,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -99057,13 +98752,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -99071,20 +98766,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, + "planner_rows": 1, + "planner_total_cost": 11.18, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -99094,51 +98789,40 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", + "fingerprint": "a1246e54219362cefb9c2f6a3c8a727b98948e5a42bb4890bce6d0b13f1d9e01", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_moduletype_pkey" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, "Index Scan": 1, - "Nested Loop": 1 + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 1, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -99147,50 +98831,47 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1242, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -99199,12 +98880,11 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -99219,36 +98899,34 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 11.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" ], - "Startup Cost": 16.3, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 11.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 11.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -99256,7 +98934,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" }, { "aggregate": { @@ -99266,10 +98944,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 1, + "planner_total_cost": 0.02, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 0, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -99279,78 +98957,104 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], + "fingerprint": "b8b68461ecb26b63b61697e1dba257cf6fd8a57da9b9bd52d2111a6d238eaad4", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Limit": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 984, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.0, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Sort Key": [ + "created DESC" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 0.01, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 0.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.01, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 0.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -99358,7 +99062,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" }, { "aggregate": { @@ -99368,601 +99072,280 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 6, + "planner_rows": 8, + "planner_total_cost": 14.37, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 16089, - "wal_fpi": 4, - "wal_records": 4 + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 }, "calls": 1, - "fingerprint": "2ed9c2a8a7a279e686f2abffed2b39c564d61dbd1fe32e7d7e545a1b36f0ba92", - "indexes": [], + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", + "indexes": [ + "dcim_interface_tagged_vlans_interface_id_5870c9e9" + ], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 8, + "Plan Width": 24, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 6, + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, - "WAL Bytes": 16089, - "WAL FPI": 4, - "WAL Records": 4 + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 43.43, + "planner_rows": 0, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, + "shared_hit_blocks": 30, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1735, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 23 }, "calls": 1, - "fingerprint": "2f5ea9e95b777b13c03fda782807998220c59084445ba4912d844a9d78287f8e", + "fingerprint": "deb1a179ea341060c677d4d152ebb01cbd16b149e6f51dc3fa4e7a80c7d2c7e7", "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" + "dcim_device_name_c27913_idx" ], "node_types": { - "Hash": 1, - "Hash Join": 1, - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3589, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2994, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2863, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2791, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2084, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", - "Inner Unique": true, - "Join Type": "Right", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1895, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(device_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 1684, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.4, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 43.41, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, + "Shared Hit Blocks": 30, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 1735, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 72, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 43.42, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 43.43, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -99970,205 +99353,739 @@ }, "Triggers": [] }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.47, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f4193255e9202d040b4de2066de4f497244ef0f73841a5b7c7c64f0e14c25f57", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 22, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "00a48dac0e50d45e8aa347f6c079795d6c0cb09d3dffe4ee068f2874e8b385ed", + "normalized_sql": "SELECT %s AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = %s LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1919ddc31043c19525b5f3e5c2021bb0aaa0a6791b7391fe41aee034f5603368", + "normalized_sql": "SELECT pg_advisory_lock(%s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "22b52f8fdd8b594e0f40265bea1076c4d7f0bd72bd33326a9a504ad5c757b278", + "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" > %s) ORDER BY ? ASC LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "26c8d42cff4acd7965798ced1cb2302a0de077fe35079bf687fd56e33ec956ab", + "normalized_sql": "SELECT pg_advisory_unlock(%s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3b2fd5e645edcb20006633441140723a008e260780c415f90ddb03e67f632970", + "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"description\" = %s, \"comments\" = %s, \"_config_context_data\" = %s, \"_config_context_generation\" = %s, \"local_context_data\" = %s, \"config_template_id\" = %s, \"device_type_id\" = %s, \"role_id\" = %s, \"tenant_id\" = %s, \"platform_id\" = %s, \"name\" = %s, \"serial\" = %s, \"asset_tag\" = %s, \"site_id\" = %s, \"location_id\" = %s, \"rack_id\" = %s, \"position\" = %s, \"face\" = %s, \"status\" = %s, \"airflow\" = %s, \"cooling_method\" = %s, \"primary_ip4_id\" = %s, \"primary_ip6_id\" = %s, \"oob_ip_id\" = %s, \"cluster_id\" = %s, \"virtual_chassis_id\" = %s, \"vc_position\" = %s, \"vc_priority\" = %s, \"latitude\" = %s, \"longitude\" = %s, \"console_port_count\" = %s, \"console_server_port_count\" = %s, \"power_port_count\" = %s, \"power_outlet_count\" = %s, \"cooling_intake_count\" = %s, \"cooling_outflow_count\" = %s, \"interface_count\" = %s, \"front_port_count\" = %s, \"rear_port_count\" = %s, \"device_bay_count\" = %s, \"module_bay_count\" = %s, \"inventory_item_count\" = %s WHERE \"dcim_device\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "3c389490b11937715c3d0964bc30ec7b13e51db1c13a2af0099105f714faa656", + "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = %s, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + %s) WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" IN (%s))", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "5d7a97e86f815b27d234df91ae479de2138442699e863f4ff28d73aa304eb1fd", + "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::jsonb[]) RETURNING \"core_job\".\"id\"", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "821b0cf47bc104eac1c0be61b6590a5102a2aaae1aa60ba1f6226bf8142dba44", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 4, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 9, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 9 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "d4343dc9365f085be0168ec3e6c7882c1d9fbde207387e0851ebf489bfc0755d", + "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "e236397f933fab343403e0aa5aa12607f0cf386121c81a7e3d60ec370c91425e", + "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = %s AND \"core_job\".\"status\" IN (%s, %s, %s)) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "rows_affected": 0 }, + { + "calls": 1, + "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", + "normalized_sql": "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\" = %s) LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 51, + "actual_rows_per_work_unit": 33.0, + "actual_rows_times_loops": 33, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 51, + "planner_rows": 83, + "planner_total_cost": 637.31, + "planner_total_cost_per_work_unit": 637.31, + "shared_dirtied_blocks": 8, + "shared_hit_blocks": 356, + "shared_hit_blocks_per_work_unit": 356.0, + "shared_read_blocks": 9, + "shared_written_blocks": 1, + "statement_calls": 59, + "statement_calls_per_work_unit": 59.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 4504, + "wal_fpi": 6, + "wal_records": 57, + "work_units": 1 + } + }, + "description": "Virtual chassis reapply across 1 module(s)", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "complete_model_save", + "machine_time": { + "process_cpu": { + "median_ms": 110.495825, + "p95_ms": 119.7066149, + "samples_ns": [ + 109777398, + 111983768, + 119970328, + 118012325, + 119593595, + 119573780, + 108285709, + 110495825, + 110292717, + 110925191, + 102661309, + 105347765, + 108546724, + 112510879, + 107033063 + ] + }, + "wall": { + "median_ms": 148.061908, + "p95_ms": 158.0434304, + "samples_ns": [ + 146208017, + 151215876, + 160311569, + 154819622, + 155376092, + 157071371, + 143046480, + 146692443, + 148061908, + 149449883, + 139893637, + 141751484, + 144368095, + 150788054, + 141006666 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 116.387196, + "p95_ms": 123.7461684, + "samples_ns": [ + 124563832, + 116387196, + 111859461 + ] + }, + "wall": { + "median_ms": 154.903659, + "p95_ms": 158.9091621, + "samples_ns": [ + 159354218, + 154903659, + 145844278 + ] + } + } + }, + "name": "vc.complete_model_save.reapply_1", + "semantic_result": { + "interface_names": [ + "et-2/0/1" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 0, + "planner_total_cost": 8.27, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 45, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1430, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 21 }, "calls": 1, - "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "fingerprint": "00685b0543ee8173ab522e12e049489bf5ebb80e9ff76a7ad597a93905550b4c", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_interface_pkey" ], "node_types": { - "Index Only Scan": 1, - "Limit": 1 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Index Name": "dcim_interface_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", + "Plan Width": 2003, + "Relation Name": "dcim_interface", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 45, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1430, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, + "planner_rows": 1, + "planner_total_cost": 4.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 116787, - "wal_fpi": 23, - "wal_records": 23 + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 }, "calls": 1, - "fingerprint": "35afe3ac0f6af997d233d59dfbab183a265c1c453925a977da4c5a892b6a3a09", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = ? WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 10, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 137, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 30, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.01, "WAL Buffers Full": 0, - "WAL Bytes": 116787, - "WAL FPI": 23, - "WAL Records": 23 + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e8b43469152c625ff5fb76776bc4ffc51e850db6a5e0e5672e7bfbcd6e308d29" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { @@ -100178,8 +100095,8 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.32, + "planner_rows": 2, + "planner_total_cost": 16.35, "shared_dirtied_blocks": 0, "shared_hit_blocks": 4, "shared_read_blocks": 0, @@ -100191,106 +100108,161 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", - "indexes": [], + "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, + "Plan Rows": 2, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 87, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "enabled", + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Relation Name": "dcim_interface", "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 4.02, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.02, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.3, - "Strategy": "Plain", + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.32, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100298,7 +100270,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { @@ -100309,9 +100281,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_total_cost": 12.18, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 7, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -100321,112 +100293,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "fingerprint": "1902cd7db194a7022113914acb274368bce95f8aa961dcbc13fd935ff803e866", "indexes": [ - "dcim_devicetype_pkey" + "dcim_moduletype_pkey" ], "node_types": { "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 6, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 69.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 42, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], - "node_types": { - "Hash": 6, - "Hash Join": 6, - "Limit": 6, - "Seq Scan": 12 + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -100437,35 +100314,36 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -100473,96 +100351,65 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 12.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100573,10 +100420,17 @@ "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100584,20 +100438,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -100607,38 +100461,41 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", "indexes": [ - "dcim_moduletype_pkey" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { "Index Scan": 1, - "Limit": 1 + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -100648,32 +100505,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100681,20 +100540,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.19, + "planner_total_cost": 43.43, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 16, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -100704,19 +100563,25 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "fingerprint": "1ea74ce1d752574a113070c8d12b44fdfb24be2c4fdefd5d7ba227368e864a66", "indexes": [ - "extras_subscription_unique_per_object_and_user" + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" ], "node_types": { - "Index Scan": 1, + "Hash": 1, + "Hash Join": 1, + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 4, "Sort": 1 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -100726,37 +100591,448 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 16, + "Plan Width": 3589, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 3589, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2994, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2863, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2791, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2084, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", + "Inner Unique": true, + "Join Type": "Right", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1895, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.7, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(device_id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 22.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 9, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.24, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 35.26, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Startup Cost": 8.4, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 43.41, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100764,20 +101040,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "created DESC", - "user_id" + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 8.18, + "Startup Cost": 43.42, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 43.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100785,7 +101061,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" }, { "aggregate": { @@ -100796,9 +101072,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 12.18, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -100808,17 +101084,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", + "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", "indexes": [ - "dcim_moduletype_pkey" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Index Only Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -100829,102 +101103,41 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Heap Fetches": 2, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.16, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100932,20 +101145,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.18, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -100953,7 +101159,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { @@ -100964,9 +101170,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_total_cost": 4.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -100976,7 +101182,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", + "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", "indexes": [], "node_types": { "Limit": 1, @@ -101017,13 +101223,13 @@ "Relation Name": "dcim_site", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -101031,13 +101237,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -101049,323 +101255,181 @@ }, { "aggregate": { - "actual_loops": 3, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 24, - "planner_total_cost": 119.19, + "planner_rows": 0, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 319, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 4 }, - "calls": 3, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], + "calls": 1, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 3, - "Bitmap Index Scan": 3, - "Hash": 3, - "Hash Join": 3, - "Index Scan": 6, - "Nested Loop": 6, - "Seq Scan": 3, - "Sort": 3 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 4.32, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", + "indexes": [], + "node_types": { + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Aggregate", + "Parallel Aware": false, + "Partial Mode": "Simple", + "Plan Rows": 1, + "Plan Width": 32, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -101373,13 +101437,19 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 4.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 4.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -101387,21 +101457,14 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 4.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 4.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -101409,20 +101472,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, + "planner_rows": 1, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -101431,16 +101494,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 2, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", + "calls": 1, + "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_devicetype_pkey" ], "node_types": { - "Index Scan": 2, - "Limit": 2 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -101454,16 +101517,16 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Index Name": "dcim_devicetype_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -101473,8 +101536,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", + "Plan Width": 707, + "Relation Name": "dcim_devicetype", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -101506,7 +101569,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { @@ -101517,9 +101580,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 12.18, + "planner_total_cost": 8.19, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -101529,17 +101592,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", "indexes": [ - "dcim_moduletype_pkey" + "extras_subscription_unique_per_object_and_user" ], "node_types": { "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, "Sort": 1 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -101553,99 +101614,37 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.16, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -101653,20 +101652,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" + "created DESC", + "user_id" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 12.17, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.18, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -101674,20 +101673,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 3, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 25.15, + "planner_rows": 24, + "planner_total_cost": 121.59, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -101696,37 +101695,45 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", - "indexes": [], + "calls": 3, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", + "indexes": [ + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" + ], "node_types": { - "Limit": 1, + "Bitmap Heap Scan": 3, + "Bitmap Index Scan": 3, + "Hash": 3, + "Hash Join": 3, + "Index Scan": 6, "Nested Loop": 6, - "Seq Scan": 7 + "Seq Scan": 3, + "Sort": 3 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -101735,16 +101742,15 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -101753,371 +101759,255 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, + "Plan Rows": 8, + "Plan Width": 1998, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, + "Plan Rows": 8, + "Plan Width": 1976, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_customfield", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, + "Plan Rows": 8, + "Plan Width": 8, "Plans": [ { - "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Loops": 0, + "Actual Rows": 0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.37, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.47, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 17.1, + "Total Cost": 24.98, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 21.12, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", "Async Capable": false, "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.15, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102125,13 +102015,21 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 25.15, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102139,7 +102037,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { @@ -102150,9 +102048,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_total_cost": 13.23, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -102162,13 +102060,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", - "indexes": [], + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { + "Index Scan": 1, "Limit": 1, + "Nested Loop": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -102182,147 +102084,113 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102330,20 +102198,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 2, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 2, - "planner_total_cost": 16.35, + "planner_total_cost": 16.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -102352,162 +102220,74 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "c12f66423fd3ed8d7f927fece2c904e0a959cf025dbdb8f21e542373fa187492", + "calls": 2, + "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" + "dcim_device_name_c27913_idx" ], "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 + "Index Scan": 2, + "Limit": 2 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 1, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.35, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102515,18 +102295,18 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 9.16, + "planner_total_cost": 12.18, "shared_dirtied_blocks": 0, "shared_hit_blocks": 4, "shared_read_blocks": 0, @@ -102538,39 +102318,39 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "c3c7b17feaad93846aaf8a7102710fa97e0ad18ce97a0bf9b769d52516289501", + "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" + "dcim_moduletype_pkey" ], "node_types": { "Index Scan": 1, - "Limit": 1, "Nested Loop": 1, - "Seq Scan": 1 + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 929, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -102580,66 +102360,66 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 929, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102654,7 +102434,7 @@ "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.16, + "Total Cost": 12.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102665,10 +102445,17 @@ "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.16, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102676,20 +102463,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 6, + "actual_rows_times_loops": 6, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, + "planner_rows": 6, + "planner_total_cost": 82.38000000000001, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 30, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -102698,14 +102485,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", - "indexes": [], + "calls": 6, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 6, + "Limit": 6, + "Nested Loop": 6, + "Seq Scan": 6 }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -102719,34 +102510,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 137, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102754,13 +102610,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.01, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102768,7 +102624,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { @@ -102779,9 +102635,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 31.66, + "planner_total_cost": 25.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 13, + "shared_hit_blocks": 25, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -102791,19 +102647,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "dade775442c2ff56a4c2337c2f00d794a720aa01012003947aaa91bd0157d856", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], + "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", + "indexes": [], "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 + "Limit": 1, + "Nested Loop": 6, + "Seq Scan": 7 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -102814,10 +102665,10 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 782, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, @@ -102825,8 +102676,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -102835,7 +102686,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 782, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, @@ -102843,7 +102694,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Filter": "(\"T4\".parent_id = \"T6\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -102853,7 +102704,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 774, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, @@ -102861,7 +102712,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -102871,7 +102722,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 564, + "Plan Width": 829, "Plans": [ { "Actual Loops": 1, @@ -102879,7 +102730,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -102889,15 +102740,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 556, + "Plan Width": 640, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -102906,37 +102758,96 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 528, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 7.04, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102945,46 +102856,42 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", + "Alias": "T3", "Async Capable": false, "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.29, + "Total Cost": 10.06, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -102993,30 +102900,27 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -103025,13 +102929,13 @@ ], "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 14, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.38, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.45, + "Total Cost": 14.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -103040,7 +102944,7 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", + "Alias": "T5", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -103051,8 +102955,8 @@ "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, @@ -103069,13 +102973,13 @@ ], "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.38, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.47, + "Total Cost": 17.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -103083,8 +102987,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -103094,209 +102998,98 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.66, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 45, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 118693, - "wal_fpi": 21, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "e0ee11851bd1b96ad62e8463c88cc0d021f81044096ec775b2890988b1319268", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 21, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 21.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 25, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 25.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 45, + "Shared Hit Blocks": 25, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.25, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.27, + "Total Cost": 25.15, "WAL Buffers Full": 0, - "WAL Bytes": 118693, - "WAL FPI": 21, - "WAL Records": 21 + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -103307,9 +103100,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.01, + "planner_total_cost": 3.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -103319,13 +103112,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", "indexes": [], "node_types": { "Limit": 1, "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -103339,492 +103132,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 72, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.3, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 6 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "bc20d9e3dd0d64674cd73e58423e7090ace91f7ad989fb7d1aaabb21aea5169f", - "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = %s WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 36, - "actual_rows_per_work_unit": 24.0, - "actual_rows_times_loops": 24, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 36, - "planner_rows": 62, - "planner_total_cost": 484.69000000000005, - "planner_total_cost_per_work_unit": 484.69000000000005, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 240, - "shared_hit_blocks_per_work_unit": 240.0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 42, - "statement_calls_per_work_unit": 42.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 251569, - "wal_fpi": 48, - "wal_records": 48, - "work_units": 1 - } - }, - "description": "Virtual chassis reapply across 1 module(s)", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 93.752322, - "p95_ms": 106.101386, - "samples_ns": [ - 98114781, - 107370129, - 97105405, - 88881803, - 91792164, - 90240455, - 89742725, - 105557639, - 93752322, - 95930528, - 84866958, - 102515274, - 94754227, - 88552691, - 90935315 - ] - }, - "wall": { - "median_ms": 125.716252, - "p95_ms": 141.2369325, - "samples_ns": [ - 132809494, - 138619612, - 127538264, - 117957031, - 122703617, - 119473015, - 139887711, - 144385116, - 125716252, - 133737348, - 112912401, - 135787308, - 125292372, - 118159020, - 121413516 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 89.100886, - "p95_ms": 92.48249109999999, - "samples_ns": [ - 92858225, - 89100886, - 88720875 - ] - }, - "wall": { - "median_ms": 115.947712, - "p95_ms": 126.6983011, - "samples_ns": [ - 127892811, - 115947712, - 115412605 - ] - } - } - }, - "name": "vc.direct_callback.reapply_1", - "semantic_result": { - "interface_names": [ - "et-2/0/1" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 32.07999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -103836,17 +103149,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", + "Plan Width": 4, + "Relation Name": "dcim_module", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -103854,13 +103167,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -103868,20 +103181,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 88.96000000000001, + "planner_rows": 2, + "planner_total_cost": 16.35, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 56, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -103890,29 +103203,43 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], + "calls": 1, + "fingerprint": "c12f66423fd3ed8d7f927fece2c904e0a959cf025dbdb8f21e542373fa187492", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_device_id_359c6115" + ], "node_types": { - "Limit": 8, - "Nested Loop": 8, - "Seq Scan": 16 + "Incremental Sort": 1, + "Index Only Scan": 1, + "Index Scan": 1, + "Nested Loop": 1 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, + "Plan Rows": 2, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, @@ -103920,6 +103247,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -103929,34 +103257,36 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "core_objecttype", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", + "Heap Fetches": 2, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.05, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -103965,57 +103295,70 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "django_content_type", + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "(module_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Width": 996, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.06, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.3, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 16.35, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104023,7 +103366,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { "aggregate": { @@ -104034,9 +103377,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_total_cost": 9.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -104046,15 +103389,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0aec08a209907d95ef005ef34cc8b388ef5956d9e4b0bddfb0f210ad849b479e", + "fingerprint": "c3c7b17feaad93846aaf8a7102710fa97e0ad18ce97a0bf9b769d52516289501", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_device_unique_virtual_chassis_vc_position" ], "node_types": { - "Index Only Scan": 1, - "Limit": 1 + "Index Scan": 1, + "Limit": 1, + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -104068,38 +103413,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 8, + "Plan Width": 929, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "((id > ?) AND (id = ?))", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 929, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 9.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104107,13 +103513,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 9.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104121,20 +103527,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 1, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -104144,41 +103550,38 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", + "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_moduletype_pkey" ], "node_types": { "Index Scan": 1, - "ModifyTable": 1 + "Limit": 1 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -104188,34 +103591,32 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104223,7 +103624,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { @@ -104233,10 +103634,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.31, + "planner_rows": 8, + "planner_total_cost": 14.37, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -104246,110 +103647,75 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "0fd70dee23075f61e903c6213865a3716cb55a296527729a166f09226a2eb0d9", + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_devicebay_unique_device_name" + "dcim_interface_tagged_vlans_interface_id_5870c9e9" ], "node_types": { - "Index Scan": 2, - "Nested Loop": 1 + "Bitmap Heap Scan": 1, + "Bitmap Index Scan": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", - "Join Type": "Inner", + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, + "Plan Rows": 8, + "Plan Width": 24, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_devicebay", "Async Capable": false, "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_devicebay_unique_device_name", + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_devicebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.27, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.31, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104357,7 +103723,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, { "aggregate": { @@ -104368,9 +103734,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_total_cost": 31.66, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 14, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -104380,19 +103746,19 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "16343db71cc16743dc5e78daf8dbe6c7627fdc3503f8fafc0c3c254d70b8bad9", + "fingerprint": "e1b477be406353a505d6f163629360b52b44c43d8580f7740271eed83ff34c47", "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 + "Index Scan": 3, + "Nested Loop": 5, + "Seq Scan": 3, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, @@ -104403,145 +103769,54 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 782, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 774, + "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -104549,16 +103824,17 @@ "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 640, + "Plan Width": 564, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -104568,68 +103844,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, + "Plan Width": 556, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 528, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -104638,83 +103880,52 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.66, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104722,120 +103933,148 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 0.25, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.82, + "Total Cost": 16.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ + }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Index Scan", "Parallel Aware": false, - "Parent Relationship": "Outer", + "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.16, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 27.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.65, + "Total Cost": 1.07, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 11, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.38, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.94, + "Total Cost": 28.63, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104843,8 +104082,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -104854,32 +104093,234 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.08, + "Total Cost": 3.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 14, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 31.66, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 31.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 72, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + }, + { + "aggregate": { + "actual_loops": 2, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 2, + "planner_total_cost": 16.3, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 2, + "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", + "indexes": [ + "dcim_interface_device_id_359c6115" + ], + "node_types": { + "Index Scan": 2, + "Limit": 2 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Filter": "((id <> ?) AND ((name)::text = '?'::text))", + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_interface_device_id_359c6115", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104887,13 +104328,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 8.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -104901,20 +104342,303 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + } + ], + "statements": [ + { + "calls": 1, + "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 2, + "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 2 + }, + { + "calls": 1, + "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", + "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 2, + "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "rows_affected": 1 + }, + { + "calls": 3, + "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", + "normalized_sql": "SAVEPOINT \"s?_x?\"", + "rows_affected": 0 + }, + { + "calls": 6, + "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", + "rows_affected": 6 + }, + { + "calls": 1, + "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "rows_affected": 0 + }, + { + "calls": 1, + "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", + "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", + "rows_affected": 1 + }, + { + "calls": 1, + "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "rows_affected": 1 + } + ], + "totals": { + "actual_loops": 35, + "actual_rows_per_work_unit": 24.0, + "actual_rows_times_loops": 24, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planned_statement_calls": 35, + "planner_rows": 62, + "planner_total_cost": 496.0200000000001, + "planner_total_cost_per_work_unit": 496.0200000000001, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 205, + "shared_hit_blocks_per_work_unit": 205.0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "statement_calls": 41, + "statement_calls_per_work_unit": 41.0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 1749, + "wal_fpi": 0, + "wal_records": 25, + "work_units": 1 + } + }, + "description": "Virtual chassis reapply across 1 module(s)", + "fixture": { + "devices": 1, + "enabled_rules": 1, + "interface_templates": 1, + "interfaces_before": 1, + "module_bays": 1, + "modules_before": 1 + }, + "layer": "direct_callback", + "machine_time": { + "process_cpu": { + "median_ms": 94.074141, + "p95_ms": 104.15912809999999, + "samples_ns": [ + 98549562, + 91682982, + 92523972, + 90162050, + 102350317, + 94078886, + 101449783, + 91222491, + 90563647, + 106572355, + 94074141, + 101082853, + 103124888, + 92729649, + 89961536 + ] + }, + "wall": { + "median_ms": 126.860629, + "p95_ms": 134.6831407, + "samples_ns": [ + 127923216, + 121914857, + 122530346, + 118197778, + 134559916, + 126860629, + 132617023, + 120556829, + 118807168, + 134970665, + 126864217, + 127585069, + 129971167, + 121918206, + 117590644 + ] + }, + "warmup": { + "process_cpu": { + "median_ms": 92.210817, + "p95_ms": 92.3087685, + "samples_ns": [ + 92210817, + 92319652, + 90394832 + ] }, + "wall": { + "median_ms": 127.061099, + "p95_ms": 127.3568678, + "samples_ns": [ + 118340277, + 127061099, + 127389731 + ] + } + } + }, + "name": "vc.direct_callback.reapply_1", + "semantic_result": { + "interface_names": [ + "et-2/0/1" + ], + "interfaces_after": 1 + } + }, + { + "database": { + "plans": [ { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 8, + "planner_total_cost": 32.07999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 32, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -104923,79 +104647,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], + "calls": 8, + "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Limit": 8, + "Seq Scan": 8 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", + "Plan Width": 137, + "Relation Name": "dcim_site", "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -105003,7 +104717,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { @@ -105026,7 +104740,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", + "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", "indexes": [ "extras_cachedvalue_object_type_id_6f47d444" ], @@ -105072,7 +104786,7 @@ "Plan Rows": 1, "Plan Width": 6, "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, + "Rows Removed by Filter": 2, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -105110,15 +104824,15 @@ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_rows": 8, + "planner_total_cost": 43.99, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 18, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -105128,42 +104842,44 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "249bad626e2303d58e84014db1019b03a333f5354f734d7e614dabd69689dd16", + "fingerprint": "183d552796041243a7b4d2520a5c096ae5066dd1d5a6ec105714eb49fa855ddb", "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" ], "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 + "Hash": 2, + "Hash Join": 2, + "Index Scan": 3, + "Nested Loop": 4, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 8.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 3589, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 8.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -105171,25 +104887,57 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 3589, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 960, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 2994, "Plans": [ { "Actual Loops": 1, @@ -105197,8 +104945,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -105207,107 +104955,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 2674, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -105316,119 +104973,84 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, + "Plan Width": 2602, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", "Inner Unique": true, - "Join Type": "Left", + "Join Type": "Right", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 1895, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 10.7, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, "Parallel Aware": false, "Parent Relationship": "Inner", + "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 189, + "Plan Width": 857, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -105437,18 +105059,18 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.65, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -105456,13 +105078,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 8.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.66, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -105470,78 +105092,202 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.82, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.41, + "Startup Cost": 8.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.48, + "Total Cost": 27.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 8, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 8, + "Plan Width": 189, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(device_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -105549,13 +105295,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 3.1, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.16, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -105563,13 +105309,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 3.2, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.65, + "Total Cost": 7.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -105577,71 +105323,253 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 15, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 11.48, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.08, + "Total Cost": 35.61, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 11.6, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.85, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 18, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 31, + "Startup Cost": 43.97, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 43.99, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 4, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -105649,52 +105577,54 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, + "planner_rows": 0, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 33, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1735, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 23 }, - "calls": 8, - "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "calls": 1, + "fingerprint": "285ddec0c9df89d06549b356d81986163d29382b9071a7f91b221ca79122e610", "indexes": [ "dcim_device_name_c27913_idx" ], "node_types": { - "Index Only Scan": 8, - "Limit": 8 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, @@ -105702,7 +105632,6 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, "Index Cond": "(id = ?)", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, @@ -105710,16 +105639,16 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 1684, "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -105732,8 +105661,9 @@ "WAL Records": 0 } ], + "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 33, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -105741,60 +105671,186 @@ "Temp Written Blocks": 0, "Total Cost": 8.14, "WAL Buffers Full": 0, + "WAL Bytes": 1735, + "WAL FPI": 0, + "WAL Records": 23 + }, + "Triggers": [] + }, + "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 1.14, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 1, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "29e01c11383b935c70fb3f6e61dd5b39323e0a99b375438d80c629f86738de67", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "core_job", + "Async Capable": false, + "Disabled": false, + "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 984, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.13, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "created DESC" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 1.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 1.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.14, + "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, + "planner_rows": 1, "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 79, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 1 + "wal_records": 0 }, "calls": 1, - "fingerprint": "309131009a04f8af46c29da2903ee003d1a6d55a02c37ee24dd51eac2b3c793b", + "fingerprint": "2afb4f269f05a4d371e07899bce957806a5c08568ff1f3931b7d54479647615b", "indexes": [ "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Index Only Scan": 1, + "Limit": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", + "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 8, "Plans": [ { "Actual Loops": 1, @@ -105802,23 +105858,24 @@ "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", + "Heap Fetches": 3, + "Index Cond": "((id > ?) AND (id = ?))", "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 46, + "Plan Width": 8, "Relation Name": "dcim_device", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -105831,9 +105888,8 @@ "WAL Records": 0 } ], - "Relation Name": "dcim_device", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -105841,13 +105897,13 @@ "Temp Written Blocks": 0, "Total Cost": 8.14, "WAL Buffers Full": 0, - "WAL Bytes": 79, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" + "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" }, { "aggregate": { @@ -106035,30 +106091,30 @@ }, { "aggregate": { - "actual_loops": 4, + "actual_loops": 6, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 0.04, + "planner_total_cost": 0.060000000000000005, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, + "shared_hit_blocks": 36, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1276, + "wal_bytes": 1914, "wal_fpi": 0, - "wal_records": 16 + "wal_records": 24 }, - "calls": 4, + "calls": 6, "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", "indexes": [], "node_types": { - "ModifyTable": 4, - "Result": 4 + "ModifyTable": 6, + "Result": 6 }, "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { @@ -106133,9 +106189,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 4.32, + "planner_total_cost": 24.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -106145,14 +106201,18 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", - "indexes": [], + "fingerprint": "38f3f3c27dbe7d53068782da3490fc3a1545b347f9fbb88eb39018917da7a1b2", + "indexes": [ + "dcim_modulebay_pkey" + ], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Index Scan": 2, + "Limit": 1, + "Memoize": 1, + "Nested Loop": 6, + "Seq Scan": 5 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -106163,156 +106223,19 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 32, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 4.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 43.99, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "39b6bd5ce6806fd8ee184b697b179ac0ef36c0cdbacb238d8912b4766bd92fdd", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" - ], - "node_types": { - "Hash": 2, - "Hash Join": 2, - "Index Scan": 3, - "Nested Loop": 4, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -106320,65 +106243,33 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 3589, + "Plan Rows": 1, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 2994, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Inner Unique": false, "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -106388,7 +106279,7 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2674, + "Plan Width": 771, "Plans": [ { "Actual Loops": 1, @@ -106396,8 +106287,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -106406,32 +106297,33 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2602, + "Plan Width": 509, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", "Inner Unique": true, - "Join Type": "Right", + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1895, + "Plan Width": 320, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -106439,17 +106331,18 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.7, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -106457,81 +106350,43 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 6.0, + "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.15, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 19.04, + "Total Cost": 7.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -106539,137 +106394,43 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", + "Actual Rows": 8.0, + "Alias": "T3", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.08, + "Total Cost": 10.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -106677,50 +106438,115 @@ }, { "Actual Loops": 1, - "Actual Rows": 8.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 8, - "Plan Width": 189, + "Plan Rows": 1, + "Plan Width": 262, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Filter": "(device_id = ?)", + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.1, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -106728,13 +106554,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 3.1, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.1, + "Total Cost": 6.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -106742,165 +106568,115 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 3.2, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.31, + "Total Cost": 16.79, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 11.48, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.61, + "Total Cost": 19.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 11.6, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.85, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 31, - "Startup Cost": 43.97, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.99, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 6, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -106908,7 +106684,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -106919,9 +106695,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_total_cost": 4.32, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -106931,15 +106707,14 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], + "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", + "indexes": [], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, @@ -106950,40 +106725,73 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 4.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -106991,13 +106799,14 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 4.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -107005,44 +106814,43 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { - "actual_loops": 5, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 41.4, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 225, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 7410, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 110 + "wal_records": 0 }, - "calls": 5, - "fingerprint": "3ff108e781065b2a0b5717a2bac4711aa2e75143c1f05a786e482a138e5f8b22", + "calls": 1, + "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", "indexes": [ - "dcim_interface_pkey" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { - "Bitmap Heap Scan": 5, - "Bitmap Index Scan": 5, - "ModifyTable": 5 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -107050,94 +106858,65 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Update", + "Operation": "Delete", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 6, "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 45, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.16, "WAL Buffers Full": 0, - "WAL Bytes": 1482, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 22 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -107364,16 +107143,16 @@ }, { "aggregate": { - "actual_loops": 51, - "actual_rows_times_loops": 51, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 51, - "planner_total_cost": 590.07, + "planner_rows": 8, + "planner_total_cost": 65.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 357, + "shared_hit_blocks": 16, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -107382,16 +107161,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 51, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 8, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], "node_types": { - "Hash": 51, - "Hash Join": 51, - "Limit": 51, - "Seq Scan": 102 + "Index Scan": 8, + "Limit": 8 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -107405,226 +107184,543 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 595, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 24.15, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 17, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "49c1468a63a34278409541b72d45bcbd5d05c04f77c2a000bfba762e11abd5bb", + "indexes": [ + "dcim_modulebay_pkey" + ], + "node_types": { + "Index Scan": 2, + "Limit": 1, + "Memoize": 1, + "Nested Loop": 6, + "Seq Scan": 5 + }, + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1091, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 22, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 771, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.46, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 262, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 6.32, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 10, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.79, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", "Async Capable": false, "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Seq Scan", "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.49, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.49, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -107632,13 +107728,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -107646,7 +107742,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -107929,193 +108025,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5088068d602a7155f6772a6285f2cb0fa16b719c1838b67d1d20fb197384c168", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "530a98b11fd55786e4061f3051e338fa0d7ca35baae089ba1c57aa315d2baa9c", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 6, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_total_cost": 24.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -108125,17 +108037,16 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "56af25ab48c8567b157de8f6b1598ae04a19d4f430012b5221cd64e10452811b", + "fingerprint": "4c23800a246fcf87b3907aca2223bfe53a4ebaab422d9cf4675a5225c207d26f", "indexes": [ - "dcim_module_pkey", "dcim_modulebay_pkey" ], "node_types": { - "Index Scan": 4, + "Index Scan": 2, "Limit": 1, - "Memoize": 2, + "Memoize": 1, "Nested Loop": 6, - "Seq Scan": 3 + "Seq Scan": 5 }, "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { @@ -108162,131 +108073,39 @@ "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 6, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, + "Inner Unique": false, "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -108294,16 +108113,17 @@ "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 640, + "Plan Width": 771, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -108317,206 +108137,165 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 320, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 4.0, + "Alias": "dcim_modulebay", "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.66, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 3, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.82, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.41, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.48, + "Total Cost": 10.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 262, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", + "Index Cond": "(id = \"T3\".module_bay_id)", "Index Name": "dcim_modulebay_pkey", "Index Searches": 0, "Local Dirtied Blocks": 0, @@ -108543,16 +108322,81 @@ "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.16, + "Total Cost": 6.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -108560,279 +108404,115 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.65, + "Total Cost": 16.79, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "603d4bb63a8eb0ce4abf6fca9a12787bbcd59bf52f86ae4bde742c30b10a9b16", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 13, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.97, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -108840,20 +108520,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 25, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 131.92, + "planner_rows": 200, + "planner_total_cost": 1013.2499999999995, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, + "shared_hit_blocks": 25, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -108862,53 +108542,46 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "67f7c34189feff47adfe054d51fa804818fe89366e1ec51dab2226a33b13b5f7", + "calls": 25, + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_module_id_05ca2da5" + "django_content_type_pkey", + "extras_customfield_content_types_contenttype_id_2997ba90", + "extras_customfieldchoiceset_pkey" ], "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 + "Bitmap Heap Scan": 25, + "Bitmap Index Scan": 25, + "Hash": 25, + "Hash Join": 25, + "Index Scan": 50, + "Nested Loop": 50, + "Seq Scan": 25, + "Sort": 25 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -108916,140 +108589,294 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, + "Plan Rows": 8, + "Plan Width": 2849, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, + "Plan Rows": 8, + "Plan Width": 1998, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Cond": "(module_id = ?)", - "Index Name": "dcim_interface_module_id_05ca2da5", - "Index Searches": 1, + "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", + "Inner Unique": true, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Hash Join", "Parallel Aware": false, "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 1976, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_customfield", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 40, + "Plan Width": 1976, + "Relation Name": "extras_customfield", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 10.4, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfield_object_types", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 8, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_id = ?)", + "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(contenttype_id = ?)", + "Relation Name": "extras_customfield_object_types", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.37, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.47, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.98, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.related_object_type_id)", + "Index Name": "django_content_type_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 0, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.27, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(module_id = ?)", - "Relation Name": "dcim_interface", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 14.62, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 30.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "extras_customfieldchoiceset", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = extras_customfield.choice_set_id)", + "Index Name": "extras_customfieldchoiceset_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 851, + "Relation Name": "extras_customfieldchoiceset", "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 1.26, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.39, + "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "extras_customfield.group_name", + "extras_customfield.weight", + "extras_customfield.name" ], - "Startup Cost": 16.44, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.49, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109057,7 +108884,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" }, { "aggregate": { @@ -109068,9 +108895,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_total_cost": 3.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -109080,12 +108907,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", + "fingerprint": "5088068d602a7155f6772a6285f2cb0fa16b719c1838b67d1d20fb197384c168", "indexes": [], "node_types": { - "Result": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT pg_advisory_lock(?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -109096,18 +108924,51 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109115,20 +108976,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 25, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 200, - "planner_total_cost": 993.2500000000002, + "planner_rows": 1, + "planner_total_cost": 24.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -109137,45 +108998,41 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 25, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "calls": 1, + "fingerprint": "527b3d3ab5459f641b965da9775a5c723074d53c6fdfa9f3660c6bbff798be63", "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" + "dcim_modulebay_pkey" ], "node_types": { - "Bitmap Heap Scan": 25, - "Bitmap Index Scan": 25, - "Hash": 25, - "Hash Join": 25, - "Index Scan": 50, - "Nested Loop": 50, - "Seq Scan": 25, - "Sort": 25 + "Index Scan": 2, + "Limit": 1, + "Memoize": 1, + "Nested Loop": 6, + "Seq Scan": 5 }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -109184,15 +109041,16 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, + "Plan Rows": 1, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -109201,131 +109059,292 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, + "Plan Rows": 1, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", + "Inner Unique": false, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, + "Plan Rows": 1, + "Plan Width": 771, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 10.4, + "Total Cost": 10.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, + "Plan Rows": 1, + "Plan Width": 262, "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, { "Actual Loops": 0, "Actual Rows": 0, - "Alias": "extras_customfield_object_types", "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Memoize", "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, "Plans": [ { "Actual Loops": 0, "Actual Rows": 0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 3.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 3.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109336,10 +109355,10 @@ "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.37, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 6.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109347,109 +109366,101 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.47, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 24.98, + "Total Cost": 16.79, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.62, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 19.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.26, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 14.76, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109457,21 +109468,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109479,7 +109482,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -109490,9 +109493,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_total_cost": 3.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -109502,12 +109505,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", + "fingerprint": "530a98b11fd55786e4061f3051e338fa0d7ca35baae089ba1c57aa315d2baa9c", "indexes": [], "node_types": { - "Result": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT pg_advisory_unlock(?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -109518,18 +109522,51 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 6, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109537,20 +109574,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 16, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 130.24, + "planner_rows": 1, + "planner_total_cost": 3.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -109559,16 +109596,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 16, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "calls": 1, + "fingerprint": "603d4bb63a8eb0ce4abf6fca9a12787bbcd59bf52f86ae4bde742c30b10a9b16", + "indexes": [], "node_types": { - "Index Scan": 16, - "Limit": 16 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -109582,37 +109617,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109620,13 +109652,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109634,20 +109666,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, + "planner_rows": 8, + "planner_total_cost": 269.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, + "shared_hit_blocks": 128, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -109656,22 +109688,24 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", + "calls": 8, + "fingerprint": "60e0b6722142ea6de304bec1be4294cce8f9a5902d16ed54019ecb27219c636b", "indexes": [ - "dcim_moduletype_pkey" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Index Scan": 24, + "Nested Loop": 40, + "Seq Scan": 24, + "Sort": 8 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -109681,16 +109715,16 @@ "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 782, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -109699,66 +109733,320 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 782, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, + "Plan Width": 774, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 564, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 556, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 528, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.38, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 29.63, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109767,13 +110055,13 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.38, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.16, + "Total Cost": 33.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109781,20 +110069,24 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" + "dcim_interfacetemplate.name COLLATE natural_sort" ], "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 12.17, + "Startup Cost": 33.66, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.18, + "Total Cost": 33.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -109802,7 +110094,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { @@ -109825,7 +110117,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", + "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", "indexes": [ "extras_cachedvalue_object_type_id_6f47d444" ], @@ -109871,7 +110163,7 @@ "Plan Rows": 1, "Plan Width": 6, "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, + "Rows Removed by Filter": 1, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -109915,9 +110207,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_total_cost": 24.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -109927,17 +110219,16 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "82fc3244d9a6e9b21efd3aba5a844626da7200aa888e22307ca8f3509acdbad7", + "fingerprint": "653bca43a0ac3bb7d1bd090f5fc406631d2b1f0d2146ecf0eb42794ecf35b4d2", "indexes": [ - "dcim_module_pkey", "dcim_modulebay_pkey" ], "node_types": { - "Index Scan": 4, + "Index Scan": 2, "Limit": 1, - "Memoize": 2, + "Memoize": 1, "Nested Loop": 6, - "Seq Scan": 3 + "Seq Scan": 5 }, "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { @@ -109978,7 +110269,8 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -109995,9 +110287,8 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Inner Unique": false, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -110006,106 +110297,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 771, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -110119,206 +110319,165 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 320, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.66, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.82, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.41, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.48, + "Total Cost": 10.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 262, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", + "Index Cond": "(id = \"T3\".module_bay_id)", "Index Name": "dcim_modulebay_pkey", "Index Searches": 0, "Local Dirtied Blocks": 0, @@ -110345,16 +110504,81 @@ "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.16, + "Total Cost": 6.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -110362,27 +110586,57 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.79, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.65, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.94, + "Total Cost": 19.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -110420,13 +110674,13 @@ ], "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -110434,13 +110688,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -110459,9 +110713,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.1, + "planner_total_cost": 0.01, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 0, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -110471,13 +110725,12 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8a098ef712214fb83c77ab6143964836a45b16f6057eb22f5e55c33166463f2b", + "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Result": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT pg_advisory_lock(?)", "plan": { "Plan": { "Actual Loops": 1, @@ -110488,51 +110741,18 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Result", "Parallel Aware": false, "Plan Rows": 1, "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.1, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -110540,20 +110760,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.1, + "planner_rows": 8, + "planner_total_cost": 105.84000000000002, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 40, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -110562,18 +110782,22 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "8b5bd3784921b667c5a167073be74d82279688df52604ad05fae8a06cf7136f8", - "indexes": [], + "calls": 8, + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 8, + "Limit": 8, + "Nested Loop": 8, + "Seq Scan": 8 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -110583,34 +110807,99 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "(job_id = '?'::uuid)", + "Inner Unique": false, + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "core_job", - "Rows Removed by Filter": 0, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.1, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -110618,13 +110907,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.1, + "Total Cost": 13.23, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -110632,7 +110921,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" }, { "aggregate": { @@ -110643,9 +110932,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_total_cost": 24.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -110655,17 +110944,16 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "8f0e110c5464b56237745430db0004dc62225de68398077e29fab6e90391f57a", + "fingerprint": "6e4be9b0b4fa99077777bf5f036f98edd0355d84226fcce18ec0fe18d8144c0b", "indexes": [ - "dcim_module_pkey", "dcim_modulebay_pkey" ], "node_types": { - "Index Scan": 4, + "Index Scan": 2, "Limit": 1, - "Memoize": 2, + "Memoize": 1, "Nested Loop": 6, - "Seq Scan": 3 + "Seq Scan": 5 }, "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { @@ -110706,7 +110994,8 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -110723,9 +111012,8 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Inner Unique": false, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -110734,106 +111022,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 771, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -110847,206 +111044,165 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 320, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 3.0, + "Alias": "dcim_modulebay", "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.66, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.82, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.41, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.48, + "Total Cost": 10.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 262, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", + "Index Cond": "(id = \"T3\".module_bay_id)", "Index Name": "dcim_modulebay_pkey", "Index Searches": 0, "Local Dirtied Blocks": 0, @@ -111073,16 +111229,81 @@ "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.16, + "Total Cost": 6.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -111090,27 +111311,57 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.79, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.65, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.94, + "Total Cost": 19.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -111148,13 +111399,13 @@ ], "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -111162,13 +111413,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -111178,6 +111429,64 @@ }, "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 0, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", + "indexes": [], + "node_types": { + "Result": 1 + }, + "normalized_sql": "SELECT pg_advisory_unlock(?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" + }, { "aggregate": { "actual_loops": 1, @@ -111186,142 +111495,178 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.28, - "shared_dirtied_blocks": 3, - "shared_hit_blocks": 46, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, "shared_read_blocks": 0, - "shared_written_blocks": 2, + "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 4548, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 23 + "wal_records": 0 }, "calls": 1, - "fingerprint": "8f792049e9a571f0199e94d6cbfcbb66dea93a0152d5dfa5ba8bb258406725c0", + "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", "indexes": [ - "dcim_interface_pkey" + "dcim_moduletype_pkey" ], "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 0, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.27, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 12.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 3, - "Shared Hit Blocks": 46, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, - "Shared Written Blocks": 2, - "Startup Cost": 4.27, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 12.18, "WAL Buffers Full": 0, - "WAL Bytes": 4548, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 23 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 131.92, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -111330,194 +111675,79 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "912269cae2b0ad8f7ffd7262eacb95a29f9230ce9727e1de8446ac0fd54814f4", + "calls": 1, + "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.39, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.44, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.49, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -111525,20 +111755,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 51, + "actual_rows_times_loops": 51, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_rows": 51, + "planner_total_cost": 700.2300000000005, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 255, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -111547,20 +111777,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "94859a7b1e145b75e3afd6522a32cda4f17b9a114323889043aa832ae571dd26", + "calls": 51, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" + "core_objecttype_pkey" ], "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 + "Index Scan": 51, + "Limit": 51, + "Nested Loop": 51, + "Seq Scan": 51 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -111574,7 +111802,7 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, @@ -111582,8 +111810,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -111592,418 +111819,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 6.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.94, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -112011,57 +111854,195 @@ }, { "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", + "Actual Rows": 1.0, + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.08, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.73, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 16.31, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "8394508febe501d167e027f4301abbecdafa866067dfcdf3ff8d543d0280738d", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_devicebay_unique_device_name" + ], + "node_types": { + "Index Scan": 2, + "Nested Loop": 1 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_devicebay", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(device_id = ?)", + "Index Name": "dcim_devicebay_unique_device_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 8, + "Relation Name": "dcim_devicebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 16.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -112069,7 +112050,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" }, { "aggregate": { @@ -112082,7 +112063,7 @@ "planner_rows": 1, "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -112092,15 +112073,15 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "97f18453092460d3cfc02cef47252029d1c898446e962867f08f634501875467", + "fingerprint": "88a2149f6d5e45820cb29f3a306d79cd41b6b2372d5c29b084701832104f59d8", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_devicetype_pkey" ], "node_types": { "Index Scan": 1, "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -112114,16 +112095,16 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 40, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Index Name": "dcim_devicetype_pkey", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -112133,12 +112114,12 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 40, - "Relation Name": "dcim_device", + "Plan Width": 707, + "Relation Name": "dcim_devicetype", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -112152,7 +112133,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, @@ -112166,20 +112147,120 @@ }, "Triggers": [] }, - "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" }, { "aggregate": { - "actual_loops": 8, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 64, - "planner_total_cost": 114.96000000000001, + "planner_rows": 0, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 6, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 79, + "wal_fpi": 0, + "wal_records": 1 + }, + "calls": 1, + "fingerprint": "896da231f26c4558a2083d96fc8498113ca580f31ecc759470235f3ece3cdc38", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 46, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "dcim_device", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 79, + "WAL FPI": 0, + "WAL Records": 1 + }, + "Triggers": [] + }, + "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 8.14, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -112188,76 +112269,74 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", + "calls": 1, + "fingerprint": "8a07788e5614bd11a6dc5c2814975ebf2efc2dd1c83bc0b5bca9f53bc4a6567b", "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" + "dcim_device_name_c27913_idx" ], "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 1, + "Plan Width": 40, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 40, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -112265,230 +112344,191 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" }, { "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.04, - "shared_dirtied_blocks": 4, - "shared_hit_blocks": 20, - "shared_read_blocks": 4, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1276, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 16 + "wal_records": 0 }, - "calls": 4, - "fingerprint": "a7e329729b2108976886e9f2b9d844d95b698fbf1ffdf77f1bc1d6748abda579", + "calls": 1, + "fingerprint": "8a098ef712214fb83c77ab6143964836a45b16f6057eb22f5e55c33166463f2b", "indexes": [], "node_types": { - "ModifyTable": 4, - "Result": 4 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 3.1, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 2, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 16.56, + "planner_rows": 1, + "planner_total_cost": 1.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 90, + "shared_hit_blocks": 1, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 2860, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 42 + "wal_records": 0 }, - "calls": 2, - "fingerprint": "ad06a3ef140190bf7e183dbf12fbbe555e2391eb889d023f10076dbca35de21c", - "indexes": [ - "dcim_interface_pkey" - ], + "calls": 1, + "fingerprint": "8b5bd3784921b667c5a167073be74d82279688df52604ad05fae8a06cf7136f8", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "ModifyTable": 2 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Actual Rows": 0.0, + "Alias": "core_job", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Filter": "(job_id = '?'::uuid)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, + "Plan Width": 4, + "Relation Name": "core_job", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 1.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 45, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 1.1, "WAL Buffers Full": 0, - "WAL Bytes": 1430, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" }, { "aggregate": { @@ -112499,9 +112539,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_total_cost": 24.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -112511,17 +112551,16 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b0c3af9dd77ecd06025583861b96105386c82247a1ec941302309f6ba88d1291", + "fingerprint": "8c42946dcacaf9e8c76daa6fdb4629eba453859930ea29c4218c83c3d880844e", "indexes": [ - "dcim_module_pkey", "dcim_modulebay_pkey" ], "node_types": { - "Index Scan": 4, + "Index Scan": 2, "Limit": 1, - "Memoize": 2, + "Memoize": 1, "Nested Loop": 6, - "Seq Scan": 3 + "Seq Scan": 5 }, "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { @@ -112562,7 +112601,8 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -112579,100 +112619,7 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, + "Inner Unique": false, "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -112680,16 +112627,17 @@ "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 640, + "Plan Width": 771, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -112703,206 +112651,165 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 320, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_modulebay", "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.66, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.82, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.41, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.48, + "Total Cost": 10.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 262, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", + "Index Cond": "(id = \"T3\".module_bay_id)", "Index Name": "dcim_modulebay_pkey", "Index Searches": 0, "Local Dirtied Blocks": 0, @@ -112929,16 +112836,81 @@ "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.16, + "Total Cost": 6.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -112946,27 +112918,57 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.79, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.65, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.94, + "Total Cost": 19.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113004,13 +113006,13 @@ ], "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113018,13 +113020,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 17, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 24.15, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113037,15 +113039,15 @@ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 1.14, + "planner_total_cost": 9.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -113055,18 +113057,21 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "ba352944a218beb18642f08e148af80362a2d7ba4a4d9f822aaec56803505a3a", - "indexes": [], + "fingerprint": "9edd00de4778e5b098b5f1b9ce6f8cba89a7de9c3bbad595b202ece5b0005926", + "indexes": [ + "dcim_device_unique_virtual_chassis_vc_position" + ], "node_types": { + "Index Scan": 1, "Limit": 1, - "Seq Scan": 1, - "Sort": 1 + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -113076,41 +113081,76 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 984, + "Plan Width": 929, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 984, + "Plan Width": 929, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 984, - "Relation Name": "core_job", + "Plan Width": 857, + "Relation Name": "dcim_device", "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 1, "Shared Read Blocks": 0, @@ -113118,27 +113158,22 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.13, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.14, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.14, + "Total Cost": 9.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113146,13 +113181,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 1.14, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.14, + "Total Cost": 9.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113160,146 +113195,173 @@ }, "Triggers": [] }, - "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 2, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.02, + "shared_dirtied_blocks": 2, + "shared_hit_blocks": 10, + "shared_read_blocks": 2, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 638, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 8 }, - "calls": 1, - "fingerprint": "c3c7b17feaad93846aaf8a7102710fa97e0ad18ce97a0bf9b769d52516289501", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" - ], + "calls": 2, + "fingerprint": "a7e329729b2108976886e9f2b9d844d95b698fbf1ffdf77f1bc1d6748abda579", + "indexes": [], "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "ModifyTable": 2, + "Result": 2 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 929, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 16, + "actual_rows_times_loops": 16, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 130.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 48, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 16, + "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", + "indexes": [ + "dcim_device_name_c27913_idx" + ], + "node_types": { + "Index Scan": 16, + "Limit": 16 + }, + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 857, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.16, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113307,13 +113369,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.16, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113321,7 +113383,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { @@ -113331,10 +113393,10 @@ "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 269.28, + "planner_rows": 16, + "planner_total_cost": 163.92, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 120, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -113344,33 +113406,43 @@ "wal_records": 0 }, "calls": 8, - "fingerprint": "c5bfd6bc21177c2d039c15980791f553f52d3040c29431aa6b6d6becd408dd6b", + "fingerprint": "b18710784c5437e6d0f794b1df9772edd9e7493e4dda7c02ef35ddfd59326f47", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 24, - "Nested Loop": 40, - "Seq Scan": 24, - "Sort": 8 + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 782, + "Plan Rows": 2, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, @@ -113378,7 +113450,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -113388,320 +113460,101 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 782, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", + "Heap Fetches": 3, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 774, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 564, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 556, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 528, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.07, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113710,38 +113563,36 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.38, + "Startup Cost": 8.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 33.65, + "Total Cost": 20.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 33.66, + "Startup Cost": 20.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 33.66, + "Total Cost": 20.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113749,41 +113600,44 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 8, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, + "planner_rows": 0, + "planner_total_cost": 98.24, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 1, + "shared_hit_blocks": 368, + "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 6975, - "wal_fpi": 7, - "wal_records": 8 + "wal_bytes": 11440, + "wal_fpi": 0, + "wal_records": 168 }, - "calls": 1, - "fingerprint": "ceb8d2cd21d8c29dc42a914caa9d8960c98355e1c7954fbd6f67859f1729daab", - "indexes": [], + "calls": 8, + "fingerprint": "c4db31918cf24c495105ca6dc209a98da106da94b44b952a1402ca35f3011858", + "indexes": [ + "dcim_interface_pkey" + ], "node_types": { - "ModifyTable": 1, - "Result": 1 + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "ModifyTable": 8 }, - "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_job", + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -113791,69 +113645,107 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Insert", + "Operation": "Update", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 984, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 984, + "Plan Width": 2003, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 99, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 1 + "WAL Records": 0 } ], - "Relation Name": "core_job", + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 1, + "Shared Hit Blocks": 46, + "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 6975, - "WAL FPI": 7, - "WAL Records": 8 + "WAL Bytes": 1430, + "WAL FPI": 0, + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" }, { "aggregate": { - "actual_loops": 1, + "actual_loops": 8, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 64, + "planner_total_cost": 114.96000000000001, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -113862,79 +113754,76 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", + "calls": 8, + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_interface_tagged_vlans_interface_id_5870c9e9" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 8, + "Plan Width": 24, "Plans": [ { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 4.21, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 4.21, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 14.37, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -113942,20 +113831,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, + "planner_rows": 8, + "planner_total_cost": 65.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "shared_hit_blocks": 24, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -113964,14 +113853,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "de362d20efdc5b497a50660b54df9e8fe1b288c3dc202f5a5cf74c55a3bada4f", - "indexes": [], + "calls": 8, + "fingerprint": "d60c285a705ad56bfbee49f5f905e7f291266f4907ddc3a8bcb935ccaf25f8e0", + "indexes": [ + "dcim_device_name_c27913_idx" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Only Scan": 8, + "Limit": 8 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -113990,29 +113881,33 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Heap Fetches": 3, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 5, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.1, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114023,10 +113918,10 @@ "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.1, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114034,7 +113929,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" }, { "aggregate": { @@ -114045,32 +113940,32 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 8.14, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 1735, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 23 + "wal_records": 0 }, "calls": 1, - "fingerprint": "deb1a179ea341060c677d4d152ebb01cbd16b149e6f51dc3fa4e7a80c7d2c7e7", + "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", "indexes": [ - "dcim_device_name_c27913_idx" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { "Index Scan": 1, "ModifyTable": 1 }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 0.0, - "Alias": "dcim_device", + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -114078,19 +113973,20 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Update", + "Operation": "Delete", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -114100,54 +113996,55 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1684, - "Relation Name": "dcim_device", + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 5, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_device", + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 30, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.16, "WAL Buffers Full": 0, - "WAL Bytes": 1735, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 23 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 8.08, + "planner_rows": 1, + "planner_total_cost": 3.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -114156,14 +114053,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "calls": 1, + "fingerprint": "de362d20efdc5b497a50660b54df9e8fe1b288c3dc202f5a5cf74c55a3bada4f", "indexes": [], "node_types": { - "Limit": 8, - "Seq Scan": 8 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -114177,12 +114074,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 72, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -114194,17 +114091,17 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Rows Removed by Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114212,13 +114109,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114226,7 +114123,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { @@ -114237,101 +114134,100 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 7, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 548, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 7 }, "calls": 1, - "fingerprint": "ed28bd0e723f0906cde38d991df31df81e12a97152c3cda47dd150e851b2f545", + "fingerprint": "e92ea1c21de24cd14b48ccddd84c6d2e9463f4c77a6a448230bce4f5fc562688", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "ModifyTable": 1, + "Result": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "core_job", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 984, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Plan Width": 984, + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.1, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Relation Name": "core_job", + "Shared Dirtied Blocks": 7, + "Shared Hit Blocks": 8, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.1, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 548, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 7 }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 8, + "planner_total_cost": 8.08, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -114340,79 +114236,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "f02e7413432cf9ff90ebf8ba4af3a0e73f0d286908517a8fe6df435380039ab2", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], + "calls": 8, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Limit": 8, + "Seq Scan": 8 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 72, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 7, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114420,7 +114306,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" }, { "aggregate": { @@ -114431,9 +114317,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 23.12, + "planner_total_cost": 24.15, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, + "shared_hit_blocks": 17, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -114443,17 +114329,16 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "f7a4661bd2b4ab5ba40f73e515c00b2d1f4c0e034312b3c56e17ca735335d102", + "fingerprint": "ea821382744ae6c5f6d0d53b7be0bf52aced3dcbd09e950705e6cef35114879a", "indexes": [ - "dcim_module_pkey", "dcim_modulebay_pkey" ], "node_types": { - "Index Scan": 4, + "Index Scan": 2, "Limit": 1, - "Memoize": 2, + "Memoize": 1, "Nested Loop": 6, - "Seq Scan": 3 + "Seq Scan": 5 }, "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { @@ -114494,7 +114379,8 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(\"T4\".module_id = \"T5\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -114511,9 +114397,8 @@ "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Inner Unique": false, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -114522,106 +114407,15 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 771, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 3.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -114635,206 +114429,165 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Type": "Left", + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 320, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.15, + "Total Cost": 3.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_modulebay", "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 2.66, + "Total Cost": 4.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 6, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.82, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.41, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.48, + "Total Cost": 10.46, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 0.0, "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 131, + "Plan Width": 262, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T4", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", + "Index Cond": "(id = \"T3\".module_bay_id)", "Index Name": "dcim_modulebay_pkey", "Index Searches": 0, "Local Dirtied Blocks": 0, @@ -114861,16 +114614,81 @@ "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 } ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.16, + "Total Cost": 6.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114878,27 +114696,57 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 10, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.79, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.65, + "Total Cost": 3.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 13, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 18.94, + "Total Cost": 19.97, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114921,42 +114769,351 @@ "Plan Width": 131, "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 17, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 3.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 3, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ed28bd0e723f0906cde38d991df31df81e12a97152c3cda47dd150e851b2f545", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 2, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 3.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 16, + "planner_total_cost": 131.92, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 48, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "eee73c095ecf28464b69cf07303a91f3be0a8cdb7c3e8e8a315212da4ffb6468", + "indexes": [ + "dcim_device_name_c27913_idx", + "dcim_interface_module_id_05ca2da5" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 + }, + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Incremental Sort", + "Parallel Aware": false, + "Plan Rows": 2, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 1242, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", + "Async Capable": false, + "Disabled": false, + "Heap Fetches": 3, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Only Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_id = ?)", + "Index Name": "dcim_interface_module_id_05ca2da5", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 4.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.08, + "Total Cost": 8.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 4.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 23.12, + "Total Cost": 16.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -114964,7 +115121,109 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "f02e7413432cf9ff90ebf8ba4af3a0e73f0d286908517a8fe6df435380039ab2", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 7, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" } ], "statements": [ @@ -115207,20 +115466,20 @@ "local_written_blocks": 0, "planned_statement_calls": 253, "planner_rows": 481, - "planner_total_cost": 3405.899999999999, - "planner_total_cost_per_work_unit": 425.7374999999999, - "shared_dirtied_blocks": 8, - "shared_hit_blocks": 1448, - "shared_hit_blocks_per_work_unit": 181.0, - "shared_read_blocks": 5, - "shared_written_blocks": 2, + "planner_total_cost": 3625.179999999999, + "planner_total_cost_per_work_unit": 453.14749999999987, + "shared_dirtied_blocks": 10, + "shared_hit_blocks": 1453, + "shared_hit_blocks_per_work_unit": 181.625, + "shared_read_blocks": 2, + "shared_written_blocks": 0, "statement_calls": 303, "statement_calls_per_work_unit": 37.875, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 26159, - "wal_fpi": 7, - "wal_records": 239, + "wal_bytes": 16354, + "wal_fpi": 0, + "wal_records": 231, "work_units": 8 } }, @@ -115236,64 +115495,64 @@ "layer": "complete_model_save", "machine_time": { "process_cpu": { - "median_ms": 654.271237, - "p95_ms": 713.270928, + "median_ms": 647.909391, + "p95_ms": 704.1480037, "samples_ns": [ - 654271237, - 615060578, - 633387478, - 686831907, - 680209969, - 639003392, - 671717342, - 658940765, - 712588674, - 638382340, - 646360814, - 606938921, - 630440094, - 672007287, - 714862854 + 624210421, + 616537652, + 703792390, + 635152006, + 609211660, + 586352567, + 647266501, + 649753854, + 623164423, + 704977769, + 647909391, + 650867432, + 678749987, + 657484320, + 672790023 ] }, "wall": { - "median_ms": 867.96403, - "p95_ms": 930.100548, + "median_ms": 870.672372, + "p95_ms": 913.0703146000001, "samples_ns": [ - 867964030, - 829684844, - 845160876, - 906934977, - 888067556, - 866695574, - 919705086, - 888269774, - 932385026, - 855134413, - 864464552, - 809304580, - 859091726, - 882138259, - 929121486 + 822118362, + 828682373, + 906353716, + 839374856, + 818045139, + 782514977, + 871328788, + 871373199, + 835687140, + 928742378, + 894529004, + 858600732, + 887007474, + 870672372, + 902129638 ] }, "warmup": { "process_cpu": { - "median_ms": 656.835681, - "p95_ms": 684.6390984, + "median_ms": 595.63285, + "p95_ms": 596.2692139, "samples_ns": [ - 644584539, - 687728367, - 656835681 + 596339921, + 595632850, + 583418727 ] }, "wall": { - "median_ms": 890.086206, - "p95_ms": 930.055242, + "median_ms": 783.500034, + "p95_ms": 791.5134792, "samples_ns": [ - 854238159, - 934496246, - 890086206 + 792403862, + 783500034, + 774549046 ] } } @@ -115325,7 +115584,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 35.12, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, "shared_hit_blocks": 19, "shared_read_blocks": 0, @@ -115337,7 +115596,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "00ae3ac393cf50833b2da5389c4acfe0fd6a80919d8ad1c4bac157993fc671b6", + "fingerprint": "03f6f4b3fee5d14c977001a455462bf63b12551fa400ebbbe6dd32d1fcb46d08", "indexes": [ "dcim_module_pkey", "dcim_modulebay_pkey" @@ -115451,7 +115710,7 @@ }, { "Actual Loops": 1, - "Actual Rows": 7.0, + "Actual Rows": 6.0, "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, @@ -115479,7 +115738,7 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 6, + "Rows Removed by Join Filter": 5, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 12, "Shared Read Blocks": 0, @@ -115555,7 +115814,7 @@ "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 4.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -115650,395 +115909,149 @@ "Relation Name": "dcim_module", "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 32.07999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 88.96000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 56, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "051f3354a2358379d7572074b15ec9fdfd4dd85257d922b8f6da59a49efe990c", - "indexes": [], - "node_types": { - "Limit": 8, - "Nested Loop": 8, - "Seq Scan": 16 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Filter": "(contenttype_ptr_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Filter": 163, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.05, + "Total Cost": 29.94, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116046,11 +116059,10 @@ }, { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", + "Actual Rows": 8.0, + "Alias": "T7", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -116058,32 +116070,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.06, + "Total Cost": 7.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116091,13 +116103,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.12, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116105,7 +116117,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -116211,220 +116223,16 @@ }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, + "planner_rows": 8, + "planner_total_cost": 40.07999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 40, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -116433,14 +116241,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "2967ad7fbeab1bbdd8e80c9d985eaa8717cea77094d6e9158970f3bad26dc74f", + "calls": 8, + "fingerprint": "153211edebc5a75aade6764e9050c4b8505b4a6abe63f3568c61a8804ad61d8d", "indexes": [], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Limit": 8, + "Seq Scan": 8 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -116454,12 +116262,12 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 137, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, "Filter": "(id = ?)", @@ -116471,8 +116279,8 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", + "Plan Width": 137, + "Relation Name": "dcim_site", "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, @@ -116481,7 +116289,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116495,7 +116303,7 @@ "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116503,20 +116311,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, + "planner_rows": 1, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 19, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -116525,112 +116333,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", + "calls": 1, + "fingerprint": "16c0c1786ea5ac06b6e6b06ef3228e99d91e7628c8496cb773611410164f4d74", "indexes": [ - "dcim_device_name_c27913_idx" + "dcim_module_pkey", + "dcim_modulebay_pkey" ], "node_types": { - "Index Only Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 32.07999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -116644,34 +116360,480 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 2.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116679,13 +116841,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.01, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116693,36 +116855,38 @@ }, "Triggers": [] }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { - "actual_loops": 8, + "actual_loops": 1, "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 0, - "planner_total_cost": 0.08, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 2552, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 32 + "wal_records": 0 }, - "calls": 8, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], + "calls": 1, + "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], "node_types": { - "ModifyTable": 8, - "Result": 8 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, @@ -116735,33 +116899,42 @@ "Local Read Blocks": 0, "Local Written Blocks": 0, "Node Type": "ModifyTable", - "Operation": "Insert", + "Operation": "Delete", "Parallel Aware": false, "Plan Rows": 0, "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Result", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 566, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116770,21 +116943,21 @@ ], "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, - "WAL Bytes": 319, + "WAL Bytes": 0, "WAL FPI": 0, - "WAL Records": 4 + "WAL Records": 0 }, "Triggers": [] }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { @@ -116807,7 +116980,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", + "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", "indexes": [ "extras_cachedvalue_object_type_id_6f47d444" ], @@ -116853,7 +117026,7 @@ "Plan Rows": 1, "Plan Width": 6, "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 6, + "Rows Removed by Filter": 4, "Rows Removed by Index Recheck": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, @@ -116897,9 +117070,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 8.14, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 19, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -116909,15 +117082,19 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", + "fingerprint": "25004154482dc9d8c300f59a50be177b6502864a0bb15fe43fc9507985e4ebb3", "indexes": [ - "dcim_devicetype_pkey" + "dcim_module_pkey", + "dcim_modulebay_pkey" ], "node_types": { - "Index Scan": 1, - "Limit": 1 + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -116931,37 +117108,480 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 707, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 5.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 4, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116969,13 +117589,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -116983,20 +117603,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 196.63999999999993, + "planner_rows": 1, + "planner_total_cost": 5.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -117005,21 +117625,18 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 16, - "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", - "indexes": [ - "dcim_interface_unique_device_name" - ], + "calls": 1, + "fingerprint": "2967ad7fbeab1bbdd8e80c9d985eaa8717cea77094d6e9158970f3bad26dc74f", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 16, - "Bitmap Index Scan": 16, - "Limit": 16 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -117033,66 +117650,30 @@ "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, - "Filter": "(id <> ?)", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", + "Relation Name": "dcim_module", "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117100,13 +117681,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 8.27, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.29, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117114,20 +117695,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { - "actual_loops": 48, - "actual_rows_times_loops": 48, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 48, - "planner_total_cost": 555.3599999999999, + "planner_rows": 1, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 336, + "shared_hit_blocks": 19, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -117136,16 +117717,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 48, - "fingerprint": "4462ffa418f331062e57dc7727fb4a6b790b8959b29cd43501f872bf4e49661e", - "indexes": [], + "calls": 1, + "fingerprint": "31277aec05cf3d008a822a9d39bd2271ddda0859e982621363ef6ac89544f77e", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], "node_types": { - "Hash": 48, - "Hash Join": 48, - "Limit": 48, - "Seq Scan": 96 + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -117159,101 +117744,422 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Cond": "(core_objecttype.contenttype_ptr_id = django_content_type.id)", "Inner Unique": true, - "Join Type": "Inner", + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash Join", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 176, + "Plan Width": 1091, "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 164.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 164, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, + "Inner Unique": false, + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, + "Node Type": "Nested Loop", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 22, + "Plan Width": 960, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 3.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 2, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117261,27 +118167,57 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.47, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.47, + "Total Cost": 7.08, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117289,13 +118225,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.49, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.57, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117303,117 +118239,111 @@ }, "Triggers": [] }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 4, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, + "planner_rows": 0, + "planner_total_cost": 0.04, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 24, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 0, + "wal_bytes": 1276, "wal_fpi": 0, - "wal_records": 0 + "wal_records": 16 }, - "calls": 8, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], + "calls": 4, + "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", + "indexes": [], "node_types": { - "Index Scan": 8, - "Limit": 8 + "ModifyTable": 4, + "Result": 4 }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Insert", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Result", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 566, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 0.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 319, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.52, + "planner_rows": 1, + "planner_total_cost": 4.32, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 4, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -117422,60 +118352,92 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], + "calls": 1, + "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", + "indexes": [], "node_types": { - "Index Scan": 8, - "Sort": 8 + "Aggregate": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", + "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Aggregate", "Parallel Aware": false, + "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 16, + "Plan Width": 32, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Sort", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 87, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "enabled", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 87, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.15, + "Sort Key": [ + "id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 4.02, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.17, + "Total Cost": 4.02, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117483,20 +118445,14 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, + "Startup Cost": 4.3, + "Strategy": "Plain", "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.19, + "Total Cost": 4.32, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117504,20 +118460,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" + "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -117527,68 +118483,78 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "4b3f09c885e704bde57408d55d1cbd9fa15823e5ff1361656b4bdcf5aec0718d", - "indexes": [], + "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 1, + "ModifyTable": 1 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "ModifyTable", + "Operation": "Delete", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, + "Plan Rows": 0, + "Plan Width": 0, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 3, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 6, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117596,20 +118562,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 16, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.18, + "planner_rows": 16, + "planner_total_cost": 196.63999999999993, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, + "shared_hit_blocks": 32, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -117618,124 +118584,94 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "561fbaeeec050a5f5c8bced263ffe486b4a7340c63f9d5ca6fd89732ad0e0d55", + "calls": 16, + "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", "indexes": [ - "dcim_moduletype_pkey" + "dcim_interface_unique_device_name" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Bitmap Heap Scan": 16, + "Bitmap Index Scan": 16, + "Limit": 16 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Exact Heap Blocks": 0, + "Filter": "(id <> ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", + "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Index Name": "dcim_interface_unique_device_name", "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", + "Plan Width": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, + "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", + "Relation Name": "dcim_interface", + "Rows Removed by Filter": 0, + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.16, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117743,20 +118679,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.17, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.18, + "Total Cost": 12.29, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117764,20 +118693,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" + "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, + "planner_rows": 8, + "planner_total_cost": 65.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 16, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -117786,14 +118715,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "57606ae110c1e9671efd30d05775a5f95c572c6ea54f26e6e5e8ab86da133db9", - "indexes": [], + "calls": 8, + "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", + "indexes": [ + "dcim_moduletype_pkey" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 8, + "Limit": 8 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -117807,34 +118738,37 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 595, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "(id = ?)", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117842,13 +118776,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117856,20 +118790,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 8, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, + "planner_rows": 8, + "planner_total_cost": 65.52, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 16, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -117878,55 +118812,60 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "5868afc0e5bc524b262b88aa536618312ad21270c67a9777c3933db618a28f3d", - "indexes": [], + "calls": 8, + "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", + "indexes": [ + "extras_subscription_unique_per_object_and_user" + ], "node_types": { - "Limit": 1, - "Seq Scan": 1 + "Index Scan": 8, + "Sort": 8 }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 4, + "Plan Width": 16, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", + "Actual Rows": 0.0, + "Alias": "extras_subscription", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Index Cond": "((object_type_id = ?) AND (object_id = ?))", + "Index Name": "extras_subscription_unique_per_object_and_user", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 2, + "Plan Width": 16, + "Relation Name": "extras_subscription", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.15, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 8.17, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117934,13 +118873,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "created DESC", + "user_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 8.18, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 8.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -117948,7 +118894,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" }, { "aggregate": { @@ -117971,7 +118917,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "6266affd344bc07db03337c045a4429942f6c1453eb5fc410fefb6b1057be296", + "fingerprint": "4b3f09c885e704bde57408d55d1cbd9fa15823e5ff1361656b4bdcf5aec0718d", "indexes": [], "node_types": { "Limit": 1, @@ -118010,7 +118956,7 @@ "Plan Rows": 1, "Plan Width": 4, "Relation Name": "dcim_module", - "Rows Removed by Filter": 6, + "Rows Removed by Filter": 3, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, @@ -118045,15 +118991,15 @@ { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 1, + "planner_total_cost": 12.18, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -118063,154 +119009,40 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", + "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_moduletype_pkey" ], "node_types": { "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 131.92, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "67f7c34189feff47adfe054d51fa804818fe89366e1ec51dab2226a33b13b5f7", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_module_id_05ca2da5" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 1, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -118219,36 +119051,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1242, + "Plan Width": 130, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "netbox_interface_name_rules_interfacenamerule", "Async Capable": false, "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "enabled", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Only Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -118257,63 +119087,30 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 996, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_id = ?)", - "Index Name": "dcim_interface_module_id_05ca2da5", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -118322,36 +119119,34 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.39, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 12.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" ], - "Startup Cost": 16.44, + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.49, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -118359,7 +119154,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" + "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" }, { "aggregate": { @@ -118370,9 +119165,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 192, - "planner_total_cost": 953.5200000000002, + "planner_total_cost": 972.7199999999996, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, + "shared_hit_blocks": 24, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -118382,7 +119177,7 @@ "wal_records": 0 }, "calls": 24, - "fingerprint": "6c00f01f825cfbcdd0bd1f9dc6d025bcfb28ad2c7c56a4289a8566d7cad77ba1", + "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", "indexes": [ "django_content_type_pkey", "extras_customfield_content_types_contenttype_id_2997ba90", @@ -118483,7 +119278,7 @@ "Plan Width": 1976, "Relation Name": "extras_customfield", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, @@ -118591,7 +119386,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 14.47, @@ -118631,7 +119426,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 0.56, + "Total Cost": 0.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -118639,13 +119434,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 14.62, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 29.48, + "Total Cost": 30.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -118687,13 +119482,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 14.76, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.59, + "Total Cost": 40.39, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -118701,7 +119496,7 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Sort Key": [ @@ -118712,10 +119507,10 @@ "Sort Method": "quicksort", "Sort Space Type": "Memory", "Sort Space Used": 25, - "Startup Cost": 39.71, + "Startup Cost": 40.51, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 39.73, + "Total Cost": 40.53, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -118734,7 +119529,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 35.12, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, "shared_hit_blocks": 19, "shared_read_blocks": 0, @@ -118746,7 +119541,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "73e2d8537045ce9c30d1722c2d7e507880449805c56f4ed5604d644b20f28fc5", + "fingerprint": "563c204ccc3278eeaebf3fd14efd8672f908e1f784ff97096f24b60f3878024f", "indexes": [ "dcim_module_pkey", "dcim_modulebay_pkey" @@ -118860,7 +119655,7 @@ }, { "Actual Loops": 1, - "Actual Rows": 5.0, + "Actual Rows": 7.0, "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, @@ -118888,7 +119683,7 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 4, + "Rows Removed by Join Filter": 6, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 12, "Shared Read Blocks": 0, @@ -118964,7 +119759,7 @@ "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 4.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119066,7 +119861,7 @@ "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 4.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119080,7 +119875,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.66, + "Total Cost": 4.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119094,7 +119889,7 @@ "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.82, + "Total Cost": 8.82, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119108,7 +119903,7 @@ "Startup Cost": 0.41, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.48, + "Total Cost": 13.48, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119187,7 +119982,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.65, + "Total Cost": 17.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119201,7 +119996,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.94, + "Total Cost": 29.94, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119245,7 +120040,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119259,7 +120054,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119271,16 +120066,16 @@ }, { "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 16, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 130.24, + "planner_rows": 1, + "planner_total_cost": 5.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -119289,16 +120084,14 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 16, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], + "calls": 1, + "fingerprint": "57606ae110c1e9671efd30d05775a5f95c572c6ea54f26e6e5e8ab86da133db9", + "indexes": [], "node_types": { - "Index Scan": 16, - "Limit": 16 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -119312,37 +120105,34 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 857, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119350,13 +120140,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119364,7 +120154,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { @@ -119375,7 +120165,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 5.32, + "planner_total_cost": 5.1, "shared_dirtied_blocks": 0, "shared_hit_blocks": 5, "shared_read_blocks": 0, @@ -119387,14 +120177,13 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "74af7fd4cadc23998a322fa9d7b04bfdbce28ef131f960a813b6a4152b9ca169", + "fingerprint": "5868afc0e5bc524b262b88aa536618312ad21270c67a9777c3933db618a28f3d", "indexes": [], "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -119405,73 +120194,37 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Aggregate", + "Node Type": "Limit", "Parallel Aware": false, - "Partial Mode": "Simple", "Plan Rows": 1, - "Plan Width": 32, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 2, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 5.02, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.02, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119482,11 +120235,10 @@ "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 5.3, - "Strategy": "Plain", + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.32, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119494,7 +120246,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { @@ -119505,7 +120257,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 35.12, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, "shared_hit_blocks": 19, "shared_read_blocks": 0, @@ -119517,7 +120269,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "79e70318fac6b24c88bd6b7b052c44759be094baa2aee300cd34cb5fc4f6e193", + "fingerprint": "5fa0c4f540bf7be985029de3902bec6879b96059f5ed27f258cfe2bb7d85294c", "indexes": [ "dcim_module_pkey", "dcim_modulebay_pkey" @@ -119631,7 +120383,7 @@ }, { "Actual Loops": 1, - "Actual Rows": 3.0, + "Actual Rows": 4.0, "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, @@ -119659,7 +120411,7 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 2, + "Rows Removed by Join Filter": 3, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 12, "Shared Read Blocks": 0, @@ -119735,7 +120487,7 @@ "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 4.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119837,7 +120589,7 @@ "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 4.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119851,7 +120603,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.66, + "Total Cost": 4.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119865,7 +120617,7 @@ "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.82, + "Total Cost": 8.82, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119879,7 +120631,7 @@ "Startup Cost": 0.41, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.48, + "Total Cost": 13.48, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119958,7 +120710,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.65, + "Total Cost": 17.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -119972,7 +120724,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.94, + "Total Cost": 29.94, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120016,7 +120768,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120030,7 +120782,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120042,16 +120794,16 @@ }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 8, + "planner_total_cost": 269.28, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 128, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -120060,79 +120812,405 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", + "calls": 8, + "fingerprint": "60e0b6722142ea6de304bec1be4294cce8f9a5902d16ed54019ecb27219c636b", "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" + "dcim_devicetype_unique_manufacturer_slug", + "dcim_interfacetemplate_unique_device_type_name", + "dcim_moduletype_unique_manufacturer_model" ], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Index Scan": 24, + "Nested Loop": 40, + "Seq Scan": 24, + "Sort": 8 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 782, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 782, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 774, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 564, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 556, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 528, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_moduletype", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Index Name": "dcim_moduletype_unique_manufacturer_model", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 44, + "Relation Name": "dcim_moduletype", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interfacetemplate", + "Async Capable": false, + "Disabled": false, + "Filter": "(module_type_id = ?)", + "Index Name": "dcim_interfacetemplate_unique_device_type_name", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 492, + "Relation Name": "dcim_interfacetemplate", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.25, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 16.29, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_unique_manufacturer_slug", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 36, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 24.45, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_manufacturer", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 11, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.47, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 7.0, + "Alias": "dcim_moduletypeprofile", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 7, + "Plan Width": 226, + "Relation Name": "dcim_moduletypeprofile", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.07, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.38, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.63, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 24, + "Relation Name": "dcim_manufacturer", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.38, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 33.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 16, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Sort Key": [ + "dcim_manufacturer.name", + "dcim_devicetype.model", + "dcim_moduletypeprofile.name", + "\"T6\".name", + "dcim_moduletype.model", + "dcim_interfacetemplate.name COLLATE natural_sort" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 33.66, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 33.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120140,120 +121218,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1551, - "wal_fpi": 0, - "wal_records": 23 - }, - "calls": 1, - "fingerprint": "84b96b20f03fda1748a2fbfaf2d8680a800f7f4cadd39dd27577fe0b5111d41a", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = ? WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 10, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 30, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 1551, - "WAL FPI": 0, - "WAL Records": 23 - }, - "Triggers": [] - }, - "statement_fingerprint": "e8b43469152c625ff5fb76776bc4ffc51e850db6a5e0e5672e7bfbcd6e308d29" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 131.92, + "planner_rows": 1, + "planner_total_cost": 5.1, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, + "shared_hit_blocks": 5, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -120262,194 +121240,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "912269cae2b0ad8f7ffd7262eacb95a29f9230ce9727e1de8446ac0fd54814f4", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], + "calls": 1, + "fingerprint": "6266affd344bc07db03337c045a4429942f6c1453eb5fc410fefb6b1057be296", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 + "Limit": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Incremental Sort", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 6, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.39, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.43, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.44, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 16.49, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120457,7 +121310,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { @@ -120468,7 +121321,7 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 35.12, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, "shared_hit_blocks": 19, "shared_read_blocks": 0, @@ -120480,7 +121333,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9ea4b85d2cd4d50ece1066c78d0cdfb532c22354b7d66bc08bdf2e084f4b9d7e", + "fingerprint": "63cec668ed2c9070e47c26a60f52b4a29352673a87dde01bc291c3b57a3c8922", "indexes": [ "dcim_module_pkey", "dcim_modulebay_pkey" @@ -120594,7 +121447,7 @@ }, { "Actual Loops": 1, - "Actual Rows": 4.0, + "Actual Rows": 8.0, "Alias": "dcim_modulebay", "Async Capable": false, "Disabled": false, @@ -120622,7 +121475,7 @@ "WAL Records": 0 } ], - "Rows Removed by Join Filter": 3, + "Rows Removed by Join Filter": 7, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 12, "Shared Read Blocks": 0, @@ -120698,7 +121551,7 @@ "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 4.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120800,7 +121653,7 @@ "Startup Cost": 0.13, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 4.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120814,7 +121667,7 @@ "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.66, + "Total Cost": 4.66, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120828,7 +121681,7 @@ "Startup Cost": 0.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.82, + "Total Cost": 8.82, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120842,7 +121695,7 @@ "Startup Cost": 0.41, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.48, + "Total Cost": 13.48, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120921,7 +121774,7 @@ "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.65, + "Total Cost": 17.65, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120929,57 +121782,481 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 37.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 37.12, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 1, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 105.84000000000002, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 40, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 8, + "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", + "indexes": [ + "core_objecttype_pkey" + ], + "node_types": { + "Index Scan": 8, + "Limit": 8, + "Nested Loop": 8, + "Seq Scan": 8 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 176, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "core_objecttype", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(contenttype_ptr_id = ?)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "django_content_type", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.06, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.23, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 12.18, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 4, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", + "indexes": [ + "dcim_moduletype_pkey" + ], + "node_types": { + "Index Scan": 1, + "Nested Loop": 1, + "Seq Scan": 1, + "Sort": 1 + }, + "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Sort", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 130, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "netbox_interface_name_rules_interfacenamerule", + "Async Capable": false, + "Disabled": false, + "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 110, + "Relation Name": "netbox_interface_name_rules_interfacenamerule", + "Rows Removed by Filter": 1, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.94, + "Total Cost": 4.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 1, + "Plan Width": 28, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 0, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.08, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 12.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -120987,13 +122264,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 4, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Sort Key": [ + "dcim_moduletype.model", + "netbox_interface_name_rules_interfacenamerule.id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 25, + "Startup Cost": 12.17, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 12.18, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -121001,20 +122285,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.16, + "planner_rows": 0, + "planner_total_cost": 8.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 2, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -121024,17 +122308,119 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "9edd00de4778e5b098b5f1b9ce6f8cba89a7de9c3bbad595b202ece5b0005926", + "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" + "extras_cachedvalue_object_type_id_6f47d444" ], "node_types": { "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 + "ModifyTable": 1 }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 3, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + }, + { + "aggregate": { + "actual_loops": 48, + "actual_rows_times_loops": 48, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 48, + "planner_total_cost": 659.0400000000004, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 240, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 48, + "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", + "indexes": [ + "core_objecttype_pkey" + ], + "node_types": { + "Index Scan": 48, + "Limit": 48, + "Nested Loop": 48, + "Seq Scan": 48 + }, + "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -121048,7 +122434,7 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 929, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, @@ -121056,8 +122442,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -121066,37 +122451,34 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 929, + "Plan Width": 176, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_device", + "Alias": "django_content_type", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, + "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", + "Plan Width": 22, + "Relation Name": "django_content_type", + "Rows Removed by Filter": 164, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 5.47, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -121105,42 +122487,46 @@ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", + "Alias": "core_objecttype", "Async Capable": false, "Disabled": false, + "Index Cond": "(contenttype_ptr_id = django_content_type.id)", + "Index Name": "core_objecttype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", + "Plan Width": 154, + "Relation Name": "core_objecttype", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.16, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -121151,10 +122537,10 @@ "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 9.16, + "Total Cost": 13.73, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -121162,20 +122548,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" + "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" }, { "aggregate": { "actual_loops": 8, - "actual_rows_times_loops": 0, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 64, - "planner_total_cost": 114.96000000000001, + "planner_rows": 8, + "planner_total_cost": 40.07999999999999, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, + "shared_hit_blocks": 40, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -121185,75 +122571,68 @@ "wal_records": 0 }, "calls": 8, - "fingerprint": "a458b03e46ae87793a974e4d24e7431852fd2124b065e40111cb8864615bffe7", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], + "fingerprint": "84c8d1597fd98ae2131365eaf5a7d86e4c14ad82589eabb9a4c4fd8befb26617", + "indexes": [], "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8 + "Limit": 8, + "Seq Scan": 8 }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, + "Plan Rows": 1, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, + "Alias": "dcim_site", "Async Capable": false, "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_site", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.21, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.21, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 14.37, + "Total Cost": 5.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -121261,139 +122640,195 @@ }, "Triggers": [] }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 66.24, + "planner_rows": 1, + "planner_total_cost": 8.14, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 368, + "shared_hit_blocks": 3, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 11440, + "wal_bytes": 0, "wal_fpi": 0, - "wal_records": 168 + "wal_records": 0 }, - "calls": 8, - "fingerprint": "a68f2537641b36a06f6040432385ecb83dc265ecdf50b0e9407d34e7fe75c8bb", + "calls": 1, + "fingerprint": "88a2149f6d5e45820cb29f3a306d79cd41b6b2372d5c29b084701832104f59d8", "indexes": [ - "dcim_interface_pkey" + "dcim_devicetype_pkey" ], "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "ModifyTable": 8 + "Index Scan": 1, + "Limit": 1 }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 707, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_interface", + "Alias": "dcim_devicetype", "Async Capable": false, "Disabled": false, - "Exact Heap Blocks": 1, + "Index Cond": "(id = ?)", + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", + "Plan Width": 707, + "Relation Name": "dcim_devicetype", "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 46, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 4.27, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" + }, + { + "aggregate": { + "actual_loops": 3, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 0.03, + "shared_dirtied_blocks": 3, + "shared_hit_blocks": 15, + "shared_read_blocks": 3, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 957, + "wal_fpi": 0, + "wal_records": 12 + }, + "calls": 3, + "fingerprint": "a7e329729b2108976886e9f2b9d844d95b698fbf1ffdf77f1bc1d6748abda579", + "indexes": [], + "node_types": { + "ModifyTable": 3, + "Result": 3 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.28, + "Total Cost": 0.01, "WAL Buffers Full": 0, - "WAL Bytes": 1430, + "WAL Bytes": 319, "WAL FPI": 0, - "WAL Records": 21 + "WAL Records": 4 }, "Triggers": [] }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" }, { "aggregate": { @@ -121489,16 +122924,16 @@ }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 16, + "actual_rows_times_loops": 16, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 35.12, + "planner_rows": 16, + "planner_total_cost": 130.24, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -121507,20 +122942,16 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "b3fd6013083f73b60d5974320c6ecd96952e2d8ec0e16c63b387982b7e69a127", + "calls": 16, + "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 + "Index Scan": 16, + "Limit": 16 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -121534,480 +122965,37 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 857, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -122015,13 +123003,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -122029,20 +123017,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 35.12, + "planner_rows": 16, + "planner_total_cost": 163.92, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -122051,34 +123039,44 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "b521b62701b8e15476b5d784e9ffab167d1997843e8cee66437c2194f1f7e1d9", + "calls": 8, + "fingerprint": "b18710784c5437e6d0f794b1df9772edd9e7493e4dda7c02ef35ddfd59326f47", "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" + "dcim_device_name_c27913_idx", + "dcim_interface_pkey" ], "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 2, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, @@ -122086,8 +123084,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -122096,484 +123094,279 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", + "Heap Fetches": 3, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 960, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 996, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 2.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.65, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.94, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 - }, + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 8.39, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.43, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 20.44, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 20.49, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" + }, + { + "aggregate": { + "actual_loops": 8, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 98.24, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 368, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 11440, + "wal_fpi": 0, + "wal_records": 168 + }, + "calls": 8, + "fingerprint": "c4db31918cf24c495105ca6dc209a98da106da94b44b952a1402ca35f3011858", + "indexes": [ + "dcim_interface_pkey" + ], + "node_types": { + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "ModifyTable": 8 + }, + "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Update", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", + "Async Capable": false, + "Disabled": false, + "Exact Heap Blocks": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 2003, + "Plans": [ { "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Index Cond": "(id = ?)", + "Index Name": "dcim_interface_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.08, + "Total Cost": 8.27, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, + "Recheck Cond": "(id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 12.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "dcim_interface", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 46, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 8.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 12.28, "WAL Buffers Full": 0, - "WAL Bytes": 0, + "WAL Bytes": 1430, "WAL FPI": 0, - "WAL Records": 0 + "WAL Records": 21 }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" }, { "aggregate": { @@ -122584,9 +123377,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 1, - "planner_total_cost": 35.12, + "planner_total_cost": 9.16, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -122596,19 +123389,17 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "b6c299e996c34b97c94b790927013d6f4f4016c4b308a805030b103040b008f8", + "fingerprint": "c62139245dc6502403a962e2d82929b349d9ed537f6759fea5ccb94f2d7b41a2", "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" + "dcim_device_unique_virtual_chassis_vc_position" ], "node_types": { - "Index Scan": 4, + "Index Scan": 1, "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 + "Nested Loop": 1, + "Seq Scan": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -122622,7 +123413,7 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 929, "Plans": [ { "Actual Loops": 1, @@ -122630,7 +123421,7 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, @@ -122640,418 +123431,37 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 1091, + "Plan Width": 929, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 27.94, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -123059,8 +123469,8 @@ }, { "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, @@ -123070,32 +123480,32 @@ "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", + "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.08, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 9.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -123103,13 +123513,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 9.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -123117,20 +123527,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 8, + "actual_loops": 8, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 48.99, + "planner_rows": 64, + "planner_total_cost": 114.96000000000001, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 21, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -123139,510 +123549,154 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "c245209c00d5c67a99bdcffe1f28bb648de0fdb67991224cb0875c5840bbef0b", + "calls": 8, + "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" + "dcim_interface_tagged_vlans_interface_id_5870c9e9" ], "node_types": { - "Hash": 2, - "Hash Join": 2, - "Index Scan": 3, - "Nested Loop": 4, - "Seq Scan": 4, - "Sort": 1 + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 8.0, + "Actual Rows": 0.0, + "Alias": "dcim_interface_tagged_vlans", "Async Capable": false, "Disabled": false, + "Exact Heap Blocks": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Plan Rows": 8, - "Plan Width": 3589, + "Plan Width": 24, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 8.0, + "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", - "Join Type": "Inner", + "Index Cond": "(interface_id = ?)", + "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Bitmap Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 8, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 2994, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2674, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2602, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", - "Inner Unique": true, - "Join Type": "Right", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1895, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 8, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(device_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.1, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.2, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 13.48, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.61, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(interface_id = ?)", + "Relation Name": "dcim_interface_tagged_vlans", + "Rows Removed by Index Recheck": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 4.21, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 14.37, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 1, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 1, + "planner_total_cost": 5.1, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 5, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "d0a7c40642f2e64c38e8d6772564685abc00983b41fbef81e1dea304976ca8a2", + "indexes": [], + "node_types": { + "Limit": 1, + "Seq Scan": 1 + }, + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Limit", + "Parallel Aware": false, + "Plan Rows": 1, + "Plan Width": 4, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 4, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 5, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 13.6, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 48.85, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -123650,20 +123704,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 31, - "Startup Cost": 48.97, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 48.99, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -123671,7 +123718,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" + "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" }, { "aggregate": { @@ -123682,9 +123729,9 @@ "local_read_blocks": 0, "local_written_blocks": 0, "planner_rows": 8, - "planner_total_cost": 269.28, + "planner_total_cost": 65.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 120, + "shared_hit_blocks": 24, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -123694,19 +123741,15 @@ "wal_records": 0 }, "calls": 8, - "fingerprint": "c5bfd6bc21177c2d039c15980791f553f52d3040c29431aa6b6d6becd408dd6b", + "fingerprint": "d60c285a705ad56bfbee49f5f905e7f291266f4907ddc3a8bcb935ccaf25f8e0", "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" + "dcim_device_name_c27913_idx" ], "node_types": { - "Index Scan": 24, - "Nested Loop": 40, - "Seq Scan": 24, - "Sort": 8 + "Index Only Scan": 8, + "Limit": 8 }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", + "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -123717,381 +123760,157 @@ "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 782, + "Plan Width": 4, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", + "Heap Fetches": 3, + "Index Cond": "(id = ?)", + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 774, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 564, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 556, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 528, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, + "Plan Width": 4, + "Relation Name": "dcim_device", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + "Triggers": [] + }, + "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 0, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 0, + "planner_total_cost": 8.16, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 2, + "shared_read_blocks": 0, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, + "wal_bytes": 0, + "wal_fpi": 0, + "wal_records": 0 + }, + "calls": 1, + "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", + "indexes": [ + "extras_cachedvalue_object_type_id_6f47d444" + ], + "node_types": { + "Index Scan": 1, + "ModifyTable": 1 + }, + "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Delete", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Filter": "(object_id = ?)", + "Index Cond": "(object_type_id = ?)", + "Index Name": "extras_cachedvalue_object_type_id_6f47d444", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 6, + "Relation Name": "extras_cachedvalue", + "Rows Removed by Filter": 5, + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.38, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 33.65, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, + "Shared Hit Blocks": 2, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 33.66, + "Startup Cost": 0.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 33.66, + "Total Cost": 8.16, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124099,65 +123918,158 @@ }, "Triggers": [] }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" + "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" }, { "aggregate": { "actual_loops": 1, - "actual_rows_times_loops": 1, + "actual_rows_times_loops": 0, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 35.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, + "planner_rows": 0, + "planner_total_cost": 0.01, + "shared_dirtied_blocks": 1, + "shared_hit_blocks": 6, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, "temp_written_blocks": 0, + "wal_bytes": 319, + "wal_fpi": 0, + "wal_records": 4 + }, + "calls": 1, + "fingerprint": "e6e60d8b3657c14565a93f604893ff25728f38324c3044c04a7e7ef22387de45", + "indexes": [], + "node_types": { + "ModifyTable": 1, + "Result": 1 + }, + "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", + "plan": { + "Plan": { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "extras_cachedvalue", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "ModifyTable", + "Operation": "Insert", + "Parallel Aware": false, + "Plan Rows": 0, + "Plan Width": 0, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Result", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 566, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Relation Name": "extras_cachedvalue", + "Shared Dirtied Blocks": 1, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 0.01, + "WAL Buffers Full": 0, + "WAL Bytes": 319, + "WAL FPI": 0, + "WAL Records": 4 + }, + "Triggers": [] + }, + "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" + }, + { + "aggregate": { + "actual_loops": 1, + "actual_rows_times_loops": 8, + "local_dirtied_blocks": 0, + "local_hit_blocks": 0, + "local_read_blocks": 0, + "local_written_blocks": 0, + "planner_rows": 8, + "planner_total_cost": 48.99, + "shared_dirtied_blocks": 0, + "shared_hit_blocks": 22, + "shared_read_blocks": 1, + "shared_written_blocks": 0, + "temp_read_blocks": 0, + "temp_written_blocks": 0, "wal_bytes": 0, "wal_fpi": 0, "wal_records": 0 }, "calls": 1, - "fingerprint": "ca984f66e18e1774429cb2be58c30061032e0d4963f3fe0da0c467f930368dd3", + "fingerprint": "e80c2e8aefd62f3da3df9bcc2400b563c4a2f1fadd97b44f4291d5cc4f9b7644", "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" + "dcim_device_unique_virtual_chassis_vc_position", + "dcim_devicetype_pkey", + "dcim_moduletype_pkey" ], "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 + "Hash": 2, + "Hash Join": 2, + "Index Scan": 3, + "Nested Loop": 4, + "Seq Scan": 4, + "Sort": 1 }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 8.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Limit", + "Node Type": "Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 3589, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 1.0, + "Actual Rows": 8.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -124165,25 +124077,57 @@ "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, + "Plan Rows": 8, + "Plan Width": 3589, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, + "Alias": "dcim_moduletype", "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", + "Index Name": "dcim_moduletype_pkey", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Index Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 960, + "Plan Width": 595, + "Relation Name": "dcim_moduletype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.12, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.14, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 2994, "Plans": [ { "Actual Loops": 1, @@ -124191,8 +124135,8 @@ "Async Capable": false, "Disabled": false, "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", + "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -124201,107 +124145,16 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 2674, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 6.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, "Async Capable": false, "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", + "Inner Unique": true, + "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -124310,119 +124163,84 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 509, + "Plan Width": 2602, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", "Inner Unique": true, - "Join Type": "Left", + "Join Type": "Right", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Nested Loop", + "Node Type": "Hash Join", "Parallel Aware": false, - "Parent Relationship": "Inner", + "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 320, + "Plan Width": 1895, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "dcim_platform", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 70, + "Plan Width": 1038, + "Relation Name": "dcim_platform", "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.15, + "Total Cost": 10.7, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, "Parallel Aware": false, "Parent Relationship": "Inner", + "Peak Memory Usage": 9, "Plan Rows": 1, - "Plan Width": 189, + "Plan Width": 857, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, + "Filter": "(id = ?)", + "Index Name": "dcim_device_unique_virtual_chassis_vc_position", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -124431,18 +124249,18 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, + "Plan Width": 857, + "Relation Name": "dcim_device", + "Rows Removed by Filter": 0, "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.65, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124450,13 +124268,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 8.14, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 3.66, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124464,78 +124282,202 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.15, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 19.04, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_devicetype", + "Async Capable": false, + "Disabled": false, + "Index Name": "dcim_devicetype_pkey", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 707, + "Relation Name": "dcim_devicetype", + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.28, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.82, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 6, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 0.41, + "Startup Cost": 8.28, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 11.48, + "Total Cost": 27.19, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Memoize", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 1, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 1.01, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 1, + "Shared Written Blocks": 0, + "Startup Cost": 8.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 28.21, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", + "Inner Unique": true, + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash Join", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 8, "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Async Capable": false, + "Disabled": false, + "Hash Batches": 1, + "Hash Buckets": 1024, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Hash", + "Original Hash Batches": 1, + "Original Hash Buckets": 1024, + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Peak Memory Usage": 9, + "Plan Rows": 8, + "Plan Width": 189, "Plans": [ { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "dcim_module", "Async Capable": false, "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, + "Filter": "(device_id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Rows": 8, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.13, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.15, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124543,13 +124485,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 5, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 5.1, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 4.16, + "Total Cost": 5.1, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124557,13 +124499,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 12, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 5.2, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 15.65, + "Total Cost": 12.31, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124571,57 +124513,28 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 19, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 13.48, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 7.08, + "Total Cost": 40.61, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Rows Removed by Join Filter": 8, + "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 22, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Startup Cost": 13.6, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 48.85, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124629,13 +124542,20 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, + "Shared Hit Blocks": 22, + "Shared Read Blocks": 1, "Shared Written Blocks": 0, - "Startup Cost": 0.55, + "Sort Key": [ + "dcim_modulebay.sort_path COLLATE natural_sort", + "dcim_module.module_bay_id" + ], + "Sort Method": "quicksort", + "Sort Space Type": "Memory", + "Sort Space Used": 31, + "Startup Cost": 48.97, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 35.12, + "Total Cost": 48.99, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124643,7 +124563,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" + "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" }, { "aggregate": { @@ -124666,7 +124586,7 @@ "wal_records": 0 }, "calls": 1, - "fingerprint": "d0a7c40642f2e64c38e8d6772564685abc00983b41fbef81e1dea304976ca8a2", + "fingerprint": "e9c747cf2be3b1049547f5959c9d7f7486a3f62ec896d3bbba38568c56052cd6", "indexes": [], "node_types": { "Limit": 1, @@ -124705,7 +124625,7 @@ "Plan Rows": 1, "Plan Width": 4, "Relation Name": "dcim_module", - "Rows Removed by Filter": 5, + "Rows Removed by Filter": 4, "Shared Dirtied Blocks": 0, "Shared Hit Blocks": 5, "Shared Read Blocks": 0, @@ -124739,16 +124659,16 @@ }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, + "planner_rows": 8, + "planner_total_cost": 8.08, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, + "shared_hit_blocks": 8, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -124757,79 +124677,69 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], + "calls": 8, + "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", + "indexes": [], "node_types": { - "Index Scan": 1, - "ModifyTable": 1 + "Limit": 8, + "Seq Scan": 8 }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", + "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", + "Node Type": "Limit", "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, + "Plan Rows": 1, + "Plan Width": 72, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", + "Actual Rows": 1.0, + "Alias": "dcim_virtualchassis", "Async Capable": false, "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, + "Filter": "(id = ?)", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Node Type": "Seq Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", + "Plan Width": 72, + "Relation Name": "dcim_virtualchassis", + "Rows Removed by Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Relation Name": "extras_cachedvalue", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, + "Shared Hit Blocks": 1, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.14, + "Startup Cost": 0.0, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.16, + "Total Cost": 1.01, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124837,20 +124747,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" + "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" }, { "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, + "actual_loops": 8, + "actual_rows_times_loops": 8, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.18, + "planner_rows": 16, + "planner_total_cost": 131.92, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, + "shared_hit_blocks": 48, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -124859,41 +124769,53 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 1, - "fingerprint": "e7084bd50248f6b3c189c151399634b073d2514dc4799866ae17beff84af98e1", + "calls": 8, + "fingerprint": "eee73c095ecf28464b69cf07303a91f3be0a8cdb7c3e8e8a315212da4ffb6468", "indexes": [ - "dcim_moduletype_pkey" + "dcim_device_name_c27913_idx", + "dcim_interface_module_id_05ca2da5" ], "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 + "Bitmap Heap Scan": 8, + "Bitmap Index Scan": 8, + "Incremental Sort": 8, + "Index Only Scan": 8, + "Nested Loop": 8 }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", + "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", "plan": { "Plan": { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, + "Full-sort Groups": { + "Group Count": 1, + "Sort Methods Used": [ + "quicksort" + ], + "Sort Space Memory": { + "Average Sort Space Used": 25, + "Peak Sort Space Used": 25 + } + }, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Sort", + "Node Type": "Incremental Sort", "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, + "Plan Rows": 2, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, + "Actual Rows": 1.0, "Async Capable": false, "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", + "Inner Unique": false, + "Join Filter": "(dcim_interface.device_id = dcim_device.id)", + "Join Type": "Inner", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, @@ -124902,66 +124824,101 @@ "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 130, + "Plan Width": 1242, "Plans": [ { "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", + "Actual Rows": 1.0, + "Alias": "dcim_device", "Async Capable": false, "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", + "Heap Fetches": 3, + "Index Name": "dcim_device_name_c27913_idx", + "Index Searches": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Index Only Scan", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, + "Plan Width": 28, + "Relation Name": "dcim_device", + "Scan Direction": "Forward", "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.12, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.01, + "Total Cost": 8.14, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 }, { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_interface", "Async Capable": false, "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, + "Exact Heap Blocks": 1, "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Index Scan", + "Lossy Heap Blocks": 0, + "Node Type": "Bitmap Heap Scan", "Parallel Aware": false, "Parent Relationship": "Inner", "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", + "Plan Width": 996, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Index Cond": "(module_id = ?)", + "Index Name": "dcim_interface_module_id_05ca2da5", + "Index Searches": 1, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Bitmap Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 2, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.27, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Recheck Cond": "(module_id = ?)", + "Relation Name": "dcim_interface", + "Rows Removed by Index Recheck": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, + "Shared Hit Blocks": 3, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 4.27, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 8.14, + "Total Cost": 8.28, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -124970,126 +124927,36 @@ ], "Rows Removed by Join Filter": 0, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.12, + "Startup Cost": 4.39, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 13.16, + "Total Cost": 16.43, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, "WAL Records": 0 } ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 13.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e9c747cf2be3b1049547f5959c9d7f7486a3f62ec896d3bbba38568c56052cd6", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } + "Presorted Key": [ + "dcim_device.name", + "dcim_interface.device_id" ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, + "Shared Hit Blocks": 6, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Sort Key": [ + "dcim_device.name COLLATE natural_sort", + "dcim_interface.device_id", + "dcim_interface._name COLLATE \"C\"" + ], + "Startup Cost": 16.44, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 5.1, + "Total Cost": 16.49, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -125097,20 +124964,20 @@ }, "Triggers": [] }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" + "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" }, { "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, + "actual_loops": 1, + "actual_rows_times_loops": 1, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 8.08, + "planner_rows": 1, + "planner_total_cost": 37.12, "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, + "shared_hit_blocks": 19, "shared_read_blocks": 0, "shared_written_blocks": 0, "temp_read_blocks": 0, @@ -125119,14 +124986,20 @@ "wal_fpi": 0, "wal_records": 0 }, - "calls": 8, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", - "indexes": [], + "calls": 1, + "fingerprint": "efd105ba76003c1e563280489ebc36f2b68dc92a480631fc614b0b019bbfa7be", + "indexes": [ + "dcim_module_pkey", + "dcim_modulebay_pkey" + ], "node_types": { - "Limit": 8, - "Seq Scan": 8 + "Index Scan": 4, + "Limit": 1, + "Memoize": 2, + "Nested Loop": 6, + "Seq Scan": 3 }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", + "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", "plan": { "Plan": { "Actual Loops": 1, @@ -125140,34 +125013,480 @@ "Node Type": "Limit", "Parallel Aware": false, "Plan Rows": 1, - "Plan Width": 72, + "Plan Width": 1091, "Plans": [ { "Actual Loops": 1, "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", "Async Capable": false, "Disabled": false, - "Filter": "(id = ?)", + "Inner Unique": true, + "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", + "Join Type": "Left", "Local Dirtied Blocks": 0, "Local Hit Blocks": 0, "Local Read Blocks": 0, "Local Written Blocks": 0, - "Node Type": "Seq Scan", + "Node Type": "Nested Loop", "Parallel Aware": false, "Parent Relationship": "Outer", "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Rows Removed by Filter": 0, + "Plan Width": 1091, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 960, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", + "Join Type": "Inner", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_module", + "Async Capable": false, + "Disabled": false, + "Filter": "(id = ?)", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Filter": 7, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 5, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 5.1, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 1.0, + "Alias": "dcim_modulebay", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 0, + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 12.28, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 640, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": false, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 509, + "Plans": [ + { + "Actual Loops": 1, + "Actual Rows": 0.0, + "Alias": "T3", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = dcim_modulebay.module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Disabled": false, + "Inner Unique": true, + "Join Type": "Left", + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Nested Loop", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 320, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T4", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T3\".module_bay_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".module_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 189, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T5", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".module_id)", + "Index Name": "dcim_module_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 189, + "Relation Name": "dcim_module", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.66, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.28, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 8.82, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.41, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 13.48, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 0, + "Actual Rows": 0, + "Async Capable": false, + "Cache Key": "\"T4\".parent_id", + "Cache Mode": "logical", + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Memoize", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 1, + "Plan Width": 131, + "Plans": [ + { + "Actual Loops": 0, + "Actual Rows": 0, + "Alias": "T6", + "Async Capable": false, + "Disabled": false, + "Index Cond": "(id = \"T4\".parent_id)", + "Index Name": "dcim_modulebay_pkey", + "Index Searches": 0, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Index Scan", + "Parallel Aware": false, + "Parent Relationship": "Outer", + "Plan Rows": 1, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Rows Removed by Index Recheck": 0, + "Scan Direction": "Forward", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.13, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.15, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.14, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 4.16, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 0, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 17.65, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 12, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.55, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 29.94, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + }, + { + "Actual Loops": 1, + "Actual Rows": 8.0, + "Alias": "T7", + "Async Capable": false, + "Disabled": false, + "Local Dirtied Blocks": 0, + "Local Hit Blocks": 0, + "Local Read Blocks": 0, + "Local Written Blocks": 0, + "Node Type": "Seq Scan", + "Parallel Aware": false, + "Parent Relationship": "Inner", + "Plan Rows": 8, + "Plan Width": 131, + "Relation Name": "dcim_modulebay", + "Shared Dirtied Blocks": 0, + "Shared Hit Blocks": 7, + "Shared Read Blocks": 0, + "Shared Written Blocks": 0, + "Startup Cost": 0.0, + "Temp Read Blocks": 0, + "Temp Written Blocks": 0, + "Total Cost": 7.08, + "WAL Buffers Full": 0, + "WAL Bytes": 0, + "WAL FPI": 0, + "WAL Records": 0 + } + ], + "Rows Removed by Join Filter": 8, "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -125175,13 +125494,13 @@ } ], "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, + "Shared Hit Blocks": 19, "Shared Read Blocks": 0, "Shared Written Blocks": 0, - "Startup Cost": 0.0, + "Startup Cost": 0.55, "Temp Read Blocks": 0, "Temp Written Blocks": 0, - "Total Cost": 1.01, + "Total Cost": 37.12, "WAL Buffers Full": 0, "WAL Bytes": 0, "WAL FPI": 0, @@ -125189,7 +125508,7 @@ }, "Triggers": [] }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" + "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" }, { "aggregate": { @@ -125433,12 +125752,6 @@ "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", "rows_affected": 8 }, - { - "calls": 1, - "fingerprint": "bc20d9e3dd0d64674cd73e58423e7090ace91f7ad989fb7d1aaabb21aea5169f", - "normalized_sql": "UPDATE \"dcim_device\" SET \"vc_position\" = %s WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, { "calls": 8, "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", @@ -125471,29 +125784,29 @@ } ], "totals": { - "actual_loops": 239, + "actual_loops": 238, "actual_rows_per_work_unit": 20.5, "actual_rows_times_loops": 164, "local_dirtied_blocks": 0, "local_hit_blocks": 0, "local_read_blocks": 0, "local_written_blocks": 0, - "planned_statement_calls": 239, + "planned_statement_calls": 238, "planner_rows": 461, - "planner_total_cost": 3400.2699999999973, - "planner_total_cost_per_work_unit": 425.03374999999966, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 1492, - "shared_hit_blocks_per_work_unit": 186.5, - "shared_read_blocks": 0, + "planner_total_cost": 3624.8899999999985, + "planner_total_cost_per_work_unit": 453.1112499999998, + "shared_dirtied_blocks": 4, + "shared_hit_blocks": 1427, + "shared_hit_blocks_per_work_unit": 178.375, + "shared_read_blocks": 4, "shared_written_blocks": 0, - "statement_calls": 287, - "statement_calls_per_work_unit": 35.875, + "statement_calls": 286, + "statement_calls_per_work_unit": 35.75, "temp_read_blocks": 0, "temp_written_blocks": 0, - "wal_bytes": 15543, + "wal_bytes": 13992, "wal_fpi": 0, - "wal_records": 223, + "wal_records": 200, "work_units": 8 } }, @@ -125509,64 +125822,64 @@ "layer": "direct_callback", "machine_time": { "process_cpu": { - "median_ms": 615.049383, - "p95_ms": 643.1125176, + "median_ms": 619.159207, + "p95_ms": 648.9389732999999, "samples_ns": [ - 601229200, - 620317766, - 653757349, - 621792822, - 638550447, - 600525985, - 603230398, - 561181367, - 629088982, - 594053941, - 571742556, - 632237380, - 573695822, - 620966672, - 615049383 + 619159207, + 635589709, + 606417715, + 634953730, + 608948662, + 604820054, + 622091920, + 658542428, + 626669787, + 609113787, + 612106177, + 644823207, + 558382794, + 616913314, + 625691005 ] }, "wall": { - "median_ms": 814.479289, - "p95_ms": 845.6796206, + "median_ms": 822.67852, + "p95_ms": 852.6234944, "samples_ns": [ - 810702860, - 822177112, - 854013913, - 842107781, - 833056774, - 804443677, - 798934157, - 728639980, - 817991106, - 810473313, - 762617984, - 821374281, - 756150524, - 814479289, - 816673894 + 822678520, + 838065972, + 807334041, + 840549083, + 804948966, + 800766024, + 835723935, + 866258359, + 831723223, + 814278182, + 814702979, + 845613067, + 761148490, + 811360749, + 846779981 ] }, "warmup": { "process_cpu": { - "median_ms": 609.625781, - "p95_ms": 638.4678911, + "median_ms": 672.207153, + "p95_ms": 688.3863288, "samples_ns": [ - 592392412, - 609625781, - 641672570 + 626237037, + 672207153, + 690184015 ] }, "wall": { - "median_ms": 809.0978, - "p95_ms": 836.0245445, + "median_ms": 875.722726, + "p95_ms": 923.9538259, "samples_ns": [ - 782095562, - 809097800, - 839016405 + 825792136, + 875722726, + 929312837 ] } } diff --git a/performance/baselines/existing-feature.md b/performance/baselines/existing-feature.md index 4391eff..397da85 100644 --- a/performance/baselines/existing-feature.md +++ b/performance/baselines/existing-feature.md @@ -5,20 +5,20 @@ Machine-time values are evidence for a same-hardware before/after comparison. Th | Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) | | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | -| `module.complete_model_save.no_matching_rule` | complete_model_save | 60 | 837.360 | 173 | 138.678 | 157.046 | 96.561 | -| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 15.440 | 15 | 18.348 | 20.589 | 14.661 | -| `module.complete_model_save.plain_rename` | complete_model_save | 96 | 1272.830 | 463 | 238.025 | 254.298 | 170.799 | -| `module.direct_callback.plain_rename` | direct_callback | 40 | 324.540 | 182 | 116.843 | 128.495 | 87.404 | -| `module.complete_model_save.structural_creation` | complete_model_save | 172 | 2404.020 | 849 | 372.509 | 391.993 | 270.402 | -| `module.direct_callback.structural_creation` | direct_callback | 119 | 1360.260 | 555 | 251.240 | 289.205 | 185.684 | -| `module.complete_model_save.existing_family` | complete_model_save | 333 | 3993.180 | 1895 | 766.828 | 804.635 | 579.244 | -| `module.direct_callback.existing_family` | direct_callback | 180 | 1766.330 | 706 | 460.578 | 492.982 | 355.068 | -| `module.complete_model_save.reconciliation` | complete_model_save | 432 | 5782.180 | 2155 | 1060.547 | 1100.317 | 803.236 | -| `module.direct_callback.reconciliation` | direct_callback | 279 | 3582.480 | 1203 | 807.278 | 838.632 | 611.082 | -| `vc.complete_model_save.reapply_1` | complete_model_save | 59 | 614.790 | 375 | 155.170 | 177.472 | 117.909 | -| `vc.direct_callback.reapply_1` | direct_callback | 42 | 484.690 | 240 | 125.716 | 141.237 | 93.752 | -| `vc.complete_model_save.reapply_8` | complete_model_save | 303 | 3405.900 | 1448 | 867.964 | 930.101 | 654.271 | -| `vc.direct_callback.reapply_8` | direct_callback | 287 | 3400.270 | 1492 | 814.479 | 845.680 | 615.049 | +| `module.complete_model_save.no_matching_rule` | complete_model_save | 60 | 912.140 | 172 | 130.838 | 134.836 | 95.205 | +| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 12.440 | 12 | 16.839 | 22.193 | 13.427 | +| `module.complete_model_save.plain_rename` | complete_model_save | 94 | 1318.710 | 420 | 225.878 | 243.823 | 166.734 | +| `module.direct_callback.plain_rename` | direct_callback | 40 | 344.010 | 172 | 110.545 | 122.771 | 84.187 | +| `module.complete_model_save.structural_creation` | complete_model_save | 172 | 2478.220 | 752 | 356.120 | 375.380 | 263.614 | +| `module.direct_callback.structural_creation` | direct_callback | 119 | 1430.530 | 560 | 239.876 | 271.187 | 178.600 | +| `module.complete_model_save.existing_family` | complete_model_save | 333 | 4186.010 | 1720 | 763.761 | 780.531 | 572.303 | +| `module.direct_callback.existing_family` | direct_callback | 180 | 2001.680 | 769 | 469.170 | 512.322 | 368.633 | +| `module.complete_model_save.reconciliation` | complete_model_save | 432 | 6015.690 | 1914 | 1057.152 | 1122.912 | 800.107 | +| `module.direct_callback.reconciliation` | direct_callback | 279 | 3884.150 | 1164 | 793.478 | 850.496 | 604.292 | +| `vc.complete_model_save.reapply_1` | complete_model_save | 59 | 637.310 | 356 | 148.062 | 158.043 | 110.496 | +| `vc.direct_callback.reapply_1` | direct_callback | 41 | 496.020 | 205 | 126.861 | 134.683 | 94.074 | +| `vc.complete_model_save.reapply_8` | complete_model_save | 303 | 3625.180 | 1453 | 870.672 | 913.070 | 647.909 | +| `vc.direct_callback.reapply_8` | direct_callback | 286 | 3624.890 | 1427 | 822.679 | 852.623 | 619.159 | Plugin revision: `ccadd0bb5b2852ff81f2747769d61746254173e1` From 8327c05f471e742f32a6bded7a6d238a3d643e90 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 15:00:59 +0200 Subject: [PATCH 03/74] docs: record interface family architecture decisions --- CONTEXT.md | 74 +++++++++++++++++++ ...01-interface-family-operation-atomicity.md | 7 ++ ...evalidate-family-plans-before-execution.md | 7 ++ ...rofile-database-work-on-the-signal-path.md | 7 ++ ...04-use-immutable-family-plan-boundaries.md | 7 ++ ...cute-each-family-in-its-own-transaction.md | 7 ++ docs/adr/0006-make-engine-a-family-facade.md | 7 ++ 7 files changed, 116 insertions(+) create mode 100644 CONTEXT.md create mode 100644 docs/adr/0001-interface-family-operation-atomicity.md create mode 100644 docs/adr/0002-revalidate-family-plans-before-execution.md create mode 100644 docs/adr/0003-profile-database-work-on-the-signal-path.md create mode 100644 docs/adr/0004-use-immutable-family-plan-boundaries.md create mode 100644 docs/adr/0005-execute-each-family-in-its-own-transaction.md create mode 100644 docs/adr/0006-make-engine-a-family-facade.md diff --git a/CONTEXT.md b/CONTEXT.md new file mode 100644 index 0000000..29eabd8 --- /dev/null +++ b/CONTEXT.md @@ -0,0 +1,74 @@ + + +# Interface Name Rules + +This context describes naming rules and the related interface topologies they manage. + +## Language + +**Interface family**: +A set of related interfaces that represents one physical port and its breakout channels in either a flat or channelized topology. +_Avoid_: Channel group, breakout set + +**Flat breakout family**: +An interface family whose channels are sibling interfaces without a physical parent relationship. +_Avoid_: Flat channels + +**Channelized family**: +An interface family with one physical parent that declares channel capacity and zero or more channel interfaces bound to it. The family remains channelized when it is incomplete. +_Avoid_: Parented breakout + +**Installed interface family**: +An interface family represented by the current NetBox interface rows. +_Avoid_: Persisted family + +**Prospective interface family**: +An intended interface family described before its interface rows exist. +_Avoid_: Predicted family + +**Family plan**: +An immutable description of one intended interface-family operation, its required live state, and its expected member outcomes. +_Avoid_: Rename instructions + +**Installed family plan**: +A family plan that includes a validated snapshot of installed NetBox rows and can be executed after live-state revalidation. +_Avoid_: Executable prediction + +**Family plan set**: +An immutable batch that contains exactly one family plan for each interface family in an operation. +_Avoid_: Plan list + +**Family rename**: +A change to the names of existing interface-family members that does not change their topology. +_Avoid_: Family conversion + +**Structural family change**: +A change that creates an interface family or changes it between flat and channelized topologies. +_Avoid_: Family rename + +**Unsupported topology**: +An interface-family topology that the active NetBox data model cannot represent. +_Avoid_: Legacy fallback + +**Blocked family operation**: +A valid requested family change that current device state prevents, such as when a required name is already occupied. +_Avoid_: Failed family operation + +**Automatic naming signal path**: +The complete path from a NetBox model save, through the committed callback, to the resulting interface-family rows. +_Avoid_: Signal handler performance + +**Signal-path performance baseline**: +Test-suite measurements of the automatic naming signal path before an implementation change. The baseline includes query counts, PostgreSQL work profiles, scaling behavior, and repeated machine-time samples collected on the hardware used for the after measurement. Shared-runner elapsed time is not a recurring CI metric. +_Avoid_: Runtime limit, CI speed + +**PostgreSQL work profile**: +A test-suite record of the database work performed by one automatic naming scenario. It includes normalized statements, execution plans, rows, loops, buffer access, temporary storage, and WAL activity. +_Avoid_: Standalone query benchmark + +**Implementation performance comparison**: +A one-time comparison produced by running the same test-suite performance scenarios before and after an implementation change on the same hardware. It includes database work, uninstrumented wall time, process CPU time, and raw timing samples. It is review evidence, not a recurring CI gate. +_Avoid_: Performance CI diff --git a/docs/adr/0001-interface-family-operation-atomicity.md b/docs/adr/0001-interface-family-operation-atomicity.md new file mode 100644 index 0000000..0f04602 --- /dev/null +++ b/docs/adr/0001-interface-family-operation-atomicity.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Preserve interface-family operation atomicity + +Structural family changes are atomic. A family rename proceeds only after its parent succeeds, but a collision or error on one channel leaves only that channel unchanged. This preserves useful renames and permits later repair without allowing a partial topology. A fully atomic family rename would discard unrelated successful channel renames, while best-effort structural changes could leave an invalid topology. diff --git a/docs/adr/0002-revalidate-family-plans-before-execution.md b/docs/adr/0002-revalidate-family-plans-before-execution.md new file mode 100644 index 0000000..507fd74 --- /dev/null +++ b/docs/adr/0002-revalidate-family-plans-before-execution.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Revalidate family plans before execution + +An interface-family plan is never trusted across a change to its interfaces. Execution revalidates identity, names, membership, and topology against live rows, then rejects a stale plan instead of silently constructing a replacement or applying only the members that still match. Interactive apply constructs a fresh plan from live rows rather than executing the earlier preview. This keeps the executed change equal to the selected plan and prevents concurrent edits from being overwritten. diff --git a/docs/adr/0003-profile-database-work-on-the-signal-path.md b/docs/adr/0003-profile-database-work-on-the-signal-path.md new file mode 100644 index 0000000..41dbc85 --- /dev/null +++ b/docs/adr/0003-profile-database-work-on-the-signal-path.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Profile database work on the signal path + +The test suite records a PostgreSQL work profile for each representative automatic naming scenario before the interface-family refactor begins. The profile comes from the real Django signal path and records statement counts, normalized SQL, execution plans, actual rows and loops, buffer access, temporary storage, WAL activity, and scaling behavior. PostgreSQL collects the execution data with node timing disabled. The test suite also runs a separate uninstrumented timing pass and records raw samples, wall time, and process CPU time. Run both passes before the refactor and rerun them afterward on the same hardware with the same PostgreSQL version, NetBox revision, fixtures, planner settings, and statistics. Retain the result as review evidence. CI does not use the machine-time comparison as a recurring regression gate. diff --git a/docs/adr/0004-use-immutable-family-plan-boundaries.md b/docs/adr/0004-use-immutable-family-plan-boundaries.md new file mode 100644 index 0000000..d85006b --- /dev/null +++ b/docs/adr/0004-use-immutable-family-plan-boundaries.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Use immutable family-plan boundaries + +The interface-family module exposes immutable installed and prospective plan sets. Each set contains exactly one plan per family. The installed adapter owns bulk ORM loading, family discovery, and row snapshots. The prospective adapter owns rowless template inputs. Callers provide semantic operation roots instead of querysets or discovered members. Only installed plans can execute, and execution returns explicit family and member outcomes. Existing engine entry points remain thin adapters to this boundary. diff --git a/docs/adr/0005-execute-each-family-in-its-own-transaction.md b/docs/adr/0005-execute-each-family-in-its-own-transaction.md new file mode 100644 index 0000000..dfcf112 --- /dev/null +++ b/docs/adr/0005-execute-each-family-in-its-own-transaction.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Execute each family in its own transaction + +Each installed family executes in its own database transaction. Execution locks member rows in stable primary-key order and revalidates the plan after locking. Structural changes roll back the complete family. Existing-family renames use child savepoints after the parent succeeds, so one blocked child does not undo unrelated member renames. A blocked family does not roll back other families in the plan set. Target-name checks run after locking, and NetBox's device-and-name uniqueness constraint remains the final collision guard without a device-wide interface lock. diff --git a/docs/adr/0006-make-engine-a-family-facade.md b/docs/adr/0006-make-engine-a-family-facade.md new file mode 100644 index 0000000..5551ce2 --- /dev/null +++ b/docs/adr/0006-make-engine-a-family-facade.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Make the engine a family facade + +The existing engine entry points remain as compatibility adapters. Shared rule selection, variable construction, and template evaluation move into lower-level modules. A dedicated family package owns immutable domain values, installed and prospective adapters, planning, revalidation, locking, execution, conversion, and deferred reconciliation. The family package never imports the engine facade. This dependency direction prevents circular imports and removes the old private family implementation when the replacement is complete. From a26d19145e969e78e9c779f29dfc45477d22d255 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 15:08:01 +0200 Subject: [PATCH 04/74] test: preserve profiler database errors --- netbox_interface_name_rules/tests/signal_performance.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index ae8be6f..5b3818a 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -421,7 +421,7 @@ def handle_notice(diagnostic) -> None: yield notices finally: if configured: - with connection.cursor() as cursor: + with contextlib.suppress(DatabaseError), connection.cursor() as cursor: cursor.execute("SET auto_explain.log_min_duration = -1") raw_connection.remove_notice_handler(handle_notice) @@ -789,6 +789,12 @@ def test_direct_vc_fixture_has_target_position(self): device = Device.objects.get(name=f"{prefix.lower()}-device") self.assertEqual(device.vc_position, 2) + def test_auto_explain_teardown_preserves_database_error(self): + """Keep the original database diagnosis when profiling aborts.""" + with self.assertRaisesRegex(DatabaseError, "division by zero"), transaction.atomic(): + with _auto_explain_notices(), connection.cursor() as cursor: + cursor.execute("SELECT 1 / 0") + @staticmethod def _analyze_tables() -> None: """Refresh planner statistics after each fixture is prepared.""" From d87bd1d5d7876997fc7e4c5dd674e91253a978ea Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 16:48:38 +0200 Subject: [PATCH 05/74] ci: audit workflows and parallelize tests --- .devcontainer/scripts/setup.sh | 4 ++-- .github/dependabot.yml | 8 ++++++++ .github/workflows/codeql.yml | 2 ++ .github/workflows/coverage-badge.yaml | 4 ++++ .github/workflows/lint-format.yaml | 10 ++++++++- .github/workflows/mkdocs.yaml | 2 ++ .github/workflows/pr-title.yaml | 2 +- .github/workflows/publish-pypi.yaml | 5 +++++ .github/workflows/release.yaml | 2 ++ .github/workflows/test-netbox-main.yaml | 11 +++++++--- .github/workflows/test.yaml | 27 +++++++++++++++---------- .pre-commit-config.yaml | 6 ++++++ pyproject.toml | 3 +++ 13 files changed, 68 insertions(+), 18 deletions(-) diff --git a/.devcontainer/scripts/setup.sh b/.devcontainer/scripts/setup.sh index 2e9d8ff..df95b10 100755 --- a/.devcontainer/scripts/setup.sh +++ b/.devcontainer/scripts/setup.sh @@ -140,9 +140,9 @@ apt-get update -qq apt-get install -y -qq net-tools git # Dev tools used by the agent loop and pre-commit hooks. Keep in sync with # the `dev` extras in pyproject.toml — at minimum, anything invoked by: -# - test + coverage runs: pytest, pytest-django, pytest-cov +# - test + coverage runs: pytest, pytest-django, pytest-cov, pytest-xdist # - pre-commit hooks (.pre-commit-config.yaml): ruff, pre-commit, reuse -$PIP_CMD install pytest pytest-django pytest-cov ruff pre-commit reuse +$PIP_CMD install pytest pytest-django pytest-cov pytest-xdist ruff pre-commit reuse # Install GitHub CLI if ! command -v gh >/dev/null 2>&1; then diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 043a1d8..ba3d962 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -11,11 +11,15 @@ updates: directory: "/" # Location of package manifests schedule: interval: "weekly" + cooldown: + default-days: 7 - package-ecosystem: "github-actions" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "weekly" + cooldown: + default-days: 7 groups: github-actions: patterns: @@ -25,8 +29,12 @@ updates: directory: "/.devcontainer" # Location of devcontainer.json schedule: interval: "weekly" + cooldown: + default-days: 7 - package-ecosystem: "docker-compose" # See documentation for possible values directory: "/.devcontainer" # Location of docker-compose.yml schedule: interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3ada5e7..5913b0a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -63,6 +63,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false # Add any setup steps before running the `github/codeql-action/init` action. # This includes steps like installing compilers or runtimes (`actions/setup-node` diff --git a/.github/workflows/coverage-badge.yaml b/.github/workflows/coverage-badge.yaml index 5d669bd..6e1df17 100644 --- a/.github/workflows/coverage-badge.yaml +++ b/.github/workflows/coverage-badge.yaml @@ -3,6 +3,8 @@ name: Update coverage report on: + # zizmor: ignore[dangerous-triggers] the job accepts only a successful push from this + # repository's main branch, and never consumes artifacts from pull-request code. workflow_run: workflows: ["Test with supported NetBox and Python versions"] types: [completed] @@ -66,6 +68,8 @@ jobs: fi - name: Checkout gh-pages + # zizmor: ignore[artipacked] this job pushes the coverage report to gh-pages, + # so this checkout has to keep its credential. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: gh-pages diff --git a/.github/workflows/lint-format.yaml b/.github/workflows/lint-format.yaml index 2858744..6e25163 100644 --- a/.github/workflows/lint-format.yaml +++ b/.github/workflows/lint-format.yaml @@ -9,9 +9,13 @@ on: jobs: format-and-lint: runs-on: ubuntu-latest + permissions: + contents: read steps: - name: Checkout code uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 @@ -22,7 +26,7 @@ jobs: python-version: '3.12' - name: Install dependencies - run: uv pip install --system ruff + run: uv pip install --system pre-commit ruff - name: Run Ruff linting run: ruff check . @@ -30,5 +34,9 @@ jobs: - name: Run Ruff formatting check run: ruff format --check . + # Runs the pinned hook from .pre-commit-config.yaml, so the version lives in one place. + - name: Audit the workflows + run: pre-commit run --all-files zizmor + - name: Run devcontainer script tests run: bash .devcontainer/scripts/tests/test-debug-toolbar-patches.sh diff --git a/.github/workflows/mkdocs.yaml b/.github/workflows/mkdocs.yaml index a24d5ac..a832057 100644 --- a/.github/workflows/mkdocs.yaml +++ b/.github/workflows/mkdocs.yaml @@ -26,6 +26,8 @@ jobs: contents: write steps: - name: Checkout repository + # zizmor: ignore[artipacked] mkdocs gh-deploy pushes to gh-pages, so this + # checkout has to keep its credential. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 diff --git a/.github/workflows/pr-title.yaml b/.github/workflows/pr-title.yaml index 04263dc..39dbd9a 100644 --- a/.github/workflows/pr-title.yaml +++ b/.github/workflows/pr-title.yaml @@ -3,7 +3,7 @@ name: Validate PR title on: - pull_request_target: + pull_request: types: [opened, edited, synchronize] permissions: diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml index 64c77d5..d7dc4b7 100644 --- a/.github/workflows/publish-pypi.yaml +++ b/.github/workflows/publish-pypi.yaml @@ -18,13 +18,18 @@ jobs: build: name: Build distribution 📦 runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: ref: ${{ inputs.tag || github.ref }} + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 + with: + enable-cache: false - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5d43e8c..588040c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,6 +17,8 @@ jobs: pull-requests: write steps: - name: Checkout + # zizmor: ignore[artipacked] semantic-release pushes the release commit and tag, + # so this checkout has to keep its credential. uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 diff --git a/.github/workflows/test-netbox-main.yaml b/.github/workflows/test-netbox-main.yaml index 85994ac..c919ffc 100644 --- a/.github/workflows/test-netbox-main.yaml +++ b/.github/workflows/test-netbox-main.yaml @@ -14,6 +14,8 @@ concurrency: jobs: test-netbox-main: runs-on: ubuntu-latest + permissions: + contents: read strategy: fail-fast: false @@ -49,6 +51,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: path: netbox-InterfaceNameRules-plugin + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 @@ -64,12 +67,13 @@ jobs: repository: "netbox-community/netbox" path: netbox ref: main + persist-credentials: false - name: Install NetBox and plugin working-directory: netbox-InterfaceNameRules-plugin run: | uv pip install --system -r ../netbox/requirements.txt - uv pip install --system pytest pytest-django tblib + uv pip install --system pytest pytest-django pytest-xdist tblib uv pip install --system -e . - name: Set up NetBox configuration @@ -96,8 +100,9 @@ jobs: EOF - name: Run tests - working-directory: netbox/netbox + working-directory: netbox-InterfaceNameRules-plugin env: NETBOX_CONFIGURATION: netbox.configuration + PYTHONPATH: ${{ github.workspace }}/netbox/netbox run: | - python manage.py test netbox_interface_name_rules --verbosity=2 + pytest netbox_interface_name_rules -o pythonpath=../netbox/netbox diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3c3417f..fcd3c4d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,6 +18,8 @@ concurrency: jobs: test-netbox: runs-on: ubuntu-latest + permissions: + contents: read strategy: fail-fast: false @@ -66,6 +68,7 @@ jobs: uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: path: netbox-InterfaceNameRules-plugin + persist-credentials: false - name: Install uv uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 @@ -81,12 +84,13 @@ jobs: repository: "netbox-community/netbox" path: netbox ref: ${{ matrix.netbox-version }} + persist-credentials: false - name: Install NetBox and plugin working-directory: netbox-InterfaceNameRules-plugin run: | uv pip install --system -r ../netbox/requirements.txt - uv pip install --system pytest pytest-django tblib coverage + uv pip install --system pytest pytest-cov pytest-django pytest-xdist tblib uv pip install --system -e . - name: Set up NetBox configuration @@ -113,10 +117,11 @@ jobs: EOF - name: Run tests with coverage - working-directory: netbox/netbox + working-directory: netbox-InterfaceNameRules-plugin env: NETBOX_CONFIGURATION: netbox.configuration - COVERAGE_RCFILE: ../../netbox-InterfaceNameRules-plugin/pyproject.toml + PYTHONPATH: ${{ github.workspace }}/netbox/netbox + COVERAGE_RCFILE: pyproject.toml # Turns the channelization tests' skipUnless guard into an assertion on the leg that must # have the feature, so a broken probe cannot silently skip the whole file. EXPECT_NETBOX_CHANNELIZATION: ${{ matrix.netbox-version == 'feature' && '1' || '' }} @@ -124,19 +129,19 @@ jobs: # checkout so these cells report plugin compatibility failures instead of baseline drift. UPDATE_QUERY_COUNTS: ${{ matrix.experimental && '1' || '' }} run: | - coverage run manage.py test netbox_interface_name_rules --verbosity=2 - coverage report + pytest netbox_interface_name_rules --cov=netbox_interface_name_rules --cov-report=term-missing \ + -o pythonpath=../netbox/netbox - name: Generate coverage report if: matrix.python-version == '3.12' && matrix.netbox-version == 'v4.5.3' - working-directory: netbox/netbox + working-directory: netbox-InterfaceNameRules-plugin env: - COVERAGE_RCFILE: ../../netbox-InterfaceNameRules-plugin/pyproject.toml + COVERAGE_RCFILE: pyproject.toml run: | - mkdir -p ../../coverage-report - coverage json -o ../../coverage-report/coverage.json - coverage html -d ../../coverage-report/htmlcov - coverage xml -o ../../coverage-report/coverage.xml + mkdir -p ../coverage-report + coverage json -o ../coverage-report/coverage.json + coverage html -d ../coverage-report/htmlcov + coverage xml -o ../coverage-report/coverage.xml - name: Upload coverage report if: matrix.python-version == '3.12' && matrix.netbox-version == 'v4.5.3' diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 543128c..babd209 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,6 +20,12 @@ repos: - id: mixed-line-ending args: [--fix=lf] + # GitHub Actions security audit. The lint workflow runs this same hook. + - repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: v1.29.0 + hooks: + - id: zizmor + # Python code quality - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.16.0 diff --git a/pyproject.toml b/pyproject.toml index 824d8f2..4701c11 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,7 @@ dev = [ "pytest", "pytest-django", "pytest-cov>=6.0", + "pytest-xdist>=3.8", "python-semantic-release", "django>=5.1,<7.0", ] @@ -66,6 +67,8 @@ docs = [ [tool.pytest.ini_options] pythonpath = ["/opt/netbox/netbox"] +DJANGO_SETTINGS_MODULE = "netbox.settings" +addopts = "-n auto --dist loadscope" [tool.ruff] line-length = 120 From d466d23c0738397729f182724270a2263b0686ac Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 17:34:44 +0200 Subject: [PATCH 06/74] refactor: extract rule selection --- netbox_interface_name_rules/engine.py | 366 +----------------- netbox_interface_name_rules/rule_selection.py | 251 ++++++++++++ .../tests/test_breakout_mode.py | 2 +- .../tests/test_engine_advanced.py | 4 +- .../tests/test_rule_selection.py | 42 ++ .../tests/test_rules.py | 93 +++-- .../tests/test_signals.py | 8 +- 7 files changed, 358 insertions(+), 408 deletions(-) create mode 100644 netbox_interface_name_rules/rule_selection.py create mode 100644 netbox_interface_name_rules/tests/test_rule_selection.py diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 5c5c4e9..80da2de 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -7,254 +7,29 @@ """ import ast -import contextlib import copy import logging import re -import threading from collections import defaultdict, namedtuple from django.core.exceptions import ValidationError from django.db import IntegrityError, transaction -from django.db.models import Aggregate, F, TextField, Value -from django.db.models.functions import Cast, Coalesce, Concat, Length +from . import rule_selection from .choices import BreakoutModeChoices +from .rule_selection import _compile_pattern logger = logging.getLogger(__name__) -# In-process cache of the enabled InterfaceNameRule set, keyed by a cheap fingerprint -# of that set. find_matching_rule() is called once per module row when a device's -# module-sync table is rendered, and each call used to run a DB query per scope -# candidate per tier; loading the (small) rule set once and matching in memory removes -# that per-row query storm. The fingerprint (see _enabled_rules_version) is re-read once -# per call and the set reloaded only when it changes, so it self-invalidates on any -# create/delete/edit — including raw bulk ``.update()`` of any matching field and SET_NULL -# cascades that bypass auto_now, and across test transactions — with no signal wiring. -# A reload publishes the new set by rebinding this name to a fresh dict in one atomic assignment -# (see _get_enabled_rules), so a concurrent reader on another worker thread sees either the whole -# old set or the whole new one — never exact/regex/memo torn across two versions. -_RULE_CACHE = {"version": None, "exact": (), "regex": (), "memo": {}} - -# Per-version cap on the find_matching_rule memo. A long-lived worker that sees many distinct -# (module_type, scope) contexts under a stable rule set would otherwise grow it without bound; -# on overflow the memo is cleared wholesale and rebuilt lazily. The cap is far above the number -# of contexts in any single module-sync render, so it never churns mid-render. -_MEMO_MAX = 4096 - -# Sentinel for the memo read. A single ``memo.get(sig, _MEMO_MISS)`` is one atomic dict lookup, so a -# concurrent ``memo.clear()`` at the cap can't wedge between a membership test and the subscript the -# way ``if sig in memo: return memo[sig]`` could — that compound read can raise a sporadic KeyError -# under threaded workers sharing one per-version memo. A real "no rule matched" is memoized as None, -# so the miss sentinel must be a distinct object, not None. -_MEMO_MISS = object() - -# Per-thread pin depth (see pinned_rule_cache). While > 0 on the current thread, _get_enabled_rules -# trusts the loaded set without re-reading the fingerprint, so an internal batch that wraps its loop -# turns N per-call fingerprint queries into one. Thread-local so concurrent requests don't affect -# each other; the depth defaults to 0, so any path that does not pin (the per-row signal handler, -# single applies) re-reads the fingerprint on every call exactly as before. -_pin = threading.local() - - -@contextlib.contextmanager -def pinned_rule_cache(): - """Pin the enabled-rule set for the duration of the block, skipping the per-call fingerprint query. - - find_matching_rule() normally re-reads a cheap fingerprint on every call to detect rule-set - changes. An internal batch that makes many lookups against an unchanging rule set — e.g. - _apply_rules_for_device_deferred(), which re-applies rules to every module on a device after a - virtual-chassis change — can wrap its loop in this context manager so the set is loaded and - fingerprinted once and reused for every call inside the block, turning N fingerprint queries - into one:: - - with pinned_rule_cache(): - for module in modules: - apply_interface_name_rules(module, module.module_bay, force_reapply=True) - - This is an INR-internal helper: only code that owns the batch loop pins, so it never becomes a - cross-plugin dependency. Other plugins integrate through the ``predict_module_interface_names`` - signal, which is dispatched one row at a time — so an external caller neither can nor needs to - pin, and INR exposes no batch API across the plugin boundary. - - Scope is explicit and per-thread: outside the block (and in any other thread/request) the normal - self-invalidating behaviour is unchanged, so there is no global staleness window. Nesting is - safe — only the outermost block manages the pin. Priming is lazy: the first find_matching_rule - inside the block does the one real fingerprint read + reload and captures that rule set into - thread-local state; the rest reuse that *snapshot* — so a block that makes no lookups does no - query at all, and a concurrent request reloading the shared cache on another thread cannot switch - this batch's rule set mid-loop. The loop may rename interfaces, but it must not edit rules: edits - to InterfaceNameRule made *inside* the block are not observed until it exits. - """ - depth = getattr(_pin, "depth", 0) - _pin.depth = depth + 1 - if depth == 0: - _pin.primed = False # the first lookup inside primes the cache (lazily — an empty block stays query-free) - try: - yield - finally: - _pin.depth -= 1 - if _pin.depth == 0: - # Release the per-thread snapshot so the next block re-primes from the live cache. - _pin.primed = False - for attr in ("exact", "regex", "memo"): - _pin.__dict__.pop(attr, None) - - -def _compile_pattern(pattern): - """Compile a regex *pattern* once, returning the compiled object or None for an invalid pattern. - - A None result is skipped at match time, mirroring the previous per-match ``try/except re.error`` - without recompiling the pattern on every lookup. - """ - try: - return re.compile(pattern) - except re.error: - return None - - -# Rule columns that affect matching or output, in a fixed order. The enabled-set fingerprint -# (see _enabled_rules_version) is an md5 over these for every enabled rule, so it changes on ANY -# edit that could change a lookup result. ``description`` is excluded — it is operator notes that -# never affect matching. ``id`` anchors each row to its identity, so a compensating swap between -# two rules (which leaves count + column sums unchanged) still changes the hash. -_VERSION_COLUMNS = ( - "id", - "module_type_id", - "module_type_is_regex", - "module_type_pattern", - "parent_module_type_id", - "device_type_id", - "platform_id", - "name_template", - "parent_name_template", - "breakout_mode", - "channel_count", - "channel_start", - "applies_to_device_interfaces", -) - - -class _Md5OrderedStringAgg(Aggregate): - """``md5(string_agg(, ORDER BY id))`` expressed as one ORM aggregate. - - Built through the ORM rather than a hand-formatted SQL string, so the table/column identifiers are - quoted by Django's compiler and the delimiter is a bound parameter — there is no string-interpolated - SQL to audit for injection. The template is ours, so it does not depend on ``StringAgg``'s Python - signature, which differs across the Django 5.x–6.x versions in CI. ``ORDER BY id`` makes string_agg - deterministic — a stable row order yields a stable hash for an unchanged set. - """ - - function = "STRING_AGG" - template = "MD5(%(function)s(%(expressions)s ORDER BY id))" - output_field = TextField() - - -def _version_row_signature(): - """Build the per-rule text signature expression for the fingerprint. - - Each matching/output column is cast to text and emitted length-prefixed as ``:``. - That makes the row encoding self-delimiting: distinct column tuples can never serialize to the same - string, even if a text column (name_template / module_type_pattern) contains digits, a colon, or the - control characters a plain separator scheme would rely on being absent. A nullable FK is coalesced to - '' (length 0), so null stays distinct from any value while keeping the column's slot. - """ - empty = Value("", output_field=TextField()) - colon = Value(":", output_field=TextField()) - parts = [] - for column in _VERSION_COLUMNS: - cast = Cast(F(column), output_field=TextField()) - value = Coalesce(cast, empty, output_field=TextField()) if column.endswith("_id") else cast - parts.append(Cast(Length(value), output_field=TextField())) - parts.append(colon) - parts.append(value) - return Concat(*parts, output_field=TextField()) - - -# The signature expression is constant, so build it once and reuse it across calls. -_ROW_SIGNATURE = _version_row_signature() - - -def _enabled_rules_version(): - """Return a deterministic content fingerprint of the enabled-rule set. - - Computed server-side as an md5 over every enabled rule's matching/output columns, row-ordered - by pk, so the fingerprint changes on ANY edit that could change a lookup — including a raw bulk - ``.update()`` of a text field (name_template / module_type_pattern) or a boolean - (module_type_is_regex), which an aggregate of counts/sums cannot see, and a compensating edit - that keeps the column sums constant. It is one query returning a single 32-char hash, so it - stays cheap enough to re-read on every call. - - Each column is length-prefixed (see _version_row_signature), so the per-row encoding is - self-delimiting and rows concatenate unambiguously — distinct rule sets cannot collide even if a - text column contains arbitrary bytes. A nullable FK renders as the empty string (a real id never - does), keeping null distinct from any value. The empty set aggregates to NULL → coalesced to a - stable empty fingerprint, so "no enabled rules" is fixed. - """ - from .models import InterfaceNameRule - - return InterfaceNameRule.objects.filter(enabled=True).aggregate( - fingerprint=Coalesce( - _Md5OrderedStringAgg(_ROW_SIGNATURE, Value("", output_field=TextField())), - Value("", output_field=TextField()), - ) - )["fingerprint"] - -def _get_enabled_rules(): - """Return ``(exact_rules, regex_rules, memo)``, reloading only when the rule set changes. - - ``exact_rules`` are ordered by ``(module_type__model, pk)`` to mirror the model's default - ordering (so an in-memory ``first match`` equals the previous ``.first()``). ``regex_rules`` - is a tuple of ``(compiled_pattern, rule)`` pairs, pre-sorted once by ``(-pattern length, pk)`` - and with each pattern compiled once, so the regex tier neither re-sorts nor recompiles per - call. ``memo`` caches find_matching_rule results for the current rule-set version. - - Inside a ``pinned_rule_cache()`` block on this thread, once the set has been primed (by the first - lookup in the block) the fingerprint query is skipped and the snapshot captured at prime time is - returned — never the live ``_RULE_CACHE``, which another thread may reload mid-block. - """ - global _RULE_CACHE - - pinned = getattr(_pin, "depth", 0) > 0 - if pinned and getattr(_pin, "primed", False): - # Serve the snapshot captured when this block primed, not the shared cache: a concurrent - # request on another thread may reload _RULE_CACHE to a different version while we iterate, and - # a pinned batch must match every item against one consistent rule set. - return _pin.exact, _pin.regex, _pin.memo +def pinned_rule_cache(): + """Return the lower-level rule cache pinning context.""" + return rule_selection.pinned_rule_cache() - from .models import InterfaceNameRule - # Read the module global exactly once. A reload below publishes the new set by rebinding - # _RULE_CACHE to a brand-new dict (a single atomic name assignment) rather than mutating this - # one in place, so this local is a consistent snapshot: exact/regex/memo can never be torn - # across two rule-set versions even if another thread reloads between the reads at the end. - cache = _RULE_CACHE - version = _enabled_rules_version() - if cache["version"] != version: - rules = list(InterfaceNameRule.objects.filter(enabled=True).order_by("module_type__model", "pk")) - exact = tuple(r for r in rules if not r.module_type_is_regex) - regex_rules = sorted( - (r for r in rules if r.module_type_is_regex), - key=lambda r: (-len(r.module_type_pattern or ""), r.pk), - ) - regex = tuple((_compile_pattern(r.module_type_pattern), r) for r in regex_rules) - # Publish the whole new version atomically: a reader either sees the old dict or this one, - # never a mix of the two. Last writer wins; a concurrent reload to the same version just - # rebuilds redundantly, never corrupts. - cache = {"version": version, "exact": exact, "regex": regex, "memo": {}} - _RULE_CACHE = cache - if pinned: - # Pin this thread to the freshly-resolved set for the rest of the block. The tuples are - # immutable and the memo is COPIED into thread-local state — not aliased — so the pinned batch - # neither shares nor races the global memo: another thread clearing the shared memo at the cap - # can't evict our warmed entries (or wedge a KeyError) mid-loop, and entries we add stay private. - _pin.exact = cache["exact"] - _pin.regex = cache["regex"] - _pin.memo = dict(cache["memo"]) - _pin.primed = True - return _pin.exact, _pin.regex, _pin.memo - return cache["exact"], cache["regex"], cache["memo"] +def find_matching_rule(module_type, parent_module_type, device_type, platform=None): + """Delegate rule selection while preserving the engine entry point.""" + return rule_selection.find_matching_rule(module_type, parent_module_type, device_type, platform) def _get_parent_module_type(module_bay): @@ -1087,131 +862,6 @@ def _flag_rule_potentially_deprecated(rule): logger.exception("Failed to flag rule '%s' as potentially-deprecated.", rule) -def _scope_ids(parent_module_type, device_type, platform): - """Map the (parent_module_type, device_type, platform) scope objects to their FK ids. - - ``None`` (no constraint) maps to ``None`` so it compares equal to a rule's unset scope FK. - Centralises the ``x.pk if x is not None else None`` coalescing used by both match tiers and - the memo key. - """ - return ( - parent_module_type.pk if parent_module_type is not None else None, - device_type.pk if device_type is not None else None, - platform.pk if platform is not None else None, - ) - - -def _rule_scope_matches(rule, scope_ids): - """Return True when *rule*'s (parent_module_type, device_type, platform) FKs equal *scope_ids*.""" - pmt_id, dt_id, pl_id = scope_ids - return rule.parent_module_type_id == pmt_id and rule.device_type_id == dt_id and rule.platform_id == pl_id - - -def _build_candidates(parent_module_type, device_type, platform) -> list: - """Build ordered list of (pmt, dt, pl) tuples from most to least specific. - - Each argument expands to ``[value, None]`` when provided, or ``[None]`` - when already absent. Deduplication ensures no key appears twice (which - would happen when multiple inputs are None). - """ - seen: set = set() - candidates = [] - pmt_opts = [parent_module_type, None] if parent_module_type else [None] - dt_opts = [device_type, None] if device_type else [None] - pl_opts = [platform, None] if platform else [None] - for pmt in pmt_opts: - for dt in dt_opts: - for pl in pl_opts: - key = (pmt, dt, pl) - if key not in seen: - seen.add(key) - candidates.append(key) - return candidates - - -def _find_exact_match(module_type, candidates, exact_rules=None): - """Tier 1: return the first enabled exact-FK rule in specificity order, or None. - - ``exact_rules`` is the preloaded, ``(module_type__model, pk)``-ordered enabled - exact-rule set (the hot path passes it to avoid a DB query per call); when omitted - it is loaded on demand so direct callers keep working. - """ - if exact_rules is None: - exact_rules, _, _ = _get_enabled_rules() - - # module_type fixed below → the (module_type__model, pk) ordering reduces to pk, so the - # first matching rule equals the previous ``.filter(...).first()``. - scoped = [r for r in exact_rules if r.module_type_id == module_type.pk] - for candidate in candidates: - scope_ids = _scope_ids(*candidate) - for rule in scoped: - if _rule_scope_matches(rule, scope_ids): - return rule - return None - - -def _find_regex_match(model_name: str, candidates, regex_rules=None): - """Tier 2: return the first enabled regex rule whose pattern fullmatches *model_name*, or None. - - Tries candidates in specificity order; within each level longer patterns are tried first - (more specific). ``regex_rules`` is the preloaded ``(compiled_pattern, rule)`` set — pre-sorted - by ``(-pattern length, pk)`` with each pattern compiled once (a None compile is an invalid - pattern, silently skipped); loaded on demand when omitted. - """ - if regex_rules is None: - _, regex_rules, _ = _get_enabled_rules() - - for candidate in candidates: - scope_ids = _scope_ids(*candidate) - for compiled, rule in regex_rules: - if compiled is not None and _rule_scope_matches(rule, scope_ids) and compiled.fullmatch(model_name): - return rule - return None - - -def find_matching_rule(module_type, parent_module_type, device_type, platform=None): - """Find the most specific InterfaceNameRule matching the context. - - Uses a two-tier strategy: - Tier 1 — Exact FK match (priority order, most specific first): - Iterates all combinations of (parent_module_type, device_type, platform) - from fully-constrained to fully-unconstrained (None = any). - Tier 2 — Regex pattern match (same priority order, longer patterns first): - Same specificity cascade, but module_type_pattern is matched via - re.fullmatch() against module_type.model. Patterns are iterated - from longest to shortest to prefer more specific patterns. - - The enabled rule set is loaded once and matched in memory, and the per-context - result is memoized for the current rule-set version, so repeated calls (e.g. one - per module row in a module-sync render) don't re-query the database. - - Returns the first matching rule, or None if no rule matches. - """ - if module_type is None: - # Module rules are always keyed on a module type; both tiers dereference it - # (module_type.pk / .model), so there is nothing to match without one. - return None - - exact_rules, regex_rules, memo = _get_enabled_rules() - # The regex tier matches against module_type.model (a live string), so the memo must key on - # it too — otherwise a ModuleType.model rename (same pk) would return a stale regex result. - sig = (module_type.pk, module_type.model, *_scope_ids(parent_module_type, device_type, platform)) - # One atomic lookup, not `if sig in memo: return memo[sig]`: another thread sharing this per-version - # memo can clear it at the cap between a membership test and the subscript, raising KeyError. - cached = memo.get(sig, _MEMO_MISS) - if cached is not _MEMO_MISS: - return cached - - candidates = _build_candidates(parent_module_type, device_type, platform) - result = _find_exact_match(module_type, candidates, exact_rules) or _find_regex_match( - module_type.model, candidates, regex_rules - ) - if len(memo) >= _MEMO_MAX: - memo.clear() # bound per-version memory; entries are rebuilt lazily on the next miss - memo[sig] = result - return result - - def _extract_trailing_digits(s: str) -> str: r"""Return the trailing digit run of *s* without regex backtracking. diff --git a/netbox_interface_name_rules/rule_selection.py b/netbox_interface_name_rules/rule_selection.py new file mode 100644 index 0000000..e359b8e --- /dev/null +++ b/netbox_interface_name_rules/rule_selection.py @@ -0,0 +1,251 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Select an enabled interface-name rule for a module context.""" + +import contextlib +import re +import threading + +from django.db.models import Aggregate, F, TextField, Value +from django.db.models.functions import Cast, Coalesce, Concat, Length + +# Publish each loaded rule set as one new dictionary. Concurrent readers then see +# one complete version rather than a mixture of cache entries from two versions. +_RULE_CACHE = {"version": None, "exact": (), "regex": (), "memo": {}} + +# Bound the number of module and scope contexts retained for one rule-set version. +_MEMO_MAX = 4096 +_MEMO_MISS = object() + +# A pinned batch owns a thread-local rule-set snapshot and a private memo. +_pin = threading.local() + + +@contextlib.contextmanager +def pinned_rule_cache(): + """Pin one enabled-rule snapshot for all selections inside the block. + + The first selection loads and fingerprints the rule set. Later selections in + the same thread skip the fingerprint query. Nested blocks share the snapshot. + The pin is thread-local, and an empty block does not load rules. + """ + depth = getattr(_pin, "depth", 0) + _pin.depth = depth + 1 + if depth == 0: + _pin.primed = False + try: + yield + finally: + _pin.depth -= 1 + if _pin.depth == 0: + _pin.primed = False + for attr in ("exact", "regex", "memo"): + _pin.__dict__.pop(attr, None) + + +def _compile_pattern(pattern): + """Compile a pattern once, or return None when it is invalid.""" + try: + return re.compile(pattern) + except re.error: + return None + + +# These fields can change either matching or the selected rule's output. The row +# identity prevents compensating edits across two rules from preserving the hash. +_VERSION_COLUMNS = ( + "id", + "module_type_id", + "module_type_is_regex", + "module_type_pattern", + "parent_module_type_id", + "device_type_id", + "platform_id", + "name_template", + "parent_name_template", + "breakout_mode", + "channel_count", + "channel_start", + "applies_to_device_interfaces", +) + + +class _Md5OrderedStringAgg(Aggregate): + """Build ``md5(string_agg(, ORDER BY id))``.""" + + function = "STRING_AGG" + template = "MD5(%(function)s(%(expressions)s ORDER BY id))" + output_field = TextField() + + +def _version_row_signature(): + """Build an unambiguous, length-prefixed signature for one rule row.""" + empty = Value("", output_field=TextField()) + colon = Value(":", output_field=TextField()) + parts = [] + for column in _VERSION_COLUMNS: + cast = Cast(F(column), output_field=TextField()) + value = Coalesce(cast, empty, output_field=TextField()) if column.endswith("_id") else cast + parts.append(Cast(Length(value), output_field=TextField())) + parts.append(colon) + parts.append(value) + return Concat(*parts, output_field=TextField()) + + +_ROW_SIGNATURE = _version_row_signature() + + +def _enabled_rules_version(): + """Return a deterministic content fingerprint of all enabled rules. + + PostgreSQL hashes the matching and output columns in primary-key order. Each + value is length-prefixed, so arbitrary text cannot create field or row boundary + collisions. The empty rule set has a stable empty fingerprint. + """ + from .models import InterfaceNameRule + + return InterfaceNameRule.objects.filter(enabled=True).aggregate( + fingerprint=Coalesce( + _Md5OrderedStringAgg(_ROW_SIGNATURE, Value("", output_field=TextField())), + Value("", output_field=TextField()), + ) + )["fingerprint"] + + +def _get_enabled_rules(): + """Return the exact rules, regex rules, and memo for the current version. + + Exact rules retain model ordering, which reduces to primary-key order for one + module type. Regex rules are compiled once and ordered by decreasing pattern + length, then primary key. A reload publishes one new cache dictionary so a + concurrent reader cannot combine values from two versions. + """ + global _RULE_CACHE + + pinned = getattr(_pin, "depth", 0) > 0 + if pinned and getattr(_pin, "primed", False): + # Return the thread's snapshot. Another thread can replace the shared cache. + return _pin.exact, _pin.regex, _pin.memo + + from .models import InterfaceNameRule + + cache = _RULE_CACHE + version = _enabled_rules_version() + if cache["version"] != version: + rules = list(InterfaceNameRule.objects.filter(enabled=True).order_by("module_type__model", "pk")) + exact = tuple(rule for rule in rules if not rule.module_type_is_regex) + regex_rules = sorted( + (rule for rule in rules if rule.module_type_is_regex), + key=lambda rule: (-len(rule.module_type_pattern or ""), rule.pk), + ) + regex = tuple((_compile_pattern(rule.module_type_pattern), rule) for rule in regex_rules) + cache = {"version": version, "exact": exact, "regex": regex, "memo": {}} + _RULE_CACHE = cache + + if pinned: + # Keep a private memo so another thread cannot clear this batch's entries. + _pin.exact = cache["exact"] + _pin.regex = cache["regex"] + _pin.memo = dict(cache["memo"]) + _pin.primed = True + return _pin.exact, _pin.regex, _pin.memo + + return cache["exact"], cache["regex"], cache["memo"] + + +def _scope_ids(parent_module_type, device_type, platform): + """Map optional scope objects to their foreign-key values.""" + return ( + parent_module_type.pk if parent_module_type is not None else None, + device_type.pk if device_type is not None else None, + platform.pk if platform is not None else None, + ) + + +def _rule_scope_matches(rule, scope_ids): + """Return whether a rule has exactly the requested scope values.""" + parent_module_type_id, device_type_id, platform_id = scope_ids + return ( + rule.parent_module_type_id == parent_module_type_id + and rule.device_type_id == device_type_id + and rule.platform_id == platform_id + ) + + +def _build_candidates(parent_module_type, device_type, platform) -> list: + """Build scope combinations from most specific to least specific.""" + seen: set = set() + candidates = [] + parent_options = [parent_module_type, None] if parent_module_type else [None] + device_options = [device_type, None] if device_type else [None] + platform_options = [platform, None] if platform else [None] + for parent in parent_options: + for device in device_options: + for candidate_platform in platform_options: + candidate = (parent, device, candidate_platform) + if candidate not in seen: + seen.add(candidate) + candidates.append(candidate) + return candidates + + +def _find_exact_match(module_type, candidates, exact_rules=None): + """Return the first enabled exact rule in scope-precedence order.""" + if exact_rules is None: + exact_rules, _, _ = _get_enabled_rules() + + scoped_rules = [rule for rule in exact_rules if rule.module_type_id == module_type.pk] + for candidate in candidates: + scope_ids = _scope_ids(*candidate) + for rule in scoped_rules: + if _rule_scope_matches(rule, scope_ids): + return rule + return None + + +def _find_regex_match(model_name: str, candidates, regex_rules=None): + """Return the first enabled regex rule in scope-precedence order.""" + if regex_rules is None: + _, regex_rules, _ = _get_enabled_rules() + + for candidate in candidates: + scope_ids = _scope_ids(*candidate) + for compiled, rule in regex_rules: + if compiled is not None and _rule_scope_matches(rule, scope_ids) and compiled.fullmatch(model_name): + return rule + return None + + +def find_matching_rule(module_type, parent_module_type, device_type, platform=None): + """Return the most specific enabled rule for a module and scope context. + + Exact module-type rules take priority over regular-expression rules. Within + each tier, parent module type, device type, and platform scopes are tried from + most specific to least specific. + """ + if module_type is None: + return None + + exact_rules, regex_rules, memo = _get_enabled_rules() + signature = ( + module_type.pk, + # Regex matching reads the live model name, so the memo key must include it. + module_type.model, + *_scope_ids(parent_module_type, device_type, platform), + ) + # A single dictionary read cannot race with another thread's memo clear between + # a membership check and a later subscript. + cached = memo.get(signature, _MEMO_MISS) + if cached is not _MEMO_MISS: + return cached + + candidates = _build_candidates(parent_module_type, device_type, platform) + result = _find_exact_match(module_type, candidates, exact_rules) or _find_regex_match( + module_type.model, + candidates, + regex_rules, + ) + if len(memo) >= _MEMO_MAX: + memo.clear() + memo[signature] = result + return result diff --git a/netbox_interface_name_rules/tests/test_breakout_mode.py b/netbox_interface_name_rules/tests/test_breakout_mode.py index cb6f73f..11b5572 100644 --- a/netbox_interface_name_rules/tests/test_breakout_mode.py +++ b/netbox_interface_name_rules/tests/test_breakout_mode.py @@ -35,7 +35,6 @@ from utilities.testing import APITestCase from netbox_interface_name_rules.engine import ( - _VERSION_COLUMNS, apply_interface_name_rules, apply_rule_to_existing, find_interfaces_for_rule, @@ -46,6 +45,7 @@ from netbox_interface_name_rules.filters import InterfaceNameRuleFilterSet from netbox_interface_name_rules.forms import RuleTestForm from netbox_interface_name_rules.models import InterfaceNameRule, _references_channel +from netbox_interface_name_rules.rule_selection import _VERSION_COLUMNS from netbox_interface_name_rules.tests.test_channelization import ( PARENT_TYPE, PLUGIN_LOGGER, diff --git a/netbox_interface_name_rules/tests/test_engine_advanced.py b/netbox_interface_name_rules/tests/test_engine_advanced.py index cc7ab15..c48a66e 100644 --- a/netbox_interface_name_rules/tests/test_engine_advanced.py +++ b/netbox_interface_name_rules/tests/test_engine_advanced.py @@ -709,7 +709,7 @@ def test_unsafe_ast_node_raises_valueerror(self): # --------------------------------------------------------------------------- -# engine.py — _find_regex_match re.error path (lines 355-356) +# rule_selection.py, invalid regex path # --------------------------------------------------------------------------- @@ -741,7 +741,7 @@ def test_invalid_regex_pattern_is_skipped_not_raised(self): so an invalid pattern just moves on to the next candidate instead of propagating the exception to the caller (lines 355-356). """ - from netbox_interface_name_rules.engine import _find_regex_match + from netbox_interface_name_rules.rule_selection import _find_regex_match candidates = [(None, None, None)] result = _find_regex_match("RegX-GOOD", candidates) diff --git a/netbox_interface_name_rules/tests/test_rule_selection.py b/netbox_interface_name_rules/tests/test_rule_selection.py new file mode 100644 index 0000000..d9b6f12 --- /dev/null +++ b/netbox_interface_name_rules/tests/test_rule_selection.py @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Integration tests for the lower-level rule-selection seam.""" + +from dcim.models import DeviceType, Manufacturer, ModuleType +from django.test import TestCase + +from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.rule_selection import find_matching_rule + + +class RuleSelectionTest(TestCase): + """Exercise rule selection through its lower-level public interface.""" + + @classmethod + def setUpTestData(cls): + manufacturer = Manufacturer.objects.create(name="SelectorMfg", slug="selector-mfg") + cls.module_type = ModuleType.objects.create( + manufacturer=manufacturer, + model="SELECTOR-SFP", + part_number="SELECTOR-SFP", + ) + cls.device_type = DeviceType.objects.create( + manufacturer=manufacturer, + model="SELECTOR-DEVICE", + slug="selector-device", + ) + + def test_exact_rule_prefers_matching_device_scope(self): + InterfaceNameRule.objects.create( + module_type=self.module_type, + name_template="generic{bay_position}", + ) + scoped_rule = InterfaceNameRule.objects.create( + module_type=self.module_type, + device_type=self.device_type, + name_template="scoped{bay_position}", + ) + + selected = find_matching_rule(self.module_type, None, self.device_type) + + self.assertEqual(selected, scoped_rule) diff --git a/netbox_interface_name_rules/tests/test_rules.py b/netbox_interface_name_rules/tests/test_rules.py index 528dd42..73f48b5 100644 --- a/netbox_interface_name_rules/tests/test_rules.py +++ b/netbox_interface_name_rules/tests/test_rules.py @@ -293,16 +293,16 @@ def setUpTestData(cls): cls.device_type = DeviceType.objects.create(manufacturer=mfr, model="C-DEV", slug="c-dev") def setUp(self): - # These tests mutate find_matching_rule()'s module-level _RULE_CACHE / _pin, which TestCase does + # These tests mutate rule_selection's module-level _RULE_CACHE / _pin, which TestCase does # NOT roll back (only the DB is). Reset them before each method so the class is order-independent # and a stale snapshot from a prior method can't be reused for a same-content rule set. - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection - engine._RULE_CACHE.update({"version": None, "exact": (), "regex": (), "memo": {}}) - engine._pin.depth = 0 - engine._pin.primed = False + rule_selection._RULE_CACHE.update({"version": None, "exact": (), "regex": (), "memo": {}}) + rule_selection._pin.depth = 0 + rule_selection._pin.primed = False for attr in ("exact", "regex", "memo"): - engine._pin.__dict__.pop(attr, None) + rule_selection._pin.__dict__.pop(attr, None) def test_repeated_calls_do_not_re_query_rules(self): """A second identical call issues at most the cheap fingerprint query — no per-candidate lookups.""" @@ -320,23 +320,23 @@ def test_repeated_calls_do_not_re_query_rules(self): def test_memoized_result_is_not_recomputed(self): """A repeat call with the same context returns the memoized rule without re-running tier matching.""" - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection InterfaceNameRule.objects.create(module_type=self.module_type, name_template="port{bay_position}") first = find_matching_rule(self.module_type, None, self.device_type) # warm, populates the memo calls = [] - real_find_exact = engine._find_exact_match + real_find_exact = rule_selection._find_exact_match def counting_find_exact(*args, **kwargs): calls.append(1) return real_find_exact(*args, **kwargs) - engine._find_exact_match = counting_find_exact + rule_selection._find_exact_match = counting_find_exact try: second = find_matching_rule(self.module_type, None, self.device_type) finally: - engine._find_exact_match = real_find_exact + rule_selection._find_exact_match = real_find_exact self.assertEqual(second, first) self.assertEqual(calls, [], "second call must be served from the memo, not re-matched") @@ -424,7 +424,7 @@ def test_compensating_fk_swap_changes_fingerprint(self): A Sum()-based fingerprint collides here (the summed ids are identical after the swap, count and last_updated unchanged); the per-row, pk-anchored content hash distinguishes them. """ - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection mfr = Manufacturer.objects.create(name="SwapMfg", slug="swapmfg") mt_a = ModuleType.objects.create(manufacturer=mfr, model="SWAP-A", part_number="SWAP-A") @@ -434,12 +434,12 @@ def test_compensating_fk_swap_changes_fingerprint(self): rule_a = InterfaceNameRule.objects.create(module_type=mt_a, device_type=dt_x, name_template="a{bay_position}") rule_b = InterfaceNameRule.objects.create(module_type=mt_b, device_type=dt_y, name_template="b{bay_position}") - before = engine._enabled_rules_version() + before = rule_selection._enabled_rules_version() # Swap device_type between the two rules via bulk .update(): SUM(device_type) is unchanged # (x+y == y+x), count unchanged, last_updated unbumped. Only the per-rule pairing differs. InterfaceNameRule.objects.filter(pk=rule_a.pk).update(device_type=dt_y) InterfaceNameRule.objects.filter(pk=rule_b.pk).update(device_type=dt_x) - after = engine._enabled_rules_version() + after = rule_selection._enabled_rules_version() self.assertNotEqual(before, after, "fingerprint collided on a compensating FK swap (Sum-aggregate weakness)") @@ -467,7 +467,7 @@ def test_none_module_type_returns_none(self): def test_find_exact_match_loads_rules_on_demand(self): """_find_exact_match loads the rule set itself when called without preloaded rules (direct-caller path).""" - from netbox_interface_name_rules.engine import _find_exact_match + from netbox_interface_name_rules.rule_selection import _find_exact_match rule = InterfaceNameRule.objects.create(module_type=self.module_type, name_template="p{bay_position}") # No exact_rules argument → the function loads them via _get_enabled_rules() rather than a passed-in set. @@ -475,10 +475,10 @@ def test_find_exact_match_loads_rules_on_demand(self): def test_memo_is_bounded(self): """The per-version memo is capped, so it can't grow without bound under a stable rule set.""" - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection - original_max = engine._MEMO_MAX - engine._MEMO_MAX = 2 + original_max = rule_selection._MEMO_MAX + rule_selection._MEMO_MAX = 2 try: mfr = Manufacturer.objects.create(name="MemoMfg", slug="memomfg") module_types = [ @@ -492,20 +492,20 @@ def test_memo_is_bounded(self): # would slip past an end-of-loop `<=` snapshot (which only sees the post-clear size) but # trips here on the very insert that crosses the cap. self.assertLessEqual( - len(engine._RULE_CACHE["memo"]), - engine._MEMO_MAX, + len(rule_selection._RULE_CACHE["memo"]), + rule_selection._MEMO_MAX, f"memo exceeded the cap mid-insertion after {i} contexts", ) # And the eviction actually fired: the final size is below the number of distinct contexts, # so the test isn't vacuously green on a memo that simply never reached the cap. self.assertLess( - len(engine._RULE_CACHE["memo"]), + len(rule_selection._RULE_CACHE["memo"]), len(module_types), "memo never evicted — the cap was never exercised", ) finally: - engine._MEMO_MAX = original_max + rule_selection._MEMO_MAX = original_max def test_pinned_rule_cache_skips_per_call_fingerprint(self): """Inside pinned_rule_cache() the per-call fingerprint query is elided; outside it still runs.""" @@ -560,7 +560,7 @@ def test_pinned_block_holds_snapshot_across_concurrent_cache_reload(self): """ import threading - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection from netbox_interface_name_rules.engine import pinned_rule_cache universal = InterfaceNameRule.objects.create(module_type=self.module_type, name_template="a{bay_position}") @@ -572,8 +572,13 @@ def concurrent_reload(): # inherits the main thread's active pin. It then publishes a different rule-set version the # way _get_enabled_rules() does: one atomic rebind of the module global. (No DB access — a # separate thread has its own connection and cannot see this TestCase's uncommitted rows.) - worker_pin_depth.append(getattr(engine._pin, "depth", 0)) - engine._RULE_CACHE = {"version": "concurrent-reload-other-version", "exact": (), "regex": (), "memo": {}} + worker_pin_depth.append(getattr(rule_selection._pin, "depth", 0)) + rule_selection._RULE_CACHE = { + "version": "concurrent-reload-other-version", + "exact": (), + "regex": (), + "memo": {}, + } try: with pinned_rule_cache(): @@ -586,7 +591,7 @@ def concurrent_reload(): # The worker did not inherit our pin — proves _pin is per-thread, not a shared global. self.assertEqual(worker_pin_depth, [0], "pin leaked across threads — _pin is not thread-local") # ...and its reload really did replace the shared cache. - self.assertEqual(engine._RULE_CACHE["version"], "concurrent-reload-other-version") + self.assertEqual(rule_selection._RULE_CACHE["version"], "concurrent-reload-other-version") # Still inside the pin: must serve the snapshot captured at entry, not the worker's reload. self.assertEqual( @@ -597,7 +602,7 @@ def concurrent_reload(): finally: # This test deliberately rebinds the module global from another thread; restore a clean # sentinel so the simulated reload can't leak into sibling tests even if setUp() is weakened. - engine._RULE_CACHE = {"version": None, "exact": (), "regex": (), "memo": {}} + rule_selection._RULE_CACHE = {"version": None, "exact": (), "regex": (), "memo": {}} def test_reload_publishes_a_fresh_cache_dict_atomically(self): """A version change rebinds _RULE_CACHE to a new dict instead of mutating the old one in place. @@ -607,12 +612,12 @@ def test_reload_publishes_a_fresh_cache_dict_atomically(self): with memo from V2. We assert the published dict is a *new object* and that a reference captured before the reload is left untouched — the in-place mutation the previous code did would fail both. """ - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection InterfaceNameRule.objects.create(module_type=self.module_type, name_template="a{bay_position}") find_matching_rule(self.module_type, None, self.device_type) # prime version 1 - snap = engine._RULE_CACHE + snap = rule_selection._RULE_CACHE snap_version = snap["version"] snap_exact = snap["exact"] @@ -623,7 +628,9 @@ def test_reload_publishes_a_fresh_cache_dict_atomically(self): find_matching_rule(self.module_type, None, self.device_type) # reload to version 2 self.assertIsNot( - engine._RULE_CACHE, snap, "reload mutated the cache dict in place instead of publishing a new one" + rule_selection._RULE_CACHE, + snap, + "reload mutated the cache dict in place instead of publishing a new one", ) self.assertEqual(snap["version"], snap_version, "a reload mutated a previously-published cache dict") self.assertEqual(snap["exact"], snap_exact, "the captured exact snapshot changed under a concurrent reload") @@ -638,7 +645,7 @@ def test_find_matching_rule_survives_concurrent_memo_clear(self): itself, then assert find_matching_rule still returns the rule. The sentinel ``.get()`` read is a single atomic lookup, so it never performs the separate membership test the race needs. """ - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection rule = InterfaceNameRule.objects.create(module_type=self.module_type, name_template="p{bay_position}") self.assertEqual(find_matching_rule(self.module_type, None, self.device_type), rule) # warm the memo @@ -652,7 +659,7 @@ def __contains__(self, key): return present # Same version → no reload; the racing memo is what find_matching_rule reads next. - engine._RULE_CACHE["memo"] = _RacingMemo(engine._RULE_CACHE["memo"]) + rule_selection._RULE_CACHE["memo"] = _RacingMemo(rule_selection._RULE_CACHE["memo"]) self.assertEqual( find_matching_rule(self.module_type, None, self.device_type), @@ -663,7 +670,7 @@ def __contains__(self, key): def test_pinned_block_uses_a_private_memo_copy(self): """A pinned batch gets its own memo copy, so another thread clearing the shared memo can't evict the batch's warmed entries (or wedge a KeyError) mid-loop.""" - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection from netbox_interface_name_rules.engine import pinned_rule_cache rule = InterfaceNameRule.objects.create(module_type=self.module_type, name_template="p{bay_position}") @@ -672,13 +679,13 @@ def test_pinned_block_uses_a_private_memo_copy(self): find_matching_rule(self.module_type, None, self.device_type) # primes + memoizes into the copy self.assertIsNot( - engine._pin.memo, - engine._RULE_CACHE["memo"], + rule_selection._pin.memo, + rule_selection._RULE_CACHE["memo"], "pinned memo aliases the shared cache memo instead of holding a private copy", ) # An unpinned thread clearing the shared memo at the cap must not disturb the pinned batch. - engine._RULE_CACHE["memo"].clear() + rule_selection._RULE_CACHE["memo"].clear() self.assertEqual( find_matching_rule(self.module_type, None, self.device_type), rule, @@ -693,7 +700,7 @@ def test_fingerprint_resists_separator_injection_in_text_fields(self): encoding produced for a two-rule set — two distinct rule sets hashing the same, silently missing a cache invalidation. Length-prefixed fields make the encoding self-delimiting, so they differ. """ - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection field_sep, row_sep = "\x1f", "\x1e" @@ -706,7 +713,7 @@ def test_fingerprint_resists_separator_injection_in_text_fields(self): r2 = InterfaceNameRule.objects.create( applies_to_device_interfaces=True, module_type_pattern="p2", name_template="b" ) - fp_two_rules = engine._enabled_rules_version() + fp_two_rules = rule_selection._enabled_rules_version() # Forge a one-rule set whose name_template embeds r1's trailing columns, a row separator, and # r2's columns up to its name_template. Column order: id, module_type_id, is_regex, pattern, @@ -716,7 +723,7 @@ def test_fingerprint_resists_separator_injection_in_text_fields(self): forged_name_template = field_sep.join(["a", "0", "0", "true"]) + row_sep + r2_cells_through_name InterfaceNameRule.objects.filter(pk=r2.pk).delete() InterfaceNameRule.objects.filter(pk=r1.pk).update(name_template=forged_name_template) - fp_forged_one_rule = engine._enabled_rules_version() + fp_forged_one_rule = rule_selection._enabled_rules_version() self.assertNotEqual( fp_two_rules, @@ -731,14 +738,14 @@ class EnabledRuleFingerprintColumnsTest(TestCase): def test_version_columns_account_for_every_concrete_column(self): """Every concrete InterfaceNameRule column must be fingerprinted or deliberately excluded. - The enabled-rule fingerprint (engine._enabled_rules_version) hashes exactly - engine._VERSION_COLUMNS. If a future field that affects matching is added to the model but not + The enabled-rule fingerprint (rule_selection._enabled_rules_version) hashes exactly + rule_selection._VERSION_COLUMNS. If a future field that affects matching is added to the model but not to that hand-maintained tuple, edits to it won't change the fingerprint and find_matching_rule will keep serving a stale cached rule. This guard fails the moment a new concrete column appears that hasn't been consciously classified — forcing the author to either add it to _VERSION_COLUMNS (so the cache invalidates on its edits) or list it below with a reason it can't affect a match. """ - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection from netbox_interface_name_rules.models import InterfaceNameRule # Columns intentionally NOT in the fingerprint, each with the reason it cannot change a match: @@ -756,11 +763,11 @@ def test_version_columns_account_for_every_concrete_column(self): for f in InterfaceNameRule._meta.get_fields() if getattr(f, "concrete", False) and not f.many_to_many and f.column } - classified = set(engine._VERSION_COLUMNS) | excluded + classified = set(rule_selection._VERSION_COLUMNS) | excluded self.assertEqual( concrete_columns, classified, "InterfaceNameRule has concrete columns that are neither fingerprinted nor excluded. " - "Classify each: add match-affecting columns to engine._VERSION_COLUMNS so the rule cache " + "Classify each: add match-affecting columns to rule_selection._VERSION_COLUMNS so the rule cache " "invalidates when they change, or add audit/notes columns to this test's `excluded` set.", ) diff --git a/netbox_interface_name_rules/tests/test_signals.py b/netbox_interface_name_rules/tests/test_signals.py index b3d1c78..eb5501f 100644 --- a/netbox_interface_name_rules/tests/test_signals.py +++ b/netbox_interface_name_rules/tests/test_signals.py @@ -253,7 +253,7 @@ def test_deferred_device_reapply_pins_rule_cache_across_modules(self): module's interface (real work) while reading the enabled-rule fingerprint a single time for the whole device, proving the pin is engaged on INR's own batch path (no cross-plugin API). """ - from netbox_interface_name_rules import engine + from netbox_interface_name_rules import rule_selection InterfaceNameRule.objects.create(module_type=self.module_type, name_template="et-0/0/{bay_position}") @@ -264,17 +264,17 @@ def test_deferred_device_reapply_pins_rule_cache_across_modules(self): iface1 = Interface.objects.create(device=self.device, module=module1, name="old-1", type="10gbase-x-sfpp") calls = [] - real_version = engine._enabled_rules_version + real_version = rule_selection._enabled_rules_version def counting_version(*args, **kwargs): calls.append(1) return real_version(*args, **kwargs) - engine._enabled_rules_version = counting_version + rule_selection._enabled_rules_version = counting_version try: _apply_rules_for_device_deferred(self.device.pk) finally: - engine._enabled_rules_version = real_version + rule_selection._enabled_rules_version = real_version iface0.refresh_from_db() iface1.refresh_from_db() From c986495821b6885b831fc0bafceae7d9f2d08ea9 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 18:36:51 +0200 Subject: [PATCH 07/74] fix: address performance review findings --- .github/workflows/lint-format.yaml | 2 +- .github/workflows/test-netbox-main.yaml | 4 +- .github/workflows/test.yaml | 4 +- .gitignore | 1 + .../tests/signal_performance.py | 101 +- performance/README.md | 9 +- performance/baselines/existing-feature.json | 125904 --------------- 7 files changed, 111 insertions(+), 125914 deletions(-) delete mode 100644 performance/baselines/existing-feature.json diff --git a/.github/workflows/lint-format.yaml b/.github/workflows/lint-format.yaml index 6e25163..a01c64d 100644 --- a/.github/workflows/lint-format.yaml +++ b/.github/workflows/lint-format.yaml @@ -26,7 +26,7 @@ jobs: python-version: '3.12' - name: Install dependencies - run: uv pip install --system pre-commit ruff + run: 'uv pip install --system --only-binary=:all: pre-commit==4.5.1 ruff==0.16.0' - name: Run Ruff linting run: ruff check . diff --git a/.github/workflows/test-netbox-main.yaml b/.github/workflows/test-netbox-main.yaml index c919ffc..a7a0fb2 100644 --- a/.github/workflows/test-netbox-main.yaml +++ b/.github/workflows/test-netbox-main.yaml @@ -73,7 +73,7 @@ jobs: working-directory: netbox-InterfaceNameRules-plugin run: | uv pip install --system -r ../netbox/requirements.txt - uv pip install --system pytest pytest-django pytest-xdist tblib + uv pip install --system --only-binary=:all: pytest==9.0.2 pytest-django==4.12.0 pytest-xdist==3.8.0 tblib==3.2.2 uv pip install --system -e . - name: Set up NetBox configuration @@ -105,4 +105,4 @@ jobs: NETBOX_CONFIGURATION: netbox.configuration PYTHONPATH: ${{ github.workspace }}/netbox/netbox run: | - pytest netbox_interface_name_rules -o pythonpath=../netbox/netbox + pytest -n auto netbox_interface_name_rules -o pythonpath=../netbox/netbox diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fcd3c4d..f6d7173 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -90,7 +90,7 @@ jobs: working-directory: netbox-InterfaceNameRules-plugin run: | uv pip install --system -r ../netbox/requirements.txt - uv pip install --system pytest pytest-cov pytest-django pytest-xdist tblib + uv pip install --system --only-binary=:all: pytest==9.0.2 pytest-cov==7.0.0 pytest-django==4.12.0 pytest-xdist==3.8.0 tblib==3.2.2 uv pip install --system -e . - name: Set up NetBox configuration @@ -129,7 +129,7 @@ jobs: # checkout so these cells report plugin compatibility failures instead of baseline drift. UPDATE_QUERY_COUNTS: ${{ matrix.experimental && '1' || '' }} run: | - pytest netbox_interface_name_rules --cov=netbox_interface_name_rules --cov-report=term-missing \ + pytest -n auto netbox_interface_name_rules --cov=netbox_interface_name_rules --cov-report=term-missing \ -o pythonpath=../netbox/netbox - name: Generate coverage report diff --git a/.gitignore b/.gitignore index 8452b5f..6451156 100644 --- a/.gitignore +++ b/.gitignore @@ -22,6 +22,7 @@ venv/ .coverage.* htmlcov/ coverage.xml +performance/baselines/*.json # Ruff / linting .ruff_cache/ diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index 5b3818a..9b00c2b 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -107,6 +107,66 @@ "WAL FPI", "WAL Bytes", ) +_PLAN_IDENTITY_KEYS = { + "Alias", + "Async Capable", + "Cache Key", + "Cache Mode", + "Command", + "Conflict Arbiter Indexes", + "Conflict Filter", + "Conflict Resolution", + "CTE Name", + "Custom Plan Provider", + "Disabled", + "Filter", + "Function Call", + "Function Name", + "Group Key", + "Group Keys", + "Grouping Sets", + "Hash Cond", + "Hash Key", + "Hash Keys", + "Index Cond", + "Index Name", + "Inner Unique", + "Join Filter", + "Join Type", + "Merge Cond", + "Node Type", + "One-Time Filter", + "Operation", + "Output", + "Parallel Aware", + "Parent Relationship", + "Partial Mode", + "Plan", + "Plan Rows", + "Plan Width", + "Plans", + "Presorted Key", + "Recheck Cond", + "Relation Name", + "Relations", + "Remote SQL", + "Repeatable Seed", + "Sampling Method", + "Sampling Parameters", + "Scan Direction", + "Schema", + "SetOp Command", + "Single Copy", + "Sort Key", + "Startup Cost", + "Strategy", + "Subplan Name", + "Table Function Call", + "Target Tables", + "TID Cond", + "Total Cost", + "Workers Planned", +} _PLANNER_SETTINGS = ( "block_size", "cpu_index_tuple_cost", @@ -289,6 +349,15 @@ def _plan_nodes(plan: dict[str, Any]) -> list[dict[str, Any]]: return nodes +def _plan_identity_shape(value: Any) -> Any: + """Retain only structural and planner fields that define the chosen plan.""" + if isinstance(value, dict): + return {key: _plan_identity_shape(child) for key, child in value.items() if key in _PLAN_IDENTITY_KEYS} + if isinstance(value, list): + return [_plan_identity_shape(child) for child in value] + return value + + def _root_work(plan: dict[str, Any]) -> dict[str, float | int]: """Extract additive work measures from the root plan node.""" root = plan.get("Plan", {}) @@ -319,7 +388,7 @@ def _group_plans(notices: list[str]) -> list[dict[str, Any]]: if parsed is None: continue normalized_sql, plan = parsed - serialized = json.dumps(plan, sort_keys=True, separators=(",", ":")) + serialized = json.dumps(_plan_identity_shape(plan), sort_keys=True, separators=(",", ":")) identity = _fingerprint(f"{normalized_sql}\0{serialized}") entry = grouped.setdefault( identity, @@ -795,6 +864,36 @@ def test_auto_explain_teardown_preserves_database_error(self): with _auto_explain_notices(), connection.cursor() as cursor: cursor.execute("SELECT 1 / 0") + def test_plan_grouping_ignores_runtime_counters(self): + """Group one SQL plan shape even when its runtime work changes.""" + with connection.cursor() as cursor: + cursor.execute("CREATE TEMPORARY TABLE profile_grouping_left (value integer) ON COMMIT DROP") + cursor.execute("CREATE TEMPORARY TABLE profile_grouping_right (value integer) ON COMMIT DROP") + cursor.execute("INSERT INTO profile_grouping_left VALUES (1)") + cursor.execute("INSERT INTO profile_grouping_right VALUES (1)") + cursor.execute("SET LOCAL enable_hashjoin = off") + cursor.execute("SET LOCAL enable_mergejoin = off") + + with _auto_explain_notices() as notices, connection.cursor() as cursor: + cursor.execute( + "SELECT left_side.value FROM profile_grouping_left AS left_side " + "JOIN profile_grouping_right AS right_side ON left_side.value = right_side.value" + ) + cursor.execute("INSERT INTO profile_grouping_left VALUES (2)") + cursor.execute( + "SELECT left_side.value FROM profile_grouping_left AS left_side " + "JOIN profile_grouping_right AS right_side ON left_side.value = right_side.value" + ) + + select_plans = [ + plan + for plan in _group_plans(notices) + if plan["normalized_sql"].startswith("SELECT left_side.value FROM profile_grouping_left") + ] + self.assertEqual(len(select_plans), 1, select_plans) + self.assertEqual(select_plans[0]["calls"], 2) + self.assertEqual(select_plans[0]["aggregate"]["actual_rows_times_loops"], 2) + @staticmethod def _analyze_tables() -> None: """Refresh planner statistics after each fixture is prepared.""" diff --git a/performance/README.md b/performance/README.md index d4b4c24..4afa7f2 100644 --- a/performance/README.md +++ b/performance/README.md @@ -26,10 +26,11 @@ python manage.py test \ --noinput ``` -The JSON artifact contains normalized statements, PostgreSQL plans, rows and loops, buffer and WAL -work, fixture sizes, planner settings, and raw wall and process CPU samples. The generated Markdown -file contains the main comparison fields. PostgreSQL node timing stays disabled. The runner observes -the statements issued by the operation and does not replay mutating SQL. +The temporary JSON artifact contains normalized statements, PostgreSQL plans, rows and loops, buffer +and WAL work, fixture sizes, planner settings, and raw wall and process CPU samples. Do not retain it +in Git. Retain only its generated Markdown summary in `performance/baselines/`. PostgreSQL node +timing stays disabled. The runner observes the statements issued by the operation and does not replay +mutating SQL. The complete model-save scenarios include NetBox model creation, plugin signal scheduling, and the committed callback. Direct-callback scenarios isolate the deferred callback for diagnosis. Compare diff --git a/performance/baselines/existing-feature.json b/performance/baselines/existing-feature.json deleted file mode 100644 index 79f32db..0000000 --- a/performance/baselines/existing-feature.json +++ /dev/null @@ -1,125904 +0,0 @@ -{ - "baseline_kind": "existing_implementation", - "configuration": { - "machine_time_ci_gate": false, - "postgresql_node_timing": false, - "samples": 15, - "warmups": 3 - }, - "environment": { - "cpu_model": "Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz", - "django_version": "6.1", - "machine_architecture": "x86_64", - "netbox_revision": "d7f79bd50162b2b8a8d07b52348d332bd9404f3c", - "netbox_version": "4.7.0-beta1", - "operating_system": "Linux", - "operating_system_release": "6.12.96+deb13-amd64", - "plugin_revision": "ccadd0bb5b2852ff81f2747769d61746254173e1", - "plugin_version": "1.5.1", - "postgresql": { - "planner_settings": { - "block_size": "8192", - "cpu_index_tuple_cost": "0.005", - "cpu_operator_cost": "0.0025", - "cpu_tuple_cost": "0.01", - "default_statistics_target": "100", - "effective_cache_size": "4GB", - "effective_io_concurrency": "16", - "jit": "on", - "max_parallel_workers_per_gather": "2", - "plan_cache_mode": "auto", - "random_page_cost": "4", - "seq_page_cost": "1", - "shared_buffers": "128MB", - "work_mem": "4MB" - }, - "server_version": "18.3 (Debian 18.3-1.pgdg13+1)", - "server_version_num": "180003" - }, - "python_implementation": "CPython", - "python_version": "3.14.4" - }, - "generated_at": "2026-08-23T12:54:58.775104+00:00", - "scenarios": [ - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0810b524418676bab577a04282c826d55b4b0a64faee10dc6f1bec75705668f1", - "indexes": [ - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 892, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "287f6e4f8de18e3f1d0988d452241794c0eed8685452b3906a4795c9b837819f", - "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1313, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1313, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1305, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1095, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1087, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1059, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.29, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2b567132d9b4ca6f5aaf2c05b6032bb8da8e2c87317c4e0e41590ea04f4432aa", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 734, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 734, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 726, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 516, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 508, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 480, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.25, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.29, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3e487b3187e0b8286200db203cc469dfda48ac71487a25db7e1f5c58a024a950", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 340, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 340, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 332, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 122, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 114, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 86, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.25, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3e6859865c1d8d0b856c2b95a90dd13dc673672514521bc4b9d97bb4772c5937", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 593, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 593, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "408bdb91fd9d9c0755ed8d0e789baf7d229e0ee9db8ad22cf0536fea356a2144", - "indexes": [ - "dcim_consoleserverport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "48fe47d419bf32d923c66dbfa7bb2d0cad50614f70ff129ec171b1c114d99313", - "indexes": [ - "dcim_coolingintake_device_id_df1c3674" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 40.53, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Hash": 1, - "Hash Join": 1, - "Index Scan": 2, - "Nested Loop": 2, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", - "indexes": [], - "node_types": { - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5875eb27f383ced41e544d3eabd7292e6457519be5a2ac83fc664b2b7667561c", - "indexes": [ - "dcim_powerporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1165, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1165, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1157, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 947, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 939, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 911, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "63b464da8f531cc5ee55449fe988de87a36ff0adfe6b6ab7ced1c16f368c30fe", - "indexes": [ - "dcim_poweroutlettemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1311, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1311, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1303, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1093, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1085, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1057, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "692f723540adadf50fa7db00aa9a163f2b3a96111c945ce6a5f9930d0529d217", - "indexes": [ - "dcim_rearporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1187, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1187, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1179, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 969, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 961, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 933, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6b8be6c886d06ab4c122b8ee6e3f855e8da9b541608c8ab1395409873082a320", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 1.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "6dffb88a054abbdbb54651c7118f6d871cac76637454977f5d35f15ac219c17f", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.03, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "785d2a61ab4e37cda0e3f74a04dff29dc10bd949bae7d42c30baed955ffb6e3c", - "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" - }, - { - "aggregate": { - "actual_loops": 13, - "actual_rows_times_loops": 13, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 13, - "planner_total_cost": 178.48999999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 65, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 13, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 13, - "Limit": 13, - "Nested Loop": 13, - "Seq Scan": 13 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "863df58815c08333f539652ada9c3327bc163cbed55d2ac111736f89bc1a5dd1", - "indexes": [ - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "87149d3555b389d5ce3660375ce5ed7221cb6377bd6c804fb9c58df2a48013c2", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.29, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "907da9451f4a5ba67e0710199582d1bea00a16843498cb1056183f3026841ed8", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 734, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 734, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 726, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 516, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 508, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 480, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.25, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9449ac4c67fc5c261fa87095c6f67d3b05ad8f1c92985910ee602368e5c72675", - "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1157, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1157, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1149, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 939, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 931, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 903, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a06a980f11bc57e3d313826e9bf1bf403a61a8381c35ad240e81f25de3057739", - "indexes": [ - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a649d70b14060986230e4ca8c0ed6fd9973a1ff3c18cee6fb49fbed0e8a8fd21", - "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1157, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1157, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1149, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 939, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 931, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 903, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ad37ed0db0539ffe3dedf1f47f3b2757e3da665bfffa5e0282742e71cd761f78", - "indexes": [ - "dcim_powerport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b40ee2004e1381b1c35c972a38b95ca6d9cdbae03b13eea742cf9749ace2e1ae", - "indexes": [ - "dcim_poweroutlet_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "cae38e5f48c3e564eae905efc63139fcf11f4466d22c83299422b1f50480d278", - "indexes": [ - "dcim_consoleport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.07, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ccf01569668a8722459231c1c83cf9603bc6bf75ead8b7eb77a522d7bd6ebe81", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 117, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 117, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 2, - "Plan Width": 27, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.06, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 8, - "shared_hit_blocks": 16, - "shared_read_blocks": 9, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 575, - "wal_fpi": 0, - "wal_records": 8 - }, - "calls": 1, - "fingerprint": "cd0f0529c797fc8ee718a3ba4b71f7e75ccc655cd8525367cdbadac0090fe9f4", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 896, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 896, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 8, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 9, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 575, - "WAL FPI": 0, - "WAL Records": 8 - }, - "Triggers": [] - }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d72c38cd42007207976ad4c116debf8d189737906f7241415dbaa56577b96d9e", - "indexes": [ - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "db880ad505819f11a569ced00a0c070591b9a0d3f90d55f9f556c11ada7919f7", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1453, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1453, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1445, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1235, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1199, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "dec95c143d2a522771b376589d54e6a8d9f889b6505b0e72aba2a6428a45e7e7", - "indexes": [ - "dcim_frontporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1187, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1187, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1179, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 969, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 961, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 933, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e14e3d70ecab33031e7797a568bb26051a6d4368ced40c3696c1c56b2d80b7fc", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 405.29999999999995, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.29, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ecb14086106bb90aec99ef5042790301477f657378e3bca5fce2ffbd5c0148e9", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 734, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 734, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 726, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 516, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 508, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 480, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 43, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.25, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "f7cd403f20bd8c0f9ea1faeafd4cd12350bf5dcbf2b654a9e64bbaa14c4e39a5", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 21, - "shared_hit_blocks": 11, - "shared_read_blocks": 22, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1471, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "fb8c3273198a2fc357d9a89152658581e9033744d59f93fc56d7a597ccf9faea", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 21, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 22, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1471, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 13, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 13 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 60, - "actual_rows_per_work_unit": 24.0, - "actual_rows_times_loops": 24, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 60, - "planner_rows": 139, - "planner_total_cost": 912.1399999999999, - "planner_total_cost_per_work_unit": 912.1399999999999, - "shared_dirtied_blocks": 29, - "shared_hit_blocks": 172, - "shared_hit_blocks_per_work_unit": 172.0, - "shared_read_blocks": 31, - "shared_written_blocks": 0, - "statement_calls": 60, - "statement_calls_per_work_unit": 60.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 2204, - "wal_fpi": 0, - "wal_records": 31, - "work_units": 1 - } - }, - "description": "No matching rule", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 95.204807, - "p95_ms": 97.4141048, - "samples_ns": [ - 98771276, - 96407997, - 93992523, - 93787322, - 95107314, - 95204807, - 96310300, - 96832460, - 96583860, - 93062974, - 95987278, - 94141082, - 91794023, - 90741338, - 96631588 - ] - }, - "wall": { - "median_ms": 130.837827, - "p95_ms": 134.8357219, - "samples_ns": [ - 135756336, - 132905632, - 129441101, - 128944669, - 130688847, - 129991597, - 134199140, - 132044780, - 132081392, - 130598260, - 132626301, - 130837827, - 125568908, - 127988959, - 134441173 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 96.554821, - "p95_ms": 97.97994759999999, - "samples_ns": [ - 96554821, - 98138295, - 95946932 - ] - }, - "wall": { - "median_ms": 131.917893, - "p95_ms": 132.1082376, - "samples_ns": [ - 132129387, - 131917893, - 131392321 - ] - } - } - }, - "name": "module.complete_model_save.no_matching_rule", - "semantic_result": { - "interface_names": [ - "3" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3052b199dbc8be9104e6f1929d94f15d3c0e391044ab3c1350c966b5d4333614", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 593, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 593, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6a4c3f21383b873c58b468cdb8cb79268368b7c042998dae4a32a435682024dd", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6b8be6c886d06ab4c122b8ee6e3f855e8da9b541608c8ab1395409873082a320", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8e9cd053c36b2735abee079bc23b514f3cc6233565524f2c338bbabffdfec40a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.07, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b1d0e015290ed16ab3b822eb66d4c42b6cf2cd93beb02ea0942d11c2aeab6456", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 117, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 117, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 2, - "Plan Width": 27, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.06, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 7, - "actual_rows_per_work_unit": 7.0, - "actual_rows_times_loops": 7, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 7, - "planner_rows": 7, - "planner_total_cost": 12.44, - "planner_total_cost_per_work_unit": 12.44, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_hit_blocks_per_work_unit": 12.0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 7, - "statement_calls_per_work_unit": 7.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0, - "work_units": 1 - } - }, - "description": "No matching rule", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 13.427068, - "p95_ms": 18.125066599999986, - "samples_ns": [ - 12677660, - 13409725, - 13858337, - 14740190, - 13036443, - 12861665, - 13427068, - 13257589, - 13209577, - 13637112, - 26023112, - 13432283, - 13495713, - 13785869, - 13005398 - ] - }, - "wall": { - "median_ms": 16.838543, - "p95_ms": 22.193411999999988, - "samples_ns": [ - 16103282, - 16838543, - 17045662, - 18721524, - 15976521, - 16201855, - 16725178, - 17077552, - 16536186, - 16921123, - 30294484, - 16295112, - 16876921, - 16876876, - 16540241 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 13.979475, - "p95_ms": 14.0080347, - "samples_ns": [ - 13127064, - 13979475, - 14011208 - ] - }, - "wall": { - "median_ms": 17.344488, - "p95_ms": 17.5433277, - "samples_ns": [ - 16438583, - 17344488, - 17565421 - ] - } - } - }, - "name": "module.direct_callback.no_matching_rule", - "semantic_result": { - "interface_names": [ - "3" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 14.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "00387d37692cb7dce71852e5f22a661d2a4fbadc0d54dd1b7b26e4c793e87fd7", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 333, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 123, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 115, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 14.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 28.54, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 28, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "0599fc380f888a3bf01972fa52093c0fccff585dd5ea084fccb8f944dd6ccb10", - "indexes": [], - "node_types": { - "Nested Loop": 10, - "Seq Scan": 12, - "Sort": 2 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 14.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0e893a0fc200215741b13dbcabcc32a4a92eb5159c0998b662a0ec50eeec5fcd", - "indexes": [ - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 8.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "12100f83c6f65b7aca35ef700c21012d18e77dafecd133a3df8cc545d5a64b32", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "17970d58bba75fe258f7d02886a70792b01af6622b0e273e8466d793cf9aeb9f", - "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1dba82e673ff0d7646642043e1232082f4ca94d3a3034ca37662682f4845b7aa", - "indexes": [ - "dcim_frontporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 892, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "22bc3177008026d7533739b97da1e0cc7e4857365b7f09ed3e0c284c5c970670", - "indexes": [ - "dcim_coolingintake_device_id_df1c3674" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 56, - "shared_read_blocks": 8, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 575, - "wal_fpi": 0, - "wal_records": 8 - }, - "calls": 1, - "fingerprint": "25f8f61a33c953c680dbb811d2aef875fda7ab29bb5bfebf9770967a805069d8", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 896, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 896, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 56, - "Shared Read Blocks": 8, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 575, - "WAL FPI": 0, - "WAL Records": 8 - }, - "Triggers": [] - }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 2.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "36f9e914f7f3fce527b7487ddbdaf9ee28c98e39cbb9bee50cb38df77190cfc4", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "381047cfabcb366b339330141adf461e6a7f334bf51b0209a192ec6c098cd269", - "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1306, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1096, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1060, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3d341c0470b25a33d8220001aae530860b657dd08174ee7e1f29613d3b1c6474", - "indexes": [ - "dcim_rearporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "47a79f27c06e93a934e2750915ac1254a22919f0d937f6836dd56efb3a90aa7f", - "indexes": [ - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.19, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.05, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4a9070517e41b38c8e629b75d33ccd68406df8e9bab3402e2010fc795664de47", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 5.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 162.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Hash": 4, - "Hash Join": 4, - "Index Scan": 8, - "Nested Loop": 8, - "Seq Scan": 4, - "Sort": 4 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4d4c531d800ae1a75d2fc95dcd91cb45f220842c4b77e8fe3753e299e3a70324", - "indexes": [ - "dcim_consoleserverport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 8.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "50e66a1964b3e92f53b48b95c4e3ed351f7b798629029be3cf059dc2c05659d4", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "55ad89a433678d148b5cb4ff51dda6d0ad27af124c9d6bb40482b1ab992a9ac8", - "indexes": [ - "dcim_poweroutlet_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "579a5139ffd95c41b212d5e84bf81c31836c3e90de558960ac34a16571bb9cdd", - "indexes": [], - "node_types": { - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "59df62ea6f2d75e926336d8643ff166704f57d210f593df0e45b9de66ba55126", - "indexes": [ - "dcim_powerporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 948, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 912, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5f7ae613eb70d75227a25a4e9d37fb6a9abf7fdbdb638ae4a28ab540f188f32e", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1446, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1228, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.23, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6dec024f3794203899b436505485001d3cfa28dd63d99c43dbceec1f8211681c", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 5.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" - }, - { - "aggregate": { - "actual_loops": 19, - "actual_rows_times_loops": 19, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 19, - "planner_total_cost": 260.86999999999995, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 95, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 19, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 19, - "Limit": 19, - "Nested Loop": 19, - "Seq Scan": 19 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "88d0b8868abcb883b59d0c5f0b03441035287ba01ecb71628394d3f86244803e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8be7495247b21f5edcd612b3068892539637e7c1e14b2ffb4db4fde2f51b4708", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3069, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2938, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2046, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1915, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "973fcce2d1e0b33587738ac2540d39856f98018488dfc09140675842bbc245bf", - "indexes": [ - "dcim_poweroutlettemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1304, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1094, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1086, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1058, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "977527bdeb2fb61b695a48847fa08c0e72e6b53551e0661b030688261f08b7a7", - "indexes": [ - "dcim_powerport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "99d1dbc5820e95ab7d312d549dc0f4ccbe8f99e62bd54a0871051d00ac6e3961", - "indexes": [ - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9ad89137174b0985614e5651ec042f102fab3c5f45878fef7a5d2e34cca7c5c5", - "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a1d7c936498856dba2b0108d991e759fabc09b35dd08a52f01a1c6aee77e7a05", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a2402cf5d1024d43576a5754663722529c951679c06bb6d5843fb880e7aeb854", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b44d9d1db889e7e8cc8ad007cfb7ab4dffba864ca6fe879b04ee8471edce1f60", - "indexes": [ - "dcim_consoleport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 14.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c143db1c44f3ccbd0274d5818d5769377ffa5fcbd94b2c9b150c8f894b3d6625", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 14.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c728dd42e9db986d56ff79daeac0d7f0dbb331b788d2d4eeb9a6631cdc6e2898", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d352a3f80a2b2d9ce736e35720487c3ab073e9f16247cd7278be9b2389d67e73", - "indexes": [ - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 14.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d7387607ffe15251de8986a707d473e1f55e1c10e1572156f0bd5a3c033e3026", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 14.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 1.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 82, - "shared_read_blocks": 9, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1464, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "d980e5ffbaa0c33ec46ea1e8b4a3c8b1300ae211a7d843e3847ad5cf871a9fd9", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 82, - "Shared Read Blocks": 9, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 1464, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e0f4302b1d35a8d09538405e8c704a4fa939409885902b15c76249eb3dc270d5", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e62518c263b493b3c4ea832bc83478a6139b00ff04c9a503e02792ac35bfcf55", - "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 4, - "shared_hit_blocks": 0, - "shared_read_blocks": 4, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 466, - "wal_fpi": 3, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "e6cc935703f9da675ae7f4d8a8c161d87264f273baf859dd253a534f85b88d9f", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 4, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 4, - "Shared Written Blocks": 1, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 466, - "WAL FPI": 3, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 405.29999999999995, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "efa5a13226d07fdbf02f6289a8e1c9879fa89b03bd401bceb5a02dbb7650122a", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 5.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "f135640d0e60a389427bd8846360690b2058f4af3050e16ddeff5a33a8522ba9", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.47, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f4193255e9202d040b4de2066de4f497244ef0f73841a5b7c7c64f0e14c25f57", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f890a6660a75627ac2d4f49245f9fd53e718fd4e33869e489a22d39bd97ac514", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 5.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 22, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1471, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "fec67d19a4a85245415ecfd36990a683f35ae4d60827b6f49f2d79b1b25b664e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1471, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 3, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 19, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 19 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", - "normalized_sql": "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\" = %s) LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 88, - "actual_rows_per_work_unit": 42.0, - "actual_rows_times_loops": 42, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 88, - "planner_rows": 192, - "planner_total_cost": 1318.7099999999998, - "planner_total_cost_per_work_unit": 1318.7099999999998, - "shared_dirtied_blocks": 4, - "shared_hit_blocks": 420, - "shared_hit_blocks_per_work_unit": 420.0, - "shared_read_blocks": 23, - "shared_written_blocks": 1, - "statement_calls": 94, - "statement_calls_per_work_unit": 94.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4134, - "wal_fpi": 3, - "wal_records": 56, - "work_units": 1 - } - }, - "description": "Plain interface rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 166.734267, - "p95_ms": 183.86374890000002, - "samples_ns": [ - 168469192, - 166734267, - 166050157, - 170390783, - 162551489, - 164813088, - 178340382, - 160000966, - 150530010, - 158129794, - 182017875, - 168302170, - 161663299, - 188170788, - 171329277 - ] - }, - "wall": { - "median_ms": 225.878001, - "p95_ms": 243.8231814, - "samples_ns": [ - 231646764, - 223223162, - 225869798, - 228725623, - 222362371, - 225878001, - 242890083, - 217103650, - 205543453, - 213844637, - 242615511, - 228210114, - 220955930, - 246000411, - 227798027 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 167.29694, - "p95_ms": 192.89938669999998, - "samples_ns": [ - 162575391, - 195744103, - 167296940 - ] - }, - "wall": { - "median_ms": 225.398118, - "p95_ms": 253.044759, - "samples_ns": [ - 223206301, - 256116608, - 225398118 - ] - } - } - }, - "name": "module.complete_model_save.plain_rename", - "semantic_result": { - "interface_names": [ - "et-0/0/3" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 18.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "06fd52c2c511c8d9a476738c667834ee088b180bc7d5dc935ab952a0b5e24d7c", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 18.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.05, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0960052a4689a1c77e4206a2dc140d306197ee9da7c7110d1c4d44080d5354a7", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0f9c521a64583145fec2837196424c58e08d3ecd0bf68ea21d6fcf465923a14b", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 1.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "34d891f58a1beeb7acbd7a0b98522859d73eec49092a0084107fe945bbc415ac", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.05, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3da9f3c1db8902e588d367f220d4fa0cd6f85f322507d62c47f6140a68a4e993", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 7.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.19, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 24, - "planner_total_cost": 121.59, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 3, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 3, - "Bitmap Index Scan": 3, - "Hash": 3, - "Hash Join": 3, - "Index Scan": 6, - "Nested Loop": 6, - "Seq Scan": 3, - "Sort": 3 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 26, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1464, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "5b11ff978c3afd4c46b83f6c38218c07462e0293a594abfbf5a0ba31edaf1d43", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 26, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1464, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.23, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 14.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "7a13ce256d4f2702bfc01fc442ff8cc2ee4887dbf76d157d46a89b95c5f2df24", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 6, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 82.38000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 6, - "Limit": 6, - "Nested Loop": 6, - "Seq Scan": 6 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82ec24393ed13787eccd53c3fa69fe99105f63ae87db8dedd1a5b57b745539a3", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8e9cd053c36b2735abee079bc23b514f3cc6233565524f2c338bbabffdfec40a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.05, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c17fb4f9cb449289cd74e543ad60fcfc8d315ca110552c91a274f91c4e60ad2c", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 9.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 12.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "c264941a16fde450a7f2039a40a3dbd14a4606ff784f1f837df6887cc33c8865", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 4.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "cdce8c3da096a358abc76f2dc19f3031674bc8775e8c39891cbf074f16db775e", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "dd561e6bce12797303bb287dc72b7c9f302b10db2a60c60c71b0459ae948c366", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e6db2be9515d5f183c9b4f3eb0023b7fd887530791fb86f58019f9ab20b3d028", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e9ee92f1b5b49f37c77e00f16e9d6dea77904be34506f56d4ff8fa644e4515a9", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fd0e7f906a604aef29695c8faaf5dce16f0792bad49443ca31d4be2b80767bc1", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 6 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 34, - "actual_rows_per_work_unit": 24.0, - "actual_rows_times_loops": 24, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 34, - "planner_rows": 59, - "planner_total_cost": 344.00999999999993, - "planner_total_cost_per_work_unit": 344.00999999999993, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 172, - "shared_hit_blocks_per_work_unit": 172.0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 40, - "statement_calls_per_work_unit": 40.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1783, - "wal_fpi": 0, - "wal_records": 25, - "work_units": 1 - } - }, - "description": "Plain interface rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 84.186764, - "p95_ms": 91.1040653, - "samples_ns": [ - 88713329, - 81858904, - 80388176, - 89785775, - 82834903, - 80155450, - 80967119, - 90413701, - 87966338, - 79574825, - 85040720, - 84186764, - 83074622, - 92469948, - 90518687 - ] - }, - "wall": { - "median_ms": 110.544778, - "p95_ms": 122.7714707, - "samples_ns": [ - 118023701, - 107000383, - 106736274, - 118001934, - 108237860, - 109521582, - 109977066, - 116990317, - 113152683, - 105857481, - 110896876, - 110544778, - 110523241, - 121490075, - 125761394 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 84.325984, - "p95_ms": 87.6743296, - "samples_ns": [ - 82428070, - 84325984, - 88046368 - ] - }, - "wall": { - "median_ms": 111.407644, - "p95_ms": 116.4540493, - "samples_ns": [ - 109290984, - 111407644, - 117014761 - ] - } - } - }, - "name": "module.direct_callback.plain_rename", - "semantic_result": { - "interface_names": [ - "et-0/0/3" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 7.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "04d829b5d8bde052cbd52cf5ff71bf822a60731ed33cac16c2d128b318913a6d", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.02, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 2.02, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "064bab7fe0fd3b237214a0363c3af6a33f572a7bd17e2595aa098543a069065b", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "07422be7a158876d9d9f22e3dc8e755b1d66716986e5ce1401c98b691e045d0f", - "indexes": [ - "dcim_rearporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1032411ad7c320616e1c3ac6373cf80cf16b057668f30c94891b64d2f0f1cbd1", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "16072ed69ee76030663adf546903e24309fe50ec8af3ff8563802b1e73fcd7dd", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1446, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1228, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1e51d9323b4b232d9daab602f2e64781c88936df80e4fda3390a4a347b5967a6", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 892, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "21413640789c0e0ad9e69a3e79358c5484c1e04e7cab858dbe308d116df1bd32", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 7.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "22561a2a1004243112180bd9c56abe53b31b423364b66871c9dff61f7751a1e4", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "260e23d00ff4b1359317ec395ed01749bc72036f2c1fcb5e40f61dee40cb2b7d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2bad17d2d4805cb13cce33339d4a16c90df3a3110c745512a91336858ed39c20", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 3.0, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 11.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2ca7c8d10bda38e0235074adf6690441e208859f9e8b3f198cfd358b7d1d1c66", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 11.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4260e45e27233268fcf14525ac4d1229a1d864f04af0fb3e4232d430d4689040", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.19, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 128, - "planner_total_cost": 648.4799999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 16, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 16, - "Bitmap Index Scan": 16, - "Hash": 16, - "Hash Join": 16, - "Index Scan": 32, - "Nested Loop": 32, - "Seq Scan": 16, - "Sort": 16 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 11.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "54048036aeda8f471504672b9cad08bbec54d6c75adf2c3dcc21250506f92bf7", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 11.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", - "indexes": [ - "dcim_consoleserverport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5ebc453b4efcf66b4ea0092811b9c48badc868168c479df37100f1841cfc798d", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 113, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 113, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "613079e67042ee5e8e1bf3bc90ce4f08f2b578d5d9a77569593c7267963b8558", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.23, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 19.63, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6a1a22a57da23c1ec3b20ca2d79f8cac0e9a1ac3dc98c7e42a5351a909c4f218", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 19.58, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6af60909b3124ba3f88bb214335deba2ee1c2acebac3ee22fd2f89305e781938", - "indexes": [ - "dcim_frontporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 19.63, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6d403b227728750d7a25bfe96175157d505fafb457a3d7557ca4af7448e07a85", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 19.58, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6e21cafae719a7e99161e90641f576fa6fde81b51c50aa85b10f5e2e3b90d1f5", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_powerport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 0.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", - "indexes": [], - "node_types": { - "Limit": 4, - "Result": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "One-Time Filter": "false", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 0, - "Plan Width": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7b58f7cce0901a46775ec1fe9d696487007c28f8cdc46c562e47b2df70171156", - "indexes": [ - "dcim_coolingintake_device_id_df1c3674", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1611, - "wal_fpi": 0, - "wal_records": 20 - }, - "calls": 1, - "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", - "indexes": [], - "node_types": { - "Function Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "unnest", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Function Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 20, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.1, - "WAL Buffers Full": 0, - "WAL Bytes": 1611, - "WAL FPI": 0, - "WAL Records": 20 - }, - "Triggers": [] - }, - "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" - }, - { - "aggregate": { - "actual_loops": 39, - "actual_rows_times_loops": 39, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 39, - "planner_total_cost": 535.4700000000003, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 195, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 39, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 39, - "Limit": 39, - "Nested Loop": 39, - "Seq Scan": 39 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 5.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "80e6f2e9b6f110486d3ca6fcbe7d9884f6f59569f9abb064683eafb5fb117ae8", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82e0a6fc215283f80df7a2efe086c3c72b1b7808043fe14c3e6c33f92213c42e", - "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1306, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1096, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1060, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "84b321ec2aec129bf70535d0272741dbdf12f5741d0f848beaf948079bc1b787", - "indexes": [ - "dcim_poweroutlettemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1304, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1094, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1086, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1058, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 0.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 88, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 5988, - "wal_fpi": 0, - "wal_records": 84 - }, - "calls": 4, - "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Result": 4 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1497, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8dfba5ff85da1d046fd21c2f7d60f6cb76c3f4a88939df96e1b00796d2ed8cb1", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8e2d5cf4e67e550b77e5341090db3969f2d06360b222e2c45a9746e26dfea451", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 18.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "93c2335339c1e48bec03adbe1da7c53f8c131c8d9ce2b2e5fcb4b1ff8c4cb956", - "indexes": [], - "node_types": { - "Limit": 6, - "Seq Scan": 6 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 19.63, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "96c8c2d3d128b289b6c85313a9757551d11e7fc8d4855cf1575bcec6be7c6272", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 19.58, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9cd805dab6f15af00acba1e106b3c05520eca0bd8d05fb43563248a439ed0514", - "indexes": [], - "node_types": { - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 19.63, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9d0cdfd2bc86d1c8848110a5c037f61cc7428f16c65f571ea67f7c6d7f02abe6", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 19.58, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.05, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9da25d10e485f754182d4d823e58e9abd7229cb2a6eb6e0d82e66c2611190efa", - "indexes": [], - "node_types": { - "Nested Loop": 1, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 156, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 156, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 136, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.04, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.05, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 11.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9ebd9794b234ab73b148dc56ae1844e77a674ffc1770e3d5bf7958411bc0edcb", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ANY ('?'::bigint[]))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 11.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 11.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a405fbeb517a3da4b6dc2f894a76c111af8d63c5ba8cc50b6bab690eb604bbc3", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 11.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a4e4a0721285db15dd0291ffc9fe42b766bf9ab30a07f063692ca27738dbf72f", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ad4280832ec72d05833891853180966290f12b31f06a17569189ead7a0148361", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_poweroutlet_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b09e5df3bd10998267d74d1dfadecc0a4de79cb3567985c48c4cd935416e22bc", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 12.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "b2ee713465b16c3bc2572a3ab8901e977e853ff49fadf7cea81641ca3d63af2b", - "indexes": [], - "node_types": { - "Limit": 4, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 14.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "b50c46b8171f2be4fa5df34189366b161e8a8597d2dcc707eb9ccf87aa5872c8", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b8e7839f7b1c9604f0585df890907b8de7f20162db6f4477c70c135174765c1f", - "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bb65489f214364bd7a4711bf0ed584c001fb40342825c060369896bb95d3cc3d", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id > ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 3.0, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bce1a17ce482c9e652ee4c397104e74fb46fd559c41744e4ed469c16639cc2bf", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 4.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 1.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bfeafd0f838b1b475a1e000531fa5b472e1be0e64dedbed0d94269c5db6101c6", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 40.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 395, - "wal_fpi": 0, - "wal_records": 5 - }, - "calls": 5, - "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 5, - "ModifyTable": 5 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1494, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "cde23e1325f70f12f608a6bd764a77c3c11a7abea86c4d0a2255fe5cfb33dac8", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 27, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 1494, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 42.56, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 42, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "d0e09728c1c20970ee9958916f131a6450180933a77736a1a68bb0ab47bf5c41", - "indexes": [], - "node_types": { - "Nested Loop": 10, - "Seq Scan": 12, - "Sort": 2 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d4380a2085cf4e34dd7d90960a8c93d24ff15095904e768bdfa4427ca990f5e3", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "de9c48311a995ce95271677eae423daf49ced1a97d8b0bc6a7cb4f25b898a54d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.11, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e10d34d7eb8b531004b5ec8758433f429c42cd04ffee4915a6a8c1368284b41b", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3069, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2938, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2046, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1915, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.11, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.11, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", - "indexes": [ - "dcim_consoleport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 20.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e7e9d75ef5697e8e18ce038e6060bc712624c69c266651f3f530e90c6d580fd1", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 333, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 123, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 115, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 20.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 52, - "shared_read_blocks": 12, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 575, - "wal_fpi": 0, - "wal_records": 8 - }, - "calls": 1, - "fingerprint": "e89816763ca6a9e380295812e114bf8c5957e04c8a1901c8a2a5829614ea5ebf", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 896, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 896, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 52, - "Shared Read Blocks": 12, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 575, - "WAL FPI": 0, - "WAL Records": 8 - }, - "Triggers": [] - }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 5, - "Limit": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "eb1c27e823fa362c67549d8ba81e459e2ba7726002ddd4b73b8319b542345bb9", - "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 405.29999999999995, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ed97567899a0ca1a9118bd24811aa559f81708cb4e4d48a09f3e44ac5ff90c0d", - "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f2450888f21218a73ba6d2c13119b662a7a3ee892ae094b0f0250c831a35e6fc", - "indexes": [], - "node_types": { - "Nested Loop": 5, - "Seq Scan": 6, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 21.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 27.42, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f3a21e1bfd471f4ad1665eeeca2a373c9bfa56b8c9c9c18144d0156223c0ff8e", - "indexes": [ - "dcim_powerporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 5, - "Seq Scan": 5, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 948, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 912, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.2, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.38, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 27.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 22, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1471, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "fec67d19a4a85245415ecfd36990a683f35ae4d60827b6f49f2d79b1b25b664e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1471, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "08df12147c8ce7a5ea74b55bb6f7c6254282be6a5d5f1fe9e0bf5eec883dbcee" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 16, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 39, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 39 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 2 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 164, - "actual_rows_per_work_unit": 17.8, - "actual_rows_times_loops": 89, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 164, - "planner_rows": 366, - "planner_total_cost": 2478.2200000000007, - "planner_total_cost_per_work_unit": 495.6440000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 752, - "shared_hit_blocks_per_work_unit": 150.4, - "shared_read_blocks": 13, - "shared_written_blocks": 0, - "statement_calls": 172, - "statement_calls_per_work_unit": 34.4, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 11613, - "wal_fpi": 0, - "wal_records": 160, - "work_units": 5 - } - }, - "description": "Four-channel structural creation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 263.613881, - "p95_ms": 280.0746138, - "samples_ns": [ - 256302308, - 276877641, - 287534217, - 252445942, - 275835356, - 269207091, - 263872492, - 265174855, - 263613881, - 260711984, - 260948970, - 267384569, - 254485306, - 251733226, - 246301311 - ] - }, - "wall": { - "median_ms": 356.120492, - "p95_ms": 375.3795374, - "samples_ns": [ - 348408001, - 370661801, - 381407026, - 343123475, - 372796328, - 365884356, - 360072377, - 368848097, - 356199773, - 355638846, - 353767837, - 356120492, - 341223775, - 341062943, - 328977375 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 283.334405, - "p95_ms": 294.8187146, - "samples_ns": [ - 269418786, - 283334405, - 296094749 - ] - }, - "wall": { - "median_ms": 380.544973, - "p95_ms": 401.1466426, - "samples_ns": [ - 365582647, - 380544973, - 403435717 - ] - } - } - }, - "name": "module.complete_model_save.structural_creation", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "xe-0/0/3:0", - "xe-0/0/3:1", - "xe-0/0/3:2", - "xe-0/0/3:3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0637d80c1d3968bec776a11a8f10b174ff960f727095e5ec10326f29385980e5", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 2.02, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fe8d51e9ec6a24dd34ee4aa6ddf7f5f7adcc1cc799348f26d4d4ff21416da74e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 23.99, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 2, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4105, - "wal_fpi": 1, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "0879dee678d7ae6af6aa8302619aac5db2ff625795af2f440abde1f3a3b6abf2", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Hash": 1, - "Hash Join": 1, - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2266, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.6, - "WAL Buffers Full": 0, - "WAL Bytes": 4105, - "WAL FPI": 1, - "WAL Records": 1 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.01, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 5.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.78, - "WAL Buffers Full": 0, - "WAL Bytes": 4105, - "WAL FPI": 1, - "WAL Records": 1 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 5.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.94, - "WAL Buffers Full": 0, - "WAL Bytes": 4105, - "WAL FPI": 1, - "WAL Records": 1 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 23.95, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.99, - "WAL Buffers Full": 0, - "WAL Bytes": 4105, - "WAL FPI": 1, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 30.119999999999997, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "167e3754be964932c89c5efd8cf19d9caca6affea559681d9fdff895ecbf2bce", - "indexes": [], - "node_types": { - "Limit": 6, - "Seq Scan": 6 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 10.049999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.19, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 15, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 120, - "planner_total_cost": 607.9499999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 15, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 15, - "Bitmap Index Scan": 15, - "Hash": 15, - "Hash Join": 15, - "Index Scan": 30, - "Nested Loop": 30, - "Seq Scan": 15, - "Sort": 15 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 13.22, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4fb08bb8df37a924d812282b6a87e75b3e956321d14dd71946b43da5d468a1af", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ANY ('?'::bigint[]))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 13.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "092bec217ddb6b2f21c8e259dd2ea638f468ffc42cdda7f6dbf176685b739367" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 23.99, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "557ece026e1af9b56d8637374dde30962e2812d7259dc4b9363af24759b99ec4", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Hash": 1, - "Hash Join": 1, - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2266, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.6, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.01, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 23.95, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.99, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "55b32ff4bf74c62c5599c638babb7dbb30db884c304adc8c0cc2a24eacf53136", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id > ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.02, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 13.22, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5862df139fd23d57e1c3230c294659f396f8b7a6177e884bcb8fd14549e011b4", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 13.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 14.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5cb23fe2a5e58eb2396605c5bd1bc3d50be9a918e1a6a8a0cb0869b6bf70df1b", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 23, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1497, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "6713909a026c080d690ba09da361f39be222c78cc25e2338cefa7b5114511c78", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 23, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1497, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.23, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6c897b050a515671da1a7440af1415036a969264e619f20de6d07dd67b86764d", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 113, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 113, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 2.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 0.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "6f0c415ba3d0e822db52f90147a3fc6601d1d65734f9c1638895ef0e86cad94e", - "indexes": [], - "node_types": { - "Limit": 4, - "Result": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "One-Time Filter": "false", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 0, - "Plan Width": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "692c11ecd056428f6e736eb77f72635da3c7efe59c1875eedf6680ad6ae106cd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1611, - "wal_fpi": 0, - "wal_records": 20 - }, - "calls": 1, - "fingerprint": "804d80422d38b278f096ce952b7104fecdd7ccd105b82d054bf840fc6c679cae", - "indexes": [], - "node_types": { - "Function Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST(('?'::uuid[])::uuid[], ('?'::timestamptz[])::timestamp with time zone[], ('?'::int2[])::integer[], ('?'::int8[])::bigint[], ('?')::varchar[], ('?')::varchar[], ('?')::text[], ('?'::int2[])::smallint[])", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "unnest", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Function Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 20, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.1, - "WAL Buffers Full": 0, - "WAL Bytes": 1611, - "WAL FPI": 0, - "WAL Records": 20 - }, - "Triggers": [] - }, - "statement_fingerprint": "76c5e0f6b8569e5343d125998c0c4accea890103c75f0f83c584cdfe160478f0" - }, - { - "aggregate": { - "actual_loops": 26, - "actual_rows_times_loops": 26, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 26, - "planner_total_cost": 356.9800000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 130, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 26, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 26, - "Limit": 26, - "Nested Loop": 26, - "Seq Scan": 26 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8815048e69a3879fd1f377ef605855112fe3d50337d7a3758921ffb7097e936e", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.02, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ec8cb6ed6dd3bbbe1dc3e37e4f1755b0cbb4dc7cd438f4397b7f6d7edaaa8be2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8826a696bf104d3b6190e57164770b2534873b0f17b03a459df308408d9d8892", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 10.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "894a10e05c40d9ebe1535c382788e7cfe27a9b52e0f36081bb59448553e68474", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 156, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 156, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 136, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 10.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 3, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 3, - "planner_total_cost": 0.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 66, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4491, - "wal_fpi": 0, - "wal_records": 63 - }, - "calls": 3, - "fingerprint": "8a613150932c11b42dbf96a0384ebbe526999e2b0f6bc2f05861a1134ac44b0d", - "indexes": [], - "node_types": { - "ModifyTable": 3, - "Result": 3 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, ?, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1497, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4004e3a9d401af45be5c7caf40b6535fc5670690884a3302b542ec7a6db3402" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9b78bff13f85174069adaf01a9d759cce5389a90c8b45fa11437ee49b60a585d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 47.98, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "9d2b7dd74d1ee9d7ebe62cf32ff552ee2b829d7c5bb19333222a4693100fdfd6", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Hash": 2, - "Hash Join": 2, - "Incremental Sort": 2, - "Index Only Scan": 2, - "Nested Loop": 2, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_cable.id = dcim_interface.cable_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2266, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.6, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.01, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.03, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 23.95, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.99, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 29, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1494, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "9d40b58581dbab1ba414240df2a25e6c786fd5292e0e4525a4a09f688989b2e2", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 29, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 1494, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a0fbd0603f9ff5f710a7b3adb3afe9e9b3a90c7bd802f3d6f38a267a77f9b97f", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b248dc89f1ff2b101dccdd5295eefec5e8b75a05e331456bc2364382ab3eed96", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a91a88b9abfd977a2d7d8cbe46335abf7239c6c0eff35d05ba9f12f28dee2771" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b812a5fb26ca5d7c63ff4681716d50d144016eb9b505d26aad297b6f6b3e3ad3", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 2.49, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bed6c13fbd045b41c2637787758f90d2d42ea4620c282c85bce0a2adab38b400", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?, ?, ?, ?, ?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_type_id = ?) AND (object_id = ANY ('?'::bigint[])))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3cc963c705f9d7e6942c7cb634264c74a5977a8dca28f1ae8d21e00ca381ffc8" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 4.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "bf5d171ac901ff6cb539d6bb5df8609d43b96810abafc0145a7e5e28195948b6", - "indexes": [], - "node_types": { - "Limit": 2, - "Seq Scan": 2 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 23.53, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c806bab5eb9a0d530a2ae64843894479e30084c21fee5c0356ec25d490e95cf2", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 735, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 727, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 517, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 481, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 445, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.34, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.5, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.52, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 23.53, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 158, - "wal_fpi": 0, - "wal_records": 2 - }, - "calls": 2, - "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 2, - "ModifyTable": 2 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "cf73e6db886f1d894dc74036e2b935f5ab1ef318881b316d2250c702766e2651", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d34ed9bc3b276775059bda33d19c77d55c2b5e377f215eb57a8b5dc491fe68ec", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d999dbf8ed72ed08471e7ed451d5740c865d85e4dd6c5d3067cdb67b862e9e9c", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "da68ccf0688b8b3b4f7188debe29a3d422cbbc42903e99db5516afbd07af9520", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e88f3ff4536f8664145ab7220a72ed7247040a11130e881a687f30d8fd46406" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "db18653cb4f049880f528d1a92dc822fa99de999f5d0ad91becb4e798a6cb1b9", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 20.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "e3caeac7d2c46b4bee93087a339a04bd75f571767c82d6b08e746322fac2396f", - "indexes": [], - "node_types": { - "Limit": 4, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 13.22, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e683ed305970d9c71a730d103291c9f388665abe680683cb21e5199150366627", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1232, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 986, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 13.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.22, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.56, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 31, - "shared_read_blocks": 0, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1800, - "wal_fpi": 0, - "wal_records": 24 - }, - "calls": 1, - "fingerprint": "f1322cbbe75d55fee044af73c41a1c6d04eb0788f4389b382e91770dbf88228f", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 31, - "Shared Read Blocks": 0, - "Shared Written Blocks": 1, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 1800, - "WAL FPI": 0, - "WAL Records": 24 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fb7744c778b3dce9c5f73c8c21dc4bdd94cc20989433b0a77f7ac1e31541cc99", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "21bbaa2fa3851cbb2bec89d0da08242549067f446178eaf59d40a8e031140e92", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s, %s, %s, %s, %s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 15, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "4c06246c524e31559b8c088d84a9f0f1ebdb643265c6488f6e3706d67f5a4bd9", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "61bdd7ab58b1f36463d4447d261062f8b68a39f52dc68b324baaf266a92abf96", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8360088b26e6b20dac4bd823513e4e71c9e0b5f1755435c82af63804346992db", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"module_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 4 - }, - { - "calls": 4, - "fingerprint": "87b3dc244e5e39eeeab38530d893613fab3f98963d4c575fa72d7613465ad6bf", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 4 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "9137b201bfc1fb53075a0f1b8c21b7e2e9b733d6f1125d541c6b3cd5aa4fc82b", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 26, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 26 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ef51196ec458b83a7045490036acd9fdf7c97947f8cdd4ef9ef284e77e6aa31e", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") SELECT * FROM UNNEST((%s)::uuid[], (%s)::timestamp with time zone[], (%s)::integer[], (%s)::bigint[], (%s)::varchar[], (%s)::varchar[], (%s)::text[], (%s)::smallint[])", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "f4f01b4eb75cec7c1ac631a9c1f18ed173a0cc99e0646dc6dbfa09a7651e423a", - "normalized_sql": "SELECT COUNT(*) AS \"__count\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "f58f536b60880a3a158c6ba38f6991b6e9d22138919427fb2d29a1c0beb814bd", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" IS NULL AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 111, - "actual_rows_per_work_unit": 14.4, - "actual_rows_times_loops": 72, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 111, - "planner_rows": 223, - "planner_total_cost": 1430.5299999999997, - "planner_total_cost_per_work_unit": 286.10599999999994, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 560, - "shared_hit_blocks_per_work_unit": 112.0, - "shared_read_blocks": 1, - "shared_written_blocks": 1, - "statement_calls": 119, - "statement_calls_per_work_unit": 23.8, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 15235, - "wal_fpi": 1, - "wal_records": 153, - "work_units": 5 - } - }, - "description": "Four-channel structural creation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 178.599918, - "p95_ms": 199.465228, - "samples_ns": [ - 199359793, - 181656571, - 176844420, - 187769060, - 169506740, - 168084180, - 173714597, - 185584442, - 199711243, - 178599918, - 165768385, - 167108404, - 179375359, - 165697362, - 187617787 - ] - }, - "wall": { - "median_ms": 239.876444, - "p95_ms": 271.1865105, - "samples_ns": [ - 278470266, - 242613064, - 233331471, - 245463832, - 224851519, - 226477631, - 234833471, - 246720600, - 268064901, - 241773644, - 220795478, - 222440229, - 239876444, - 227693827, - 246552425 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 177.134732, - "p95_ms": 178.6601204, - "samples_ns": [ - 177134732, - 178829608, - 174158716 - ] - }, - "wall": { - "median_ms": 236.423552, - "p95_ms": 238.522604, - "samples_ns": [ - 236423552, - 238755832, - 234059355 - ] - } - } - }, - "name": "module.direct_callback.structural_creation", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "xe-0/0/3:0", - "xe-0/0/3:1", - "xe-0/0/3:2", - "xe-0/0/3:3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0c415e57213854714bfbf0f0a10c2f30457251d6eb9731a2b8aef3c3cac5b830", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_poweroutlettemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1304, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1094, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1086, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1058, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0fc101cf8db3e8a0a45e243e194d29797872c45ad16125275df97f3b58c3c35b", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 32.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 140, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 5868, - "wal_fpi": 0, - "wal_records": 84 - }, - "calls": 4, - "fingerprint": "134c43025b43f63b3edf55ad33427cf5ae1d9deb499322cf01f49824013ab8dd", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Seq Scan": 4 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 35, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 1467, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 98.52, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "164dcc0bcbce6d749d7a1082e760a6568b300791aacc971f508514fbea570ec5", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 4, - "Index Only Scan": 4, - "Index Scan": 4, - "Nested Loop": 8, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 24.58, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "1a7205ced6bc1e49ac2a185d7bb2b9e5ed3b058bce5f9b725365c09faf240508", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "1adc62bdf334fe7c7a687363200e0c39f5d7a7be9e83b4e080d246392a977288", - "indexes": [], - "node_types": { - "Limit": 4, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1b7a8d6d0595b82a8dce4ba02c6af45b36ee4650dacb670df2887e9e70570087", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 33, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1465, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "2263667d82d1e3212b805b8962fc6a3b1ca28924465ae7d395c349b881649b8a", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 33, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 1465, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 64.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 64, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "2484ec2928c29206e477378038a89f6d3044368214d828a844c1c6cd3c69de66", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2005, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 23.53, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "24f473198eeb64d98b4a613d0bbbf37b80ebc244f015889f40b4bac2ffa52b72", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 333, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 123, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 115, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.34, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.5, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.52, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 23.53, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 23.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "27bd86446c5cf0800909c1ec902fa21fd9fd243ecc1ca24d0d3cbc013792074c", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 2.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2ac669a659ba8d1aabe7bb9a6d0c86ad4d4722f341c74811b39900e731c23aa7", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2d3a0e703cf2e207cc924558a58b0677c41eef7e55ab94d7b992a72e98c2d922", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 18.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", - "indexes": [], - "node_types": { - "Limit": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 0.07, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 116, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 7417, - "wal_fpi": 0, - "wal_records": 106 - }, - "calls": 1, - "fingerprint": "34780f5e53c20b4c37773013b057b76bcc1b26bed8c6b683cc3c18fb2ed74d90", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Values Scan": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "*VALUES*", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Values Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 116, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 7417, - "WAL FPI": 0, - "WAL Records": 106 - }, - "Triggers": [] - }, - "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 24.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 28, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3977187abae50177e01a00bb4d86fbe334362dd81b6c023d22b7f3f622323619", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 5, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 20, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 20, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 24.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.75, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3a2d1ec90f82e310b983f873308c5a74efa1ea5d7ee9abc6761d47672e528940", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_rearporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3c42fb1ed65e38e2f6ccbc6cd18e9779358db1f319e39958ea7a004c07167f02", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "42056e4d4a2cf73a3fd9670ed59790bb1f650c8bfc873fd3ea457389d32a40d7", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 722, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 504, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 476, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.55, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 24.58, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4260e45e27233268fcf14525ac4d1229a1d864f04af0fb3e4232d430d4689040", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "477045a2e1eb3c4a432e8a318a949af8c923a2aa6e17b6d8cac12def569dc598", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.71, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 9, - "Sort": 9 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 24, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 192, - "planner_total_cost": 972.7199999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 24, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 24, - "Bitmap Index Scan": 24, - "Hash": 24, - "Hash Join": 24, - "Index Scan": 48, - "Nested Loop": 48, - "Seq Scan": 24, - "Sort": 24 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.17, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "59ab2fb47d0689f8af87dbb3128a08efbe076c17e37e047ca91d3d68e081fae4", - "indexes": [ - "dcim_cabletermination_unique_termination" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", - "indexes": [ - "dcim_consoleserverport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "613079e67042ee5e8e1bf3bc90ce4f08f2b578d5d9a77569593c7267963b8558", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 27.089999999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", - "indexes": [], - "node_types": { - "Limit": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "65b93d522780572bc9a07790eb2a2ad603c4f4596dfd262b2d23d6e4741ca06a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 66.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 5, - "Limit": 5, - "Nested Loop": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "69c249674607ef4bd898562d5dd5e73e51dcb399cd5d9c0b319442c9419e111e", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1446, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1228, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.67, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6e21cafae719a7e99161e90641f576fa6fde81b51c50aa85b10f5e2e3b90d1f5", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_powerport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6e294c54f01d09d93544d66b4ebf9400a5fd290bbb8cabde83908f56ce737283", - "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 12.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "6f5ab77e1a32861ae79db6f122db01ac4dd1c0a8c37762d132bbc637fbcfe5b6", - "indexes": [], - "node_types": { - "Limit": 4, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 440, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" - }, - { - "aggregate": { - "actual_loops": 18, - "actual_rows_times_loops": 18, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 18, - "planner_total_cost": 146.51999999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 36, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 18, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 18, - "Limit": 18 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "750dfb2edf517badb6259c2efa4bb9f8c1cafeae57c2de4c2caefc8de067b5de", - "indexes": [], - "node_types": { - "Limit": 4, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2005, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 64.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 64, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "7ac79afa7986990f3c2e2e2acce74927e1df3d4aff5a8e8b085cd62f4350006e", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7b58f7cce0901a46775ec1fe9d696487007c28f8cdc46c562e47b2df70171156", - "indexes": [ - "dcim_coolingintake_device_id_df1c3674", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" - }, - { - "aggregate": { - "actual_loops": 63, - "actual_rows_times_loops": 63, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 63, - "planner_total_cost": 864.9900000000007, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 315, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 63, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 63, - "Limit": 63, - "Nested Loop": 63, - "Seq Scan": 63 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "82e71217ad82cfa71cf62df3f09258bae44e32965456b9ce1e398287a8948fd0", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "89bce9fc7f55edc1a7c4e51fd4689414c0d040fc7a6e7d280fd5dcc9761d8a0e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8d20638f59875d24dea6586ef4c5eb88f08ba9059633074dc322dc840fc84a5a", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_powerporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 948, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 912, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8e2d5cf4e67e550b77e5341090db3969f2d06360b222e2c45a9746e26dfea451", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 892, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 7, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 7, - "planner_total_cost": 57.190000000000005, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 7, - "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", - "indexes": [ - "dcim_cabletermination_unique_termination" - ], - "node_types": { - "Index Only Scan": 7, - "Limit": 7 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9cd805dab6f15af00acba1e106b3c05520eca0bd8d05fb43563248a439ed0514", - "indexes": [], - "node_types": { - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 14.11, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9f905952c5f102fc6ba193a7451fcdca547f872fc3cae608c39a9bc263b7e705", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3069, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2938, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2046, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1915, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.11, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.11, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 10.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "aa68a9b0b1fbdedccdf2abc425504666c5938e801f260c7324e5935ef6344b6e", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 10.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ac9a27be4b943b95246f0d3b619bf4a6a945cae9bcbd58cb29ef2b50b1a8cc78", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ad4280832ec72d05833891853180966290f12b31f06a17569189ead7a0148361", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_poweroutlet_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ad93fed257104185788090c756dd09636e1903e506c4a575bc008ce3a6ee3f65", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1292, - "wal_fpi": 0, - "wal_records": 16 - }, - "calls": 4, - "fingerprint": "ae91bf70df76c2d71a9696dee0d5b7f2f4a1315c1e9653522ee343423fdf2fe8", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Result": 4 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 323, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "aeb4e7d4fdad067afaf827e1b891057257abff35122086cdf527096099aca37a", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id > ?) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.0, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b8e7839f7b1c9604f0585df890907b8de7f20162db6f4477c70c135174765c1f", - "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 24.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bab19a8e2658ef955a2d8b741902e765e1fd8154bfb730a43e8764cb6c0811b1", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 5, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 24.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.75, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bb3cf426addd935c81b1abaff4fb0aedbc7a807c6b2307318f69073f0c0fc216", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bbdf80cc1eb87cf3559061f33f4a439f0b101281bd81e6c6e57d02e173a78472", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 24.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bca1ffe75a54701d8bdc08955414208f1233aaf01f9f237fb471ae28dcac99f0", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 4, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 4, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 4, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 24.69, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bce1a17ce482c9e652ee4c397104e74fb46fd559c41744e4ed469c16639cc2bf", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 40.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 395, - "wal_fpi": 0, - "wal_records": 5 - }, - "calls": 5, - "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 5, - "ModifyTable": 5 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 72, - "planner_total_cost": 129.33, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 9, - "Bitmap Index Scan": 9 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d387a36e9fa8ea4c1e559804a480b28b2d54b6d94ce5f29b4ecb9938eee7503d", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d7c5ab22cb2daf70c17bbda47840d9dc1d9d2ff787ba45076a7bb443165f652e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 27.089999999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", - "indexes": [], - "node_types": { - "Limit": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", - "indexes": [ - "dcim_consoleport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 52, - "shared_read_blocks": 12, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 575, - "wal_fpi": 0, - "wal_records": 8 - }, - "calls": 1, - "fingerprint": "e89816763ca6a9e380295812e114bf8c5957e04c8a1901c8a2a5829614ea5ebf", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 896, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 896, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 52, - "Shared Read Blocks": 12, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 575, - "WAL FPI": 0, - "WAL Records": 8 - }, - "Triggers": [] - }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e91040485f4f9ae782fa19d77b9db83850c3cbca973a2d85e86e1bd98793c4e4", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.26, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 9, - "Limit": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 405.29999999999995, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" - }, - { - "aggregate": { - "actual_loops": 14, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 14, - "planner_total_cost": 112.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 112, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 14, - "fingerprint": "ebe800ac343a48a675c36befa6f8bd7ad9b5c6874689db4ca18eea16aa6a0310", - "indexes": [], - "node_types": { - "Limit": 14, - "Seq Scan": 14 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.21, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ee34ba6058b289c34b295da44509bd422db15fc761d4bc41c62f6b86b4556be4", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f2a00f976e5f69992e82b118c695553090aca0e8fe7182ecf4f005efa338ef0b", - "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1306, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1096, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1060, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f7c67f872dd953320fad7a638ef416b2315a0b5a751ef7e6ada66cbc5fc6de92", - "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f8ca762ffeab5ac78dc0ccddb5f56f319f1dcd34dfdbc48f5b63987a878ad6b3", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_frontporttemplate_unique_module_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 3.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fbcddf7bb5b1f788f986300970a2d78acfbf8abe11891e9d0029a33091f627bc", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 32.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 136, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 5856, - "wal_fpi": 0, - "wal_records": 84 - }, - "calls": 4, - "fingerprint": "fde43f0d411efede8be4967d949eaaa80144aa8d9d8d88c3a0b86e166b349db5", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Seq Scan": 4 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 34, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.0, - "WAL Buffers Full": 0, - "WAL Bytes": 1464, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 4 - }, - { - "calls": 9, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 8, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 24, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 18, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 18 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 5 - }, - { - "calls": 16, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 14, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 16, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 63, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 63 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 10 - }, - { - "calls": 9, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 5, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 8, - "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 301, - "actual_rows_per_work_unit": 38.0, - "actual_rows_times_loops": 190, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 301, - "planner_rows": 618, - "planner_total_cost": 4186.009999999999, - "planner_total_cost_per_work_unit": 837.2019999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1720, - "shared_hit_blocks_per_work_unit": 344.0, - "shared_read_blocks": 13, - "shared_written_blocks": 0, - "statement_calls": 333, - "statement_calls_per_work_unit": 66.6, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 23266, - "wal_fpi": 0, - "wal_records": 329, - "work_units": 5 - } - }, - "description": "Existing parent plus four channels rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 572.30267, - "p95_ms": 596.0159633, - "samples_ns": [ - 577984331, - 577810798, - 589037889, - 557252767, - 595981277, - 552741496, - 565470589, - 585527200, - 542446936, - 575161596, - 562846479, - 566716975, - 596096898, - 558647690, - 572302670 - ] - }, - "wall": { - "median_ms": 763.76116, - "p95_ms": 780.5311197000001, - "samples_ns": [ - 767080881, - 773277047, - 763761160, - 729997702, - 785600295, - 740510819, - 746490618, - 778358616, - 720794155, - 771520009, - 739128884, - 744483118, - 774794107, - 752399433, - 765146381 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 555.973158, - "p95_ms": 613.3104218999999, - "samples_ns": [ - 619681229, - 555973158, - 533581315 - ] - }, - "wall": { - "median_ms": 739.811632, - "p95_ms": 792.0176952999999, - "samples_ns": [ - 797818369, - 739811632, - 712558490 - ] - } - } - }, - "name": "module.complete_model_save.existing_family", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "et-0/0/3:1", - "et-0/0/3:2", - "et-0/0/3:3", - "et-0/0/3:4" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "0846ead0f89e191bc9f765b8353e3a3800c26852c72088f48f05de8e199b6fd5", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 26.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1f946cd00c528c6d3888d22ded02c3fe1eb58032fb896e01887e324f5b9a9fa9", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 5, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 26.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.75, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "24d57674e856185006ed36b4ed8527a503c8d4ea9662ad8fbf3d5ec632cf12ad", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "27bd86446c5cf0800909c1ec902fa21fd9fd243ecc1ca24d0d3cbc013792074c", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 75, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 2.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 2.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 10, - "planner_total_cost": 130.9, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 130, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "27eafbd00a02385c688edaca88fd3a010ebd552675d0bcae07df06e1d63dc549", - "indexes": [], - "node_types": { - "Limit": 10, - "Seq Scan": 10 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (device_id = ?) AND ((name)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 10.049999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "29929c691858cea804b0b4d26db80d7c787ba4bd61463e029f5fec1410381ec2", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "29dbf86808692e112b04633431f157b92ccb236ecb199d537378cb7ac2a8bf1d", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 3, - "planner_total_cost": 21.32, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "311666c6609515b436be56eba7277ead3dfec470e1ce5bfedde7397c8d94fd07", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 3, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 3, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 3, - "Plan Width": 981, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 21.26, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 10.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "34ade45165f859b900607b0e12ff6b568c9d187974bbbfccad45ed197fbe7de3", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 118, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 10.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.949999999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 5, - "Sort": 5 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 15, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 120, - "planner_total_cost": 607.9499999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 15, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 15, - "Bitmap Index Scan": 15, - "Hash": 15, - "Hash Join": 15, - "Index Scan": 30, - "Nested Loop": 30, - "Seq Scan": 15, - "Sort": 15 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 49.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 128, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 5868, - "wal_fpi": 0, - "wal_records": 84 - }, - "calls": 4, - "fingerprint": "4fd9b0fdcd1a268f96b45fa79f8f574e62765c1d2a65e0c3d3eb4b2d7694c07c", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "ModifyTable": 4 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 32, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1467, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 81.96, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "52f08049c38bc4a112bb28e4c30bd89426cc5a391f67a4df95b61fdcfe643e57", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Incremental Sort": 4, - "Index Only Scan": 4, - "Nested Loop": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 3.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 20.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 15.049999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "6632a94307bbcfbd0b0f0d86652e34ee319a35469d94262f6af87434d9d59de6", - "indexes": [ - "dcim_interface_unique_parent_channel_id" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((parent_id = ?) AND (channel_id = ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 66.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 5, - "Limit": 5, - "Nested Loop": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7066fb2ac90918f07d41c1043bfb6b589d43b34cfcf195fb976646adbbc1570a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 10, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 10, - "planner_total_cost": 81.4, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 10, - "Limit": 10 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 969, - "wal_fpi": 0, - "wal_records": 12 - }, - "calls": 3, - "fingerprint": "7ac476970b2348d91b81cbe1ecd8fa5d3e96d4a39cb05eea975e20538ee26e26", - "indexes": [], - "node_types": { - "ModifyTable": 3, - "Result": 3 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 323, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 30, - "actual_rows_times_loops": 30, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 30, - "planner_total_cost": 411.90000000000015, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 150, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 30, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 30, - "Limit": 30, - "Nested Loop": 30, - "Seq Scan": 30 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "88a2149f6d5e45820cb29f3a306d79cd41b6b2372d5c29b084701832104f59d8", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 18.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8de796ea6c1b707c099273dafe72ad0a0120f905cd5d5951fd15ad57605937b1", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9411893adff0c553e236e22a59a76622f700318344845b2275bde44ea6435c89", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9848f4db3cda0cd62e84e47bf96750eb8bbb5ada50a5ed44edd46f32aa073004", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", - "indexes": [ - "dcim_cabletermination_unique_termination" - ], - "node_types": { - "Index Only Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.29, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9f6d1c068ddcacef5e49e9dc4abff6ba7a8d5691ad921b40085ec7b33cdd60c3", - "indexes": [ - "dcim_interface_unique_parent_channel_id" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1, - "Result": 1 - }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Parent Relationship": "InitPlan", - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Backward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.26, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.26, - "Subplan Name": "InitPlan 1", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a7f8af528dabb822f0393a1382e9af345d8f4ea8074b8ff4c01820127c091560", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 4.78, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b07515b1fe6b7bb479b88f539607863996330941d3c0a1c2b285f0b238969826", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.78, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 12.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1465, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "ba45dd9e6f9094cb75ab2c4de61d51391db0e253d8495b359e55a08627cd1652", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 30, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1465, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 3, - "shared_hit_blocks": 9, - "shared_read_blocks": 4, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4030, - "wal_fpi": 0, - "wal_records": 6 - }, - "calls": 1, - "fingerprint": "c10b95c39c4fd8945590f3ef4a181604d4134212561bfec7742356c3c331aecf", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 3, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 4, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 4030, - "WAL FPI": 0, - "WAL Records": 6 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 21.41, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c1c1f3e867d042c288661eeb857e7d733b3fad634fd3e7baf3f564a249d39a55", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 981, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 21.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 20.49, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c986143e5ce7cb71fdb11f65b496478e0ab8134146f7b417389eb7d105d4b1dd", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 20.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 40, - "planner_total_cost": 71.85, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 5, - "Bitmap Index Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 15.049999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 5, - "Limit": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 5, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 15, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 10, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 10 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 5, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 5 - }, - { - "calls": 16, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 10, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 16, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 30, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 30 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 148, - "actual_rows_per_work_unit": 20.2, - "actual_rows_times_loops": 101, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 148, - "planner_rows": 288, - "planner_total_cost": 2001.68, - "planner_total_cost_per_work_unit": 400.336, - "shared_dirtied_blocks": 3, - "shared_hit_blocks": 769, - "shared_hit_blocks_per_work_unit": 153.8, - "shared_read_blocks": 4, - "shared_written_blocks": 0, - "statement_calls": 180, - "statement_calls_per_work_unit": 36.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 12651, - "wal_fpi": 0, - "wal_records": 127, - "work_units": 5 - } - }, - "description": "Existing parent plus four channels rename", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 5, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 368.633294, - "p95_ms": 398.4531558, - "samples_ns": [ - 365480167, - 368770519, - 338799475, - 372606590, - 357888947, - 371790248, - 405582562, - 374659436, - 347397255, - 339363738, - 342451041, - 357032161, - 368633294, - 395378086, - 395397696 - ] - }, - "wall": { - "median_ms": 469.16973, - "p95_ms": 512.3222351, - "samples_ns": [ - 469037806, - 476231992, - 447711068, - 477711813, - 457186942, - 469169730, - 524290196, - 485720289, - 459963921, - 449548144, - 450828672, - 466702594, - 485647014, - 505894175, - 507193109 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 354.663245, - "p95_ms": 369.5370329, - "samples_ns": [ - 352455367, - 371189676, - 354663245 - ] - }, - "wall": { - "median_ms": 468.622032, - "p95_ms": 484.324413, - "samples_ns": [ - 468622032, - 486069122, - 462674130 - ] - } - } - }, - "name": "module.direct_callback.existing_family", - "semantic_result": { - "interface_names": [ - "et-0/0/3", - "et-0/0/3:1", - "et-0/0/3:2", - "et-0/0/3:3", - "et-0/0/3:4" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0557709e2d8b3849ddb158031de17a5a720f8cdc33be4bc28e7cea2772c75230", - "indexes": [ - "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1314, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1306, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1096, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingoutflowtemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1088, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1060, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflowtemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingoutflowtemplate_module_type_id_751812c7", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1024, - "Relation Name": "dcim_coolingoutflowtemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingoutflowtemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4328f20da97744464d52ee08da0086c5d5580eeaa8ea024523091e87a3565027" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 3, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 49.050000000000004, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 3, - "fingerprint": "0c3501db398afff033af0790c219ebc5f747ddeb3e409e5beed9f54515cc5953", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 3, - "Index Only Scan": 3, - "Index Scan": 3, - "Nested Loop": 3 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.6, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "0de296f6069a7728e0c818ffdc0d0708cc2bf33c222de22b5e36701e0804c26a", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], - "node_types": { - "Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 284.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", - "indexes": [ - "dcim_interface_vdcs_interface_id_6d58dbaf", - "dcim_virtua_name_079d4d_idx" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Incremental Sort": 4, - "Index Scan": 4, - "Materialize": 4, - "Nested Loop": 4 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 154, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 154, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_virtualdevicecontext", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_virtua_name_079d4d_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 90, - "Plan Width": 154, - "Relation Name": "dcim_virtualdevicecontext", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 45.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_vdcs", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_vdcs", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.36, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 70.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_virtualdevicecontext.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_virtualdevicecontext.name COLLATE natural_sort", - "dcim_virtualdevicecontext.id" - ], - "Startup Cost": 12.66, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 71.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 16.54, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 68, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 3108, - "wal_fpi": 0, - "wal_records": 44 - }, - "calls": 2, - "fingerprint": "102f70b3f9b69a3adcb85abe2226f65dad2107a4252ac4164b746297d72de8b7", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 2, - "ModifyTable": 2 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 34, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1554, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "130a9c68e430a3cd6fd9977034ac17749d4ecf787ecccbeca066a016bbe92006", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], - "node_types": { - "Aggregate": 1, - "Index Scan": 1 - }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(channel_id > ?)", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "13edc9d8b03c8192c752b0990ddec8628a0f89986aad094104f550b8ceee862b", - "indexes": [ - "dcim_coolingintaketemplate_module_type_id_b734e68e", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1454, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1446, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1236, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_coolingintaketemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1228, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintaketemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_coolingintaketemplate_module_type_id_b734e68e", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1164, - "Relation Name": "dcim_coolingintaketemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_coolingintaketemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.67, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9da9c9f88cbbd129a29ff9a44c605cc535cd5588c7b2294f6afb1d9b02d73712" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "170089e639b60f660b823122e1dcd9f0ed100696c3c405ba66841e9a0a449e1e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 25.53, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "17a433a868fc1c1bf882caf0745e1cee53b5bf6e987536bd207cb9a0357071bc", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 341, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 333, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 123, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebaytemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 115, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_modulebaytemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 51, - "Relation Name": "dcim_modulebaytemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.34, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.5, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.52, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_modulebaytemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 25.53, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "2e63db5ae6ef50c328827bf0cc42c31f6591932bddbab3fe07a62049351a3835" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1eef6a7f7b66b50b828eac092308401ecf0ecd7ac3e9f0f35bd8c2f5b2ca9077", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "1f3b36d8d13681dd41fb47eee39756eb8ee878347d2e444d42f6e225c1e0ae83", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Only Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 18.11, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2302d9b2f2d3af41c0a2c7ebb80cc28133e199b56139a0b449b04c5be391f327", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3200, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3069, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2938, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2046, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1915, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.09, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.11, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.11, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 24.77, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "246ce0d51bba2b3eaa8fc460e2a2ff98c5c0aa20732c79fe900b7f0e666525e9", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 2, - "Nested Loop": 2 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.72, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 24.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.77, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "258d7240a18c19ddd4eccc28989e74afa286047daa4df47cbac2302556d0f23f", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 141, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 141, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 121, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 11.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 24.81, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 117, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4515, - "wal_fpi": 0, - "wal_records": 66 - }, - "calls": 3, - "fingerprint": "2ad63997c549a7fa9f09dbedec8f942933ec1aa124890a9a844a7568e3a5a8c3", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 3, - "ModifyTable": 3 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 39, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1505, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 18.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "2de5a91aea4bc6d56082a0f2df5972ef383c52fedaa4d54159f6dc4b1c13a807", - "indexes": [], - "node_types": { - "Limit": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 34.45, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "32e707da707ecb159da849aa02f3b501151d2acee14824870ab6d565a3ebf15b", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "ipam_vlangroup_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Hash": 1, - "Hash Join": 1, - "Index Scan": 1, - "Materialize": 1, - "Nested Loop": 2, - "Seq Scan": 2, - "Sort": 1 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(ipam_vlan.site_id = dcim_site.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 35, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 26, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "ipam_vlan", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 80, - "Plan Width": 26, - "Relation Name": "ipam_vlan", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.8, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 25, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 25, - "Relation Name": "dcim_site", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.61, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "ipam_vlangroup", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ipam_vlan.group_id)", - "Index Name": "ipam_vlangroup_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 226, - "Relation Name": "ipam_vlangroup", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.71, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 14.61, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_site.name COLLATE natural_sort", - "ipam_vlangroup.name COLLATE natural_sort", - "ipam_vlangroup.id", - "ipam_vlan.vid", - "ipam_vlan.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 34.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 29.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "36eb3f3d3369a6cdf593087fcc6577273b7d8d8cf4a9bf642aa7ad41e7918300", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 5, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.75, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 2520, - "wal_fpi": 0, - "wal_records": 32 - }, - "calls": 8, - "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", - "indexes": [], - "node_types": { - "ModifyTable": 8, - "Result": 8 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 315, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3cea1be9e5aa6d886c08bf6caf1a479a3b93cdc6c5e23af232ba84bf1e4de72a", - "indexes": [ - "dcim_consoleserverporttemplate_unique_module_type_name", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleserverporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleserverporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleserverporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleserverporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "592f5db07cdd1816c573480fb5822841deda9c9dcf7844354d7d861ff3c46c42" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "412fb61e6ddc8b7301738a3c17bf29cb94e7a9311376cc3cdcf8f4700586e759", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + ?) WHERE \"dcim_moduletype\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_moduletype", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "52e25f62ff95048928305a47e86340b0be6f80049af73957752650c2740dc047" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "421f594faa0731f74fbb4a6851605c6c9d972471047d1c09f1cbd9fd54ea4d36", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 3, - "planner_total_cost": 50.550000000000004, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 3, - "fingerprint": "4243c2cc34631c6006d3185cf384e0af294dad750c60c1746d4200bd1354d228", - "indexes": [ - "extras_tag_pkey" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 6, - "Seq Scan": 6, - "Sort": 3, - "Unique": 3 - }, - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Unique", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(extras_taggeditem.content_type_id = django_content_type.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 920, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_taggeditem", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 12, - "Relation Name": "extras_taggeditem", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.96, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_tag", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_taggeditem.tag_id)", - "Index Name": "extras_tag_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 916, - "Relation Name": "extras_tag", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.81, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_tag.weight", - "extras_tag.name", - "extras_tag.slug", - "extras_tag.created", - "extras_tag.last_updated", - "extras_tag.owner_id", - "extras_tag.id", - "extras_tag.color", - "extras_tag.description" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.82, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 16.82, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.85, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4260e45e27233268fcf14525ac4d1229a1d864f04af0fb3e4232d430d4689040", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "67ae55a5290dbca111cd5c71cf39d1c44c20c4cb529ceac892e3914b3b584736" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 3.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "44a60a051dffa5d50eb9733e9df60d708f8eb3f3212560929b568cfb42ff97a0", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 2, - "Index Only Scan": 2, - "Index Scan": 2, - "Nested Loop": 2 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "480c6a84f60d8393bf9bf1a5aa02e81f79beaf5f2e9c42389b0427a4e428feb9", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 13, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 13, - "planner_total_cost": 106.46999999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 26, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 13, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 13, - "Sort": 13 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 13, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 270, - "wal_fpi": 0, - "wal_records": 5 - }, - "calls": 1, - "fingerprint": "4a1eae46055efb95554297e6ec8ad6ec168b973458a3b48d64626d8b60d8b9eb", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Scan": 2, - "LockRows": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "LockRows", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3092, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 2, - "Plan Width": 3092, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3092, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 863, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ANY ('?'::bigint[]))", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2011, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.31, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 16.31, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 270, - "WAL FPI": 0, - "WAL Records": 5 - }, - "Triggers": [] - }, - "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.3, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "4abb0442e2c8e75f799e2ff4277b53c8ed7a46e038b9bed2d16fd68ce8d1f9ae", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 32, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 256, - "planner_total_cost": 1296.9599999999994, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 32, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 32, - "Bitmap Index Scan": 32, - "Hash": 32, - "Hash Join": 32, - "Index Scan": 64, - "Nested Loop": 64, - "Seq Scan": 32, - "Sort": 32 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 74.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 3, - "fingerprint": "559d59fcdf99fee07003dd71547f451c65bbad3c169bac7f5982c356e4a48c2a", - "indexes": [ - "dcim_cable_pkey", - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 3, - "Index Only Scan": 3, - "Index Scan": 6, - "Nested Loop": 6 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (?)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3531, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 3285, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((cable_id IS NOT NULL) AND (id = ?))", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_cable", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_interface.cable_id)", - "Index Name": "dcim_cable_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1280, - "Relation Name": "dcim_cable", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.72, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 24.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.77, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b42c73070bfdc352c28911309079fcb52e33cc039a9d00c9ca5c27ecbbb8e8b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "55acfb72af702b176263cc3d5a20a7d8e882ac3ea5a03ac004cd97bc9b4636ef", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 23.88, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 216, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 4, - "fingerprint": "55d43a24ed589958003bf84c280f6c6cd39d4852c5abd6439b48afe9f325a9e9", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Seq Scan": 4 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 54, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 0.07, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 136, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 7464, - "wal_fpi": 0, - "wal_records": 106 - }, - "calls": 1, - "fingerprint": "59b21ec0b4519c4bcb5e15f959c8b7c8fd0187ef8addd9d16bfbd8b6718a83ac", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Values Scan": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', ?, NULL, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, ?, '?', '?', '?', ?, NULL, NULL, ?, NULL, NULL, NULL, NULL::smallint[], false, NULL, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', NULL, ?, false, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) RETURNING \"dcim_interface\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 2017, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "*VALUES*", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Values Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 2017, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 99, - "WAL FPI": 0, - "WAL Records": 1 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 136, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.07, - "WAL Buffers Full": 0, - "WAL Bytes": 7464, - "WAL FPI": 0, - "WAL Records": 106 - }, - "Triggers": [] - }, - "statement_fingerprint": "04add4db56f5ed90ffe495ebb9e6c85d6c510d3f174c645e2f87fff430c0ecc1" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5a810a918246ade37d999acc95efe0a4710054a69b987afcc0b57e444c6645e5", - "indexes": [ - "dcim_consoleserverport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = ? AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleserverport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleserverport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleserverport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleserverport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c2b8f10b10ff8dec9d8976374ce7f66353eee4323d0e4ea57d7657349352e97b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "613079e67042ee5e8e1bf3bc90ce4f08f2b578d5d9a77569593c7267963b8558", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8b21cec8b9d507053a5102a483de9005324d692a4d9444ec0d4de77009204c95" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 27.089999999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 27, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "6211359edb5db7d5237d59f97215bd0aa399cc23ade29ba64091e4cbd5866975", - "indexes": [], - "node_types": { - "Limit": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "667d66c002552c9f55767cd7c49d660dc98fe86803bbdfe7d106ddd39a3c4d41", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_poweroutlettemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1312, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1304, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1094, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_poweroutlettemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1086, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1058, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlettemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_poweroutlettemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1022, - "Relation Name": "dcim_poweroutlettemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_poweroutlettemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d1361ae4ecec884360da57679c069d8b3c19a0f4d125e8dc5e755ed495bdc395" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 119.07000000000002, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 45, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 9, - "Limit": 9, - "Nested Loop": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.2, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "6b9bcac00def8b4ff7fd59a573cb26a2a0fbd25315922a0c45a603903b813b76", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Index Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6e21cafae719a7e99161e90641f576fa6fde81b51c50aa85b10f5e2e3b90d1f5", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_powerport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = ? AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1027, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_powerport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 999, - "Relation Name": "dcim_powerport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_powerport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a8414ce4bb000ae1e6cfe089f84d129b69325b4cdb41c1935e7ae90cb2feb436" - }, - { - "aggregate": { - "actual_loops": 18, - "actual_rows_times_loops": 18, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 18, - "planner_total_cost": 146.51999999999998, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 36, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 18, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 18, - "Limit": 18 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 29.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "77b8e4f8414ca97ddfb2defbe2072cc755e3736a1cdb523f7bdd09483c833a95", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 722, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 512, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 504, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 476, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((bridge_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.55, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.57, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.58, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.58, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "7789d474b921dea00e55e219eb6e4f2074dc84a95acedf680da2701bb4e1e2d3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7b3add9262ffd4507521331eb65359ee4faae6e2777797a78cd79d68bb0d4efd", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7b58f7cce0901a46775ec1fe9d696487007c28f8cdc46c562e47b2df70171156", - "indexes": [ - "dcim_coolingintake_device_id_df1c3674", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = ? AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1264, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingintake", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingintake_device_id_df1c3674", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1236, - "Relation Name": "dcim_coolingintake", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingintake.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "46ca22338fe3447901b475be369b3b151cd47ca01fee628b4ab5c9a2b4b7fac3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7ea46d85f0aa9c4aaeaa11dffdfdd0aab1897ddadad7c3987a8b0f96962328ed", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 83, - "actual_rows_times_loops": 83, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 83, - "planner_total_cost": 1139.590000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 415, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 83, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 83, - "Limit": 83, - "Nested Loop": 83, - "Seq Scan": 83 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "81c6ac8171b8afbc88c809e0f20ccb3e3ffac100c460d2658ef023725f092414", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 2, - "Index Only Scan": 2, - "Index Scan": 2, - "Nested Loop": 2 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 3, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.56, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "82816bdc6b383a0bfb3655562991ff322c35f9e92caaef0da7f1bb26676f3585", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2005, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((name)::text = '?'::text)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.56, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "88474e6fa9c456585d26c00c0520fcb33e3a688675e6ad61dc3964de75745e56", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2005, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((name)::text = '?'::text)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "d197410845c2e92b4685eaf05729812d92cc523194b11b67c96edfdcbf453c2c" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "8d2173ab0cfc71a79faa199c07304df9f9fad9ee06c7edfa8134a2fa6ffcf0aa", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Only Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8e2d5cf4e67e550b77e5341090db3969f2d06360b222e2c45a9746e26dfea451", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_frontport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = ? AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_frontport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_frontport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_frontport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0c2daba330950e2a984e10018c61604aaedb38e26155aa0d02fe5dc5acb33543" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 2.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "930b99e2e68acff1db144c1911fa93bb7dcbe870bb4f4f6caf85edf86de584a7", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 892, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 892, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 53, - "shared_read_blocks": 11, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 575, - "wal_fpi": 0, - "wal_records": 8 - }, - "calls": 1, - "fingerprint": "95bc4b19ce9991973ddf719e69b14ff46f3213e1194be89cf320b40041a28791", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES ('?'::timestamptz, '?'::timestamptz, '?'::jsonb, NULL, '?', '?', ?, ?, ?, '?', '?', NULL) RETURNING \"dcim_module\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 896, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 896, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 53, - "Shared Read Blocks": 11, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 575, - "WAL FPI": 0, - "WAL Records": 8 - }, - "Triggers": [] - }, - "statement_fingerprint": "f84e873b7498e1726bab36a96c6ed4585b8b773bb4176f8544e3808eac2e1e4e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 3611, - "wal_fpi": 0, - "wal_records": 35 - }, - "calls": 1, - "fingerprint": "9647c8a930f4400e04fc171adcea9ecd76a1ba413102db5b153f2b3c8d88e95c", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 378, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 48, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 3611, - "WAL FPI": 0, - "WAL Records": 35 - }, - "Triggers": [] - }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.36, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", - "indexes": [ - "dcim_cabletermination_unique_termination" - ], - "node_types": { - "Index Only Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 12.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a4605fe00272c24f0ce56b424547db177f9bd37b2f3d783ee3d4105d75104c6e", - "indexes": [ - "dcim_porttemplatemapping_module_type_id_3a84e529" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_porttemplatemapping", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 60, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_porttemplatemapping_module_type_id_3a84e529", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_type_id = ?)", - "Relation Name": "dcim_porttemplatemapping", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.19, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df3c406f2fa6e84e9282dc4f9a5e5b0371b67298f451239fd17ef77beb389887" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ad4280832ec72d05833891853180966290f12b31f06a17569189ead7a0148361", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_poweroutlet_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = ? AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1291, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_poweroutlet", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_poweroutlet_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1263, - "Relation Name": "dcim_poweroutlet", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_poweroutlet.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4335755475d29f0f3f1ca529f6a1636859a8e3d1e373ba272280997360a4fa9" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ad681ef6c1663ff4cc32dfd9d7df0a0ac044a5742ed635bc2102eb5964ce9089", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_rearporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_rearporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_rearporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_rearporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_rearporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e0b8e3121770e4dfd6794699803a3cf5b8709d18b14a81062482d941fbfc16e7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b223da72643e47731a86e14b2fa6979a3b468cb411a85afda78aa1c160ba4554", - "indexes": [ - "dcim_interface_parent_id_3e2b159b" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND (channel_id = ?))", - "Index Cond": "(parent_id = ?)", - "Index Name": "dcim_interface_parent_id_3e2b159b", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 29.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b6cfc8460b8da9c85a12b70c38baffa79e7d0a13dbe0222762076a17e2e3c818", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 5, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.75, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b8e7839f7b1c9604f0585df890907b8de7f20162db6f4477c70c135174765c1f", - "indexes": [ - "dcim_coolingoutflow_device_id_74dd615f", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = ? AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1116, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_coolingoutflow", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_coolingoutflow_device_id_74dd615f", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1088, - "Relation Name": "dcim_coolingoutflow", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_coolingoutflow.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "bedf5539043401cbffa92cd40bf4416b8f51092fac54a023411a9f2e24f61d7a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bc5b049f9ef8807616f1dbbaad1225c17a329dabd8dfea4ed10f2cbdbcea791f", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model", - "dcim_powerporttemplate_unique_module_type_name" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1166, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 948, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_powerporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 912, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_powerporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_powerporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 876, - "Relation Name": "dcim_powerporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_powerporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a2543632e06faad199ba3adb97c27383d50ee601bc49a4f37b6b26f86f00a4d0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "bce1a17ce482c9e652ee4c397104e74fb46fd559c41744e4ed469c16639cc2bf", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_rearport_unique_device_name" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = ? AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1041, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_rearport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_rearport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 1013, - "Relation Name": "dcim_rearport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_rearport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b2c85385ec7e16751bbf4f6ddc1fa456f36cb22197d19117d3a3e0b8dbaa0bb" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 24, - "planner_total_cost": 103.35000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 3, - "fingerprint": "bd333d56ed3f4cf6160e1f229368ca0361fb5104c9a4b78bec297649e71649f5", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "ipam_vlangroup_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 3, - "Bitmap Index Scan": 3, - "Hash": 3, - "Hash Join": 3, - "Index Scan": 3, - "Materialize": 3, - "Nested Loop": 6, - "Seq Scan": 6, - "Sort": 3 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(ipam_vlan.site_id = dcim_site.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 35, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 26, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "ipam_vlan", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 80, - "Plan Width": 26, - "Relation Name": "ipam_vlan", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.8, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 25, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 25, - "Relation Name": "dcim_site", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.61, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "ipam_vlangroup", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ipam_vlan.group_id)", - "Index Name": "ipam_vlangroup_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 226, - "Relation Name": "ipam_vlangroup", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.71, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.61, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_site.name COLLATE natural_sort", - "ipam_vlangroup.name COLLATE natural_sort", - "ipam_vlangroup.id", - "ipam_vlan.vid", - "ipam_vlan.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 34.43, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 34, - "shared_read_blocks": 1, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1554, - "wal_fpi": 0, - "wal_records": 22 - }, - "calls": 1, - "fingerprint": "bd5d2251ba765a9a1851eda8391904940c67d699aa9f8735d6cfea5c377a5174", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 2, - "Shared Hit Blocks": 34, - "Shared Read Blocks": 1, - "Shared Written Blocks": 1, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1554, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c2bc17f7c58694d993c7c94459e7aa951e2e20ce8ae53b60c3e64039fa7f7b8f", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 33, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1562, - "wal_fpi": 0, - "wal_records": 22 - }, - "calls": 1, - "fingerprint": "c38dbda229325d6f93975ea329f72a3639c9437fec35aee86ac8b286e0cf3495", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 33, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1562, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c43594cbf82112e24b28dbd798d4addf266611e2cd60710feaa779686e546dad", - "indexes": [ - "dcim_consoleporttemplate_unique_module_type_name", - "dcim_devicetype_unique_manufacturer_slug", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1158, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1150, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 940, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_consoleporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 932, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 904, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_consoleporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 868, - "Relation Name": "dcim_consoleporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_consoleporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b4295975e3b7e054222e90bcf9b2a8b109cc99536ceecc1d7682db5e505a060b" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 40.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 395, - "wal_fpi": 0, - "wal_records": 5 - }, - "calls": 5, - "fingerprint": "ca46d2188a1e2eadf6ff0c26a9af489412c90b90050a350ec9d0c01e48555698", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 5, - "ModifyTable": 5 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + ?) WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 14, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "0cc5dd71af7139646b38b61ddc7bfefb2ec4ce8a7d5b74b40c1a6171356a7a2d" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 398.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", - "indexes": [ - "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "wireless_wi_ssid_64a9ce_idx" - ], - "node_types": { - "Index Only Scan": 8, - "Nested Loop": 4 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 90, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "wireless_wirelesslan", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Name": "wireless_wi_ssid_64a9ce_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 90, - "Relation Name": "wireless_wirelesslan", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 45.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_wireless_lans", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", - "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_interface_wireless_lans", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.91, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.29, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 99.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 5.97, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "cc506ef5115eea72cb6a71290ec18a9ad3da8ca5c16a42cb1b6bb3516117e602", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Seq Scan": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "((object_id = ?) AND (object_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 13, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 104, - "planner_total_cost": 186.81000000000003, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 13, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 13, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 13, - "Bitmap Index Scan": 13 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.03, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d725c59c89d2583c8bfad235e00854b605817bc129fe0003e0b0a5efae22aaf2", - "indexes": [], - "node_types": { - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = ? AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "((module_id IS NULL) AND (device_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "sort_path COLLATE natural_sort", - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.03, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "cb5a0dfbd1e09e205bbeea8e16330025c2747abd9905f2603ea20f714861cdad" - }, - { - "aggregate": { - "actual_loops": 13, - "actual_rows_times_loops": 13, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 13, - "planner_total_cost": 39.12999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 39, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 13, - "fingerprint": "dad93797a1f5b6b0048de2f744f540b344a232e1d80eab20d5aa7048db8e1a56", - "indexes": [], - "node_types": { - "Limit": 13, - "Seq Scan": 13 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 29.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "def8b7ee80ebc202e4e128a770dac6119ea37083560bc945294082f6bb3ad80a", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = ? AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 4, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T7\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "((parent_id IS NOT NULL) AND (module_type_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 4, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.42, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 4, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T7\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 29.69, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "8c0ed397a93a2059003df031443da3bb39e1571655f9486ddb70ecc8056a2bcb" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e2407acca96fbe5db373198c7372be962a9e2f10685e93999cb44fa21abca715", - "indexes": [ - "dcim_consoleport_unique_device_name", - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = ? AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1023, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_consoleport", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_consoleport_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 995, - "Relation Name": "dcim_consoleport", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_consoleport.name COLLATE natural_sort" - ], - "Startup Cost": 16.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6963b9a1cfa1da5e03e4df1cc712f452e7f70718cb36743240380bbea06d3359" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.85, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e3ba90e0299c9f5f80175421290280e0179307f3f1bf77a6e30dbe45a670220a", - "indexes": [ - "extras_tag_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 2, - "Seq Scan": 2, - "Sort": 1, - "Unique": 1 - }, - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Unique", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(extras_taggeditem.content_type_id = django_content_type.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 920, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_taggeditem", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 12, - "Relation Name": "extras_taggeditem", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.96, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_tag", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_taggeditem.tag_id)", - "Index Name": "extras_tag_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 916, - "Relation Name": "extras_tag", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.81, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_tag.weight", - "extras_tag.name", - "extras_tag.slug", - "extras_tag.created", - "extras_tag.last_updated", - "extras_tag.owner_id", - "extras_tag.id", - "extras_tag.color", - "extras_tag.description" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.82, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 16.82, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.85, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 24.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "e419040bed4af7c6635bb2d9563b77bcbe142851b57b4ff3f7d02a06e92a691d", - "indexes": [], - "node_types": { - "Limit": 4, - "Seq Scan": 4 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 440, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "60ff3c83bed973ad9fdca674427a3674b05fef4492bd02beb9993e0bff0600fd" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 33.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "e7302348e6f139d6f96e5bec9fcd1a4eb13cb984bd92a907433dfea86d00c387", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2005, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e91d170e25e21c9ea751a115f62397dd14d8c5dceee4b3bf42fbafce22979497", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id IS NULL)", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.31, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "df314693d8cc2a8b6c2811c27d956487a5cd05a2aea9d26254f78eb32a9730a4" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 24.81, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 105, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4401, - "wal_fpi": 0, - "wal_records": 63 - }, - "calls": 3, - "fingerprint": "e98f740b1f002a34c1f818c3b8094af4f7a11beb450f3a9e2edd93f79aeab8da", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 3, - "ModifyTable": 3 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 378, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 35, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1467, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.26, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 9, - "Limit": 9 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 80, - "planner_total_cost": 405.29999999999995, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "eb581d14632515425ab4dd21f998b7275b01dc9df2da5546d83a0da773769a68", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 10, - "Bitmap Index Scan": 10, - "Hash": 10, - "Hash Join": 10, - "Index Scan": 20, - "Nested Loop": 20, - "Seq Scan": 10, - "Sort": 10 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = ? AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Filter": "(\"default\" IS NOT NULL)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "e6cdc15d919c2bc4534ae1085fc75a66eaabfe8be01f8292b0da29128a46a68f" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "ee08771ddeb49558e2c7be9416eb4a3684e140508ff55489deee4420c4358a84", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 2, - "Index Only Scan": 2, - "Index Scan": 2, - "Nested Loop": 2 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 2, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ee3649403cbd94a1e7fe43aa285e583280201118851313e1369cab04339b3f71", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_frontporttemplate_unique_module_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1188, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1180, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 970, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_frontporttemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 962, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 934, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_frontporttemplate", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_type_id = ?)", - "Index Name": "dcim_frontporttemplate_unique_module_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 898, - "Relation Name": "dcim_frontporttemplate", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.64, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.67, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_frontporttemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.68, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "5ec5bf31a0d0e400bd2594a649060449683653bdcf99182daa9af8326242c25a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 33, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1464, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "f6ae27a1d1d0012d8151e687d7c1a99487317e44b84a14e36d9ac87d1c0b59a7", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 33, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1464, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "fd7edf6ce7a10cbaea9d8d9acfe16e35ccbb7e0838cb1e1d7e8c9f2cb2e8d121", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2251, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 2005, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 39, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1585, - "wal_fpi": 0, - "wal_records": 23 - }, - "calls": 1, - "fingerprint": "ffd0eb5fb57cc394e1702cd1e2052c795d886d549086aba655a61ec18d38c2b0", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 39, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1585, - "WAL FPI": 0, - "WAL Records": 23 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 13, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 13 - }, - { - "calls": 1, - "fingerprint": "14618e4dab50e9d68c5adfbb5932272dffb58990770eea78dc1b5458251ad42e", - "normalized_sql": "SELECT \"dcim_coolingoutflowtemplate\".\"id\", \"dcim_coolingoutflowtemplate\".\"created\", \"dcim_coolingoutflowtemplate\".\"last_updated\", \"dcim_coolingoutflowtemplate\".\"diameter\", \"dcim_coolingoutflowtemplate\".\"diameter_unit\", \"dcim_coolingoutflowtemplate\".\"_abs_diameter\", \"dcim_coolingoutflowtemplate\".\"name\", \"dcim_coolingoutflowtemplate\".\"label\", \"dcim_coolingoutflowtemplate\".\"description\", \"dcim_coolingoutflowtemplate\".\"device_type_id\", \"dcim_coolingoutflowtemplate\".\"module_type_id\", \"dcim_coolingoutflowtemplate\".\"type\", \"dcim_coolingoutflowtemplate\".\"cooling_intake_id\" FROM \"dcim_coolingoutflowtemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingoutflowtemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingoutflowtemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingoutflowtemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingoutflowtemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "1db0897fd9fdec92d3b505842a89ce0c07e5baed5b75a1866d3213c453c4cf3d", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE (\"dcim_modulebay\".\"device_id\" = %s AND \"dcim_modulebay\".\"module_id\" IS NULL) ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "21a4f6e4db73ecb01ae710d018c54714c684a96844a64237bdceb10c26ea8875", - "normalized_sql": "INSERT INTO \"dcim_module\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"description\", \"comments\", \"device_id\", \"module_bay_id\", \"module_type_id\", \"status\", \"serial\", \"asset_tag\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_module\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22c60203ed681db97a6d87ca8e097c1be80793a411a76e447636b02290cd5a6b", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"parent_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 4 - }, - { - "calls": 13, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2a5b62c8f27ddf354bf6b0ce8159641494d1dde48aee4afece36495c7f135efb", - "normalized_sql": "SELECT \"dcim_poweroutlettemplate\".\"id\", \"dcim_poweroutlettemplate\".\"created\", \"dcim_poweroutlettemplate\".\"last_updated\", \"dcim_poweroutlettemplate\".\"name\", \"dcim_poweroutlettemplate\".\"label\", \"dcim_poweroutlettemplate\".\"description\", \"dcim_poweroutlettemplate\".\"device_type_id\", \"dcim_poweroutlettemplate\".\"module_type_id\", \"dcim_poweroutlettemplate\".\"type\", \"dcim_poweroutlettemplate\".\"color\", \"dcim_poweroutlettemplate\".\"power_port_id\", \"dcim_poweroutlettemplate\".\"feed_leg\" FROM \"dcim_poweroutlettemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_poweroutlettemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_poweroutlettemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_poweroutlettemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_poweroutlettemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", - "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3bf59c785396a44b4383ff1efcf6f1b26ba4ce72262b827a90cce24043bb6550", - "normalized_sql": "SELECT \"dcim_consoleporttemplate\".\"id\", \"dcim_consoleporttemplate\".\"created\", \"dcim_consoleporttemplate\".\"last_updated\", \"dcim_consoleporttemplate\".\"name\", \"dcim_consoleporttemplate\".\"label\", \"dcim_consoleporttemplate\".\"description\", \"dcim_consoleporttemplate\".\"device_type_id\", \"dcim_consoleporttemplate\".\"module_type_id\", \"dcim_consoleporttemplate\".\"type\" FROM \"dcim_consoleporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "3eed0e50e806ad698d9af21ed32a554c93f6efe65657de20c74d862b18829a05", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_rearport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 32, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "43ea9a18a5cc96fa1703c5625a22262664fa7635a3f53c61aabf67a138a461c9", - "normalized_sql": "SELECT \"dcim_consoleserverport\".\"id\", \"dcim_consoleserverport\".\"created\", \"dcim_consoleserverport\".\"last_updated\", \"dcim_consoleserverport\".\"custom_field_data\", \"dcim_consoleserverport\".\"owner_id\", \"dcim_consoleserverport\".\"device_id\", \"dcim_consoleserverport\".\"name\", \"dcim_consoleserverport\".\"label\", \"dcim_consoleserverport\".\"description\", \"dcim_consoleserverport\".\"_site_id\", \"dcim_consoleserverport\".\"_location_id\", \"dcim_consoleserverport\".\"_rack_id\", \"dcim_consoleserverport\".\"module_id\", \"dcim_consoleserverport\".\"cable_id\", \"dcim_consoleserverport\".\"cable_end\", \"dcim_consoleserverport\".\"cable_connector\", \"dcim_consoleserverport\".\"cable_positions\", \"dcim_consoleserverport\".\"mark_connected\", \"dcim_consoleserverport\".\"_path_id\", \"dcim_consoleserverport\".\"type\", \"dcim_consoleserverport\".\"speed\" FROM \"dcim_consoleserverport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleserverport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleserverport\".\"device_id\" = %s AND \"dcim_consoleserverport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleserverport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "47da168281a01f80de8b62c1a0a4f8525e9bc3899d6769b2c824c26be145b352", - "normalized_sql": "SELECT \"dcim_porttemplatemapping\".\"id\", \"dcim_porttemplatemapping\".\"created\", \"dcim_porttemplatemapping\".\"last_updated\", \"dcim_porttemplatemapping\".\"front_port_position\", \"dcim_porttemplatemapping\".\"rear_port_position\", \"dcim_porttemplatemapping\".\"device_type_id\", \"dcim_porttemplatemapping\".\"module_type_id\", \"dcim_porttemplatemapping\".\"front_port_id\", \"dcim_porttemplatemapping\".\"rear_port_id\" FROM \"dcim_porttemplatemapping\" WHERE \"dcim_porttemplatemapping\".\"module_type_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "495539e720a75ecc000c65ae6b8921f2d1e85333b6805c52188e4e5d8fe0ad07", - "normalized_sql": "SELECT \"dcim_consoleserverporttemplate\".\"id\", \"dcim_consoleserverporttemplate\".\"created\", \"dcim_consoleserverporttemplate\".\"last_updated\", \"dcim_consoleserverporttemplate\".\"name\", \"dcim_consoleserverporttemplate\".\"label\", \"dcim_consoleserverporttemplate\".\"description\", \"dcim_consoleserverporttemplate\".\"device_type_id\", \"dcim_consoleserverporttemplate\".\"module_type_id\", \"dcim_consoleserverporttemplate\".\"type\" FROM \"dcim_consoleserverporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_consoleserverporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_consoleserverporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_consoleserverporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_consoleserverporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4cc97a56a3a1cec051b581eda53108dcbcd1ceb6e872be26dede38ad3383acb6", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_frontport\".\"device_id\" = %s AND \"dcim_frontport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4e45008ca3e13d827ad3b7f2e4847cac28a33e1bc287f34b5b001b84dc88f07d", - "normalized_sql": "SELECT \"dcim_frontport\".\"id\", \"dcim_frontport\".\"created\", \"dcim_frontport\".\"last_updated\", \"dcim_frontport\".\"custom_field_data\", \"dcim_frontport\".\"owner_id\", \"dcim_frontport\".\"device_id\", \"dcim_frontport\".\"name\", \"dcim_frontport\".\"label\", \"dcim_frontport\".\"description\", \"dcim_frontport\".\"_site_id\", \"dcim_frontport\".\"_location_id\", \"dcim_frontport\".\"_rack_id\", \"dcim_frontport\".\"module_id\", \"dcim_frontport\".\"cable_id\", \"dcim_frontport\".\"cable_end\", \"dcim_frontport\".\"cable_connector\", \"dcim_frontport\".\"cable_positions\", \"dcim_frontport\".\"mark_connected\", \"dcim_frontport\".\"type\", \"dcim_frontport\".\"color\", \"dcim_frontport\".\"positions\" FROM \"dcim_frontport\" INNER JOIN \"dcim_device\" ON (\"dcim_frontport\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_frontport\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_frontport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "50094888b766927507c3df8b832ae0247e3281d1d7b96a79cd431c275f2557f4", - "normalized_sql": "SELECT \"dcim_rearporttemplate\".\"id\", \"dcim_rearporttemplate\".\"created\", \"dcim_rearporttemplate\".\"last_updated\", \"dcim_rearporttemplate\".\"name\", \"dcim_rearporttemplate\".\"label\", \"dcim_rearporttemplate\".\"description\", \"dcim_rearporttemplate\".\"device_type_id\", \"dcim_rearporttemplate\".\"module_type_id\", \"dcim_rearporttemplate\".\"type\", \"dcim_rearporttemplate\".\"color\", \"dcim_rearporttemplate\".\"positions\" FROM \"dcim_rearporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_rearporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_rearporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_rearporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_rearporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5103ad9fa2e86db76ded8d55e6ef5e67296c11580ace152c2b8471cd77fd6c11", - "normalized_sql": "SELECT \"dcim_coolingintake\".\"id\", \"dcim_coolingintake\".\"created\", \"dcim_coolingintake\".\"last_updated\", \"dcim_coolingintake\".\"custom_field_data\", \"dcim_coolingintake\".\"owner_id\", \"dcim_coolingintake\".\"diameter\", \"dcim_coolingintake\".\"diameter_unit\", \"dcim_coolingintake\".\"_abs_diameter\", \"dcim_coolingintake\".\"max_flow\", \"dcim_coolingintake\".\"max_flow_unit\", \"dcim_coolingintake\".\"_abs_max_flow\", \"dcim_coolingintake\".\"device_id\", \"dcim_coolingintake\".\"name\", \"dcim_coolingintake\".\"label\", \"dcim_coolingintake\".\"description\", \"dcim_coolingintake\".\"_site_id\", \"dcim_coolingintake\".\"_location_id\", \"dcim_coolingintake\".\"_rack_id\", \"dcim_coolingintake\".\"module_id\", \"dcim_coolingintake\".\"type\", \"dcim_coolingintake\".\"cooling_outflow_id\" FROM \"dcim_coolingintake\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingintake\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingintake\".\"device_id\" = %s AND \"dcim_coolingintake\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingintake\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "52db87eb8cc54e925209657d6bdedad8291dd8abcd5b13c95b3d067b88c12145", - "normalized_sql": "SELECT \"dcim_powerporttemplate\".\"id\", \"dcim_powerporttemplate\".\"created\", \"dcim_powerporttemplate\".\"last_updated\", \"dcim_powerporttemplate\".\"name\", \"dcim_powerporttemplate\".\"label\", \"dcim_powerporttemplate\".\"description\", \"dcim_powerporttemplate\".\"device_type_id\", \"dcim_powerporttemplate\".\"module_type_id\", \"dcim_powerporttemplate\".\"type\", \"dcim_powerporttemplate\".\"maximum_draw\", \"dcim_powerporttemplate\".\"allocated_draw\" FROM \"dcim_powerporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_powerporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_powerporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_powerporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_powerporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 4 - }, - { - "calls": 4, - "fingerprint": "5e5602111f77ddcfcf19adc939764a37d48e2b86ba9bd90e79decb38aba9f5d4", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" WHERE \"dcim_interfacetemplate\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "63ab2ba4feff4d59d8af29fa3aaec465c799ff95bffcd8dfe46cdac5c7cd0552", - "normalized_sql": "SELECT \"dcim_frontporttemplate\".\"id\", \"dcim_frontporttemplate\".\"created\", \"dcim_frontporttemplate\".\"last_updated\", \"dcim_frontporttemplate\".\"name\", \"dcim_frontporttemplate\".\"label\", \"dcim_frontporttemplate\".\"description\", \"dcim_frontporttemplate\".\"device_type_id\", \"dcim_frontporttemplate\".\"module_type_id\", \"dcim_frontporttemplate\".\"type\", \"dcim_frontporttemplate\".\"color\", \"dcim_frontporttemplate\".\"positions\" FROM \"dcim_frontporttemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_frontporttemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_frontporttemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_frontporttemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_frontporttemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", - "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 18, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 18 - }, - { - "calls": 1, - "fingerprint": "721146bae339d1ed64ef270f9dcf97c9c3ee07c573b7940e43cd77bbe94cf9a8", - "normalized_sql": "SELECT \"dcim_modulebaytemplate\".\"id\", \"dcim_modulebaytemplate\".\"created\", \"dcim_modulebaytemplate\".\"last_updated\", \"dcim_modulebaytemplate\".\"name\", \"dcim_modulebaytemplate\".\"label\", \"dcim_modulebaytemplate\".\"description\", \"dcim_modulebaytemplate\".\"device_type_id\", \"dcim_modulebaytemplate\".\"module_type_id\", \"dcim_modulebaytemplate\".\"position\", \"dcim_modulebaytemplate\".\"enabled\" FROM \"dcim_modulebaytemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_modulebaytemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_modulebaytemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_modulebaytemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_modulebaytemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 9 - }, - { - "calls": 29, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 10, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8356a14dda213ab4d06fd04cb17e3d1bd0dbb2539fd7caeed5cec8d04b710186", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T7\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T7\".\"id\") WHERE (\"dcim_interfacetemplate\".\"module_type_id\" = %s AND NOT (\"dcim_interfacetemplate\".\"bridge_id\" IS NULL)) ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T7\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "86c9a63dabc497ca7ced9839a74b18f23683024dfd2abb70d9273e46df31bc82", - "normalized_sql": "UPDATE \"dcim_device\" SET \"interface_count\" = (\"dcim_device\".\"interface_count\" + %s) WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "87f28566b7477eedcdabaed6934e5120ea43394b62cda75939cb1b02f1a723f7", - "normalized_sql": "SELECT \"dcim_powerport\".\"id\", \"dcim_powerport\".\"created\", \"dcim_powerport\".\"last_updated\", \"dcim_powerport\".\"custom_field_data\", \"dcim_powerport\".\"owner_id\", \"dcim_powerport\".\"device_id\", \"dcim_powerport\".\"name\", \"dcim_powerport\".\"label\", \"dcim_powerport\".\"description\", \"dcim_powerport\".\"_site_id\", \"dcim_powerport\".\"_location_id\", \"dcim_powerport\".\"_rack_id\", \"dcim_powerport\".\"module_id\", \"dcim_powerport\".\"cable_id\", \"dcim_powerport\".\"cable_end\", \"dcim_powerport\".\"cable_connector\", \"dcim_powerport\".\"cable_positions\", \"dcim_powerport\".\"mark_connected\", \"dcim_powerport\".\"_path_id\", \"dcim_powerport\".\"type\", \"dcim_powerport\".\"maximum_draw\", \"dcim_powerport\".\"allocated_draw\" FROM \"dcim_powerport\" INNER JOIN \"dcim_device\" ON (\"dcim_powerport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_powerport\".\"device_id\" = %s AND \"dcim_powerport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_powerport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8ffa52f8f2fddcdd73ef6d28993005b512436b8e6244c793a004ab57b424da47", - "normalized_sql": "SELECT \"dcim_consoleport\".\"id\", \"dcim_consoleport\".\"created\", \"dcim_consoleport\".\"last_updated\", \"dcim_consoleport\".\"custom_field_data\", \"dcim_consoleport\".\"owner_id\", \"dcim_consoleport\".\"device_id\", \"dcim_consoleport\".\"name\", \"dcim_consoleport\".\"label\", \"dcim_consoleport\".\"description\", \"dcim_consoleport\".\"_site_id\", \"dcim_consoleport\".\"_location_id\", \"dcim_consoleport\".\"_rack_id\", \"dcim_consoleport\".\"module_id\", \"dcim_consoleport\".\"cable_id\", \"dcim_consoleport\".\"cable_end\", \"dcim_consoleport\".\"cable_connector\", \"dcim_consoleport\".\"cable_positions\", \"dcim_consoleport\".\"mark_connected\", \"dcim_consoleport\".\"_path_id\", \"dcim_consoleport\".\"type\", \"dcim_consoleport\".\"speed\" FROM \"dcim_consoleport\" INNER JOIN \"dcim_device\" ON (\"dcim_consoleport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_consoleport\".\"device_id\" = %s AND \"dcim_consoleport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_consoleport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 29, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 83, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 83 - }, - { - "calls": 4, - "fingerprint": "aff981b6c8be92f9171443802059d6413cdfc11b3bd8acbe71d6f2413e1bf0a3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_cable\".\"id\", \"dcim_cable\".\"created\", \"dcim_cable\".\"last_updated\", \"dcim_cable\".\"custom_field_data\", \"dcim_cable\".\"owner_id\", \"dcim_cable\".\"description\", \"dcim_cable\".\"comments\", \"dcim_cable\".\"type\", \"dcim_cable\".\"status\", \"dcim_cable\".\"profile\", \"dcim_cable\".\"tenant_id\", \"dcim_cable\".\"label\", \"dcim_cable\".\"color\", \"dcim_cable\".\"length\", \"dcim_cable\".\"length_unit\", \"dcim_cable\".\"_abs_length\", \"dcim_cable\".\"bundle_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_cable\" ON (\"dcim_interface\".\"cable_id\" = \"dcim_cable\".\"id\") INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"cable_id\" IS NOT NULL AND \"dcim_interface\".\"id\" IN (%s)) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b04da4698fdb7005b78dd6643edef46dede8402fde444ed9d9edb87bc1b94333", - "normalized_sql": "SELECT \"dcim_coolingintaketemplate\".\"id\", \"dcim_coolingintaketemplate\".\"created\", \"dcim_coolingintaketemplate\".\"last_updated\", \"dcim_coolingintaketemplate\".\"diameter\", \"dcim_coolingintaketemplate\".\"diameter_unit\", \"dcim_coolingintaketemplate\".\"_abs_diameter\", \"dcim_coolingintaketemplate\".\"max_flow\", \"dcim_coolingintaketemplate\".\"max_flow_unit\", \"dcim_coolingintaketemplate\".\"_abs_max_flow\", \"dcim_coolingintaketemplate\".\"name\", \"dcim_coolingintaketemplate\".\"label\", \"dcim_coolingintaketemplate\".\"description\", \"dcim_coolingintaketemplate\".\"device_type_id\", \"dcim_coolingintaketemplate\".\"module_type_id\", \"dcim_coolingintaketemplate\".\"type\" FROM \"dcim_coolingintaketemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_coolingintaketemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_coolingintaketemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_coolingintaketemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_coolingintaketemplate\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b2c47e1b4bd085cfba660e21122dc687cb4f2d1d47fe57f9ef7bc6575ae39d2a", - "normalized_sql": "SELECT \"dcim_coolingoutflow\".\"id\", \"dcim_coolingoutflow\".\"created\", \"dcim_coolingoutflow\".\"last_updated\", \"dcim_coolingoutflow\".\"custom_field_data\", \"dcim_coolingoutflow\".\"owner_id\", \"dcim_coolingoutflow\".\"diameter\", \"dcim_coolingoutflow\".\"diameter_unit\", \"dcim_coolingoutflow\".\"_abs_diameter\", \"dcim_coolingoutflow\".\"device_id\", \"dcim_coolingoutflow\".\"name\", \"dcim_coolingoutflow\".\"label\", \"dcim_coolingoutflow\".\"description\", \"dcim_coolingoutflow\".\"_site_id\", \"dcim_coolingoutflow\".\"_location_id\", \"dcim_coolingoutflow\".\"_rack_id\", \"dcim_coolingoutflow\".\"module_id\", \"dcim_coolingoutflow\".\"type\", \"dcim_coolingoutflow\".\"cooling_intake_id\" FROM \"dcim_coolingoutflow\" INNER JOIN \"dcim_device\" ON (\"dcim_coolingoutflow\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_coolingoutflow\".\"device_id\" = %s AND \"dcim_coolingoutflow\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_coolingoutflow\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "b3ab305922974c2fd771f9993e641e3869ea3fe2cd2d874f5028570629253fb2", - "normalized_sql": "SELECT \"dcim_poweroutlet\".\"id\", \"dcim_poweroutlet\".\"created\", \"dcim_poweroutlet\".\"last_updated\", \"dcim_poweroutlet\".\"custom_field_data\", \"dcim_poweroutlet\".\"owner_id\", \"dcim_poweroutlet\".\"device_id\", \"dcim_poweroutlet\".\"name\", \"dcim_poweroutlet\".\"label\", \"dcim_poweroutlet\".\"description\", \"dcim_poweroutlet\".\"_site_id\", \"dcim_poweroutlet\".\"_location_id\", \"dcim_poweroutlet\".\"_rack_id\", \"dcim_poweroutlet\".\"module_id\", \"dcim_poweroutlet\".\"cable_id\", \"dcim_poweroutlet\".\"cable_end\", \"dcim_poweroutlet\".\"cable_connector\", \"dcim_poweroutlet\".\"cable_positions\", \"dcim_poweroutlet\".\"mark_connected\", \"dcim_poweroutlet\".\"_path_id\", \"dcim_poweroutlet\".\"status\", \"dcim_poweroutlet\".\"type\", \"dcim_poweroutlet\".\"power_port_id\", \"dcim_poweroutlet\".\"feed_leg\", \"dcim_poweroutlet\".\"color\" FROM \"dcim_poweroutlet\" INNER JOIN \"dcim_device\" ON (\"dcim_poweroutlet\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_poweroutlet\".\"device_id\" = %s AND \"dcim_poweroutlet\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_poweroutlet\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 10 - }, - { - "calls": 9, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "c62ed540f63324c21213e996dd685af0487f312211bf306d984d30a8f3d07435", - "normalized_sql": "UPDATE \"dcim_moduletype\" SET \"module_count\" = (\"dcim_moduletype\".\"module_count\" + %s) WHERE \"dcim_moduletype\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 13, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "d81ba5fd08152a61c2b841db50abe221a055e0b228a64235b7688aa70a028377", - "normalized_sql": "INSERT INTO \"dcim_interface\" (\"created\", \"last_updated\", \"custom_field_data\", \"owner_id\", \"device_id\", \"name\", \"label\", \"description\", \"_site_id\", \"_location_id\", \"_rack_id\", \"module_id\", \"cable_id\", \"cable_end\", \"cable_connector\", \"cable_positions\", \"mark_connected\", \"_path_id\", \"enabled\", \"mtu\", \"mode\", \"parent_id\", \"bridge_id\", \"untagged_vlan_id\", \"qinq_svlan_id\", \"vlan_translation_policy_id\", \"primary_mac_address_id\", \"_name\", \"lag_id\", \"type\", \"channels\", \"channel_id\", \"mgmt_only\", \"speed\", \"duplex\", \"wwn\", \"rf_role\", \"rf_channel\", \"rf_channel_frequency\", \"rf_channel_width\", \"tx_power\", \"poe_mode\", \"poe_type\", \"wireless_link_id\", \"vrf_id\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s), (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::smallint[], %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING \"dcim_interface\".\"id\"", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dfc09459911b1c842b496ce435800b2ffec15edbffd9411222d82e14dad005d3", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e1741155964af82029067864d451cd0a4d533411eaa231ccb9eb528fe7c993ea", - "normalized_sql": "SELECT \"dcim_rearport\".\"id\", \"dcim_rearport\".\"created\", \"dcim_rearport\".\"last_updated\", \"dcim_rearport\".\"custom_field_data\", \"dcim_rearport\".\"owner_id\", \"dcim_rearport\".\"device_id\", \"dcim_rearport\".\"name\", \"dcim_rearport\".\"label\", \"dcim_rearport\".\"description\", \"dcim_rearport\".\"_site_id\", \"dcim_rearport\".\"_location_id\", \"dcim_rearport\".\"_rack_id\", \"dcim_rearport\".\"module_id\", \"dcim_rearport\".\"cable_id\", \"dcim_rearport\".\"cable_end\", \"dcim_rearport\".\"cable_connector\", \"dcim_rearport\".\"cable_positions\", \"dcim_rearport\".\"mark_connected\", \"dcim_rearport\".\"type\", \"dcim_rearport\".\"color\", \"dcim_rearport\".\"positions\" FROM \"dcim_rearport\" INNER JOIN \"dcim_device\" ON (\"dcim_rearport\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_rearport\".\"device_id\" = %s AND \"dcim_rearport\".\"module_id\" IS NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, \"dcim_rearport\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 9, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 4, - "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 8, - "fingerprint": "f3989a034980b25973619cb2e5a2ec0b4ccc9f8d6a10ce1722a2c1b5243cbe70", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s) LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 10, - "fingerprint": "f434b2f0a1847eba23dce82fa92784c43e38f0117df7bb2fbf0dbd8490e0addf", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE (\"extras_customfield_object_types\".\"contenttype_id\" = %s AND \"extras_customfield\".\"default\" IS NOT NULL) ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", - "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 374, - "actual_rows_per_work_unit": 45.2, - "actual_rows_times_loops": 226, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 374, - "planner_rows": 852, - "planner_total_cost": 6015.690000000005, - "planner_total_cost_per_work_unit": 1203.138000000001, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 1914, - "shared_hit_blocks_per_work_unit": 382.8, - "shared_read_blocks": 14, - "shared_written_blocks": 1, - "statement_calls": 432, - "statement_calls_per_work_unit": 86.4, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 33638, - "wal_fpi": 0, - "wal_records": 461, - "work_units": 5 - } - }, - "description": "Deferred channel reconciliation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 0, - "module_bays": 1, - "modules_before": 0 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 800.106797, - "p95_ms": 849.2166795, - "samples_ns": [ - 798429347, - 847908567, - 811773803, - 772250461, - 852268942, - 806763307, - 805493153, - 793866381, - 803560476, - 800106797, - 749309492, - 748790722, - 771356928, - 830383456, - 754422024 - ] - }, - "wall": { - "median_ms": 1057.152016, - "p95_ms": 1122.9117425999998, - "samples_ns": [ - 1057152016, - 1107073929, - 1072809088, - 1022267048, - 1144104734, - 1056955472, - 1065056720, - 1043849186, - 1094843735, - 1092406596, - 993057623, - 962628581, - 1017005280, - 1113829032, - 1020797355 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 801.017688, - "p95_ms": 805.7952858, - "samples_ns": [ - 799076947, - 806326130, - 801017688 - ] - }, - "wall": { - "median_ms": 1058.255403, - "p95_ms": 1064.7612726, - "samples_ns": [ - 1058255403, - 1057002281, - 1065484147 - ] - } - } - }, - "name": "module.complete_model_save.reconciliation", - "semantic_result": { - "interface_names": [ - "3:1", - "3:2", - "3:3", - "3:4", - "et-0/0/3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 36.08999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 36, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", - "indexes": [], - "node_types": { - "Limit": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 24.56, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 70, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 3140, - "wal_fpi": 0, - "wal_records": 44 - }, - "calls": 2, - "fingerprint": "0705ea8939d1a0e0d45d0bb2768ca009f23502642eb2bb6b3f357c1b8888602c", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "ModifyTable": 2 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 378, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 35, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1570, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 12.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 3274, - "wal_fpi": 0, - "wal_records": 34 - }, - "calls": 1, - "fingerprint": "0922f5e01bd6a9526f36fb2c1c99efa08a6cdcaa8d0f3a8a58590befe368c094", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 378, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 48, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 3274, - "WAL FPI": 0, - "WAL Records": 34 - }, - "Triggers": [] - }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "0c10c8311b3312b81ecf8ef0878b5526934fc9619f600b31093179dfb38ff798", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1c08a9a5f5322d5da43eca55ae8ec74cb313aea05ae8ed8b95c32a0883501414" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 21.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 21, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0c3c3db888027a7cb714ba6460d5833f6acc7de31821030b16b976ad0e83427a", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 15.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 18.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 284.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "0fdfd4894c961164b9852f35ea983909dcef45ce74351e24a74dffab000fd471", - "indexes": [ - "dcim_interface_vdcs_interface_id_6d58dbaf", - "dcim_virtua_name_079d4d_idx" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Incremental Sort": 4, - "Index Scan": 4, - "Materialize": 4, - "Nested Loop": 4 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = ? ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 154, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_virtualdevicecontext.id = dcim_interface_vdcs.virtualdevicecontext_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 154, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_virtualdevicecontext", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_virtua_name_079d4d_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 90, - "Plan Width": 154, - "Relation Name": "dcim_virtualdevicecontext", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 45.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_vdcs", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_vdcs_interface_id_6d58dbaf", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_vdcs", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.36, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 70.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_virtualdevicecontext.name" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_virtualdevicecontext.name COLLATE natural_sort", - "dcim_virtualdevicecontext.id" - ], - "Startup Cost": 12.66, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 71.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "15210ce5e4a77138fbaba23894a57e767a0a501f41312888ff813544d66a3a0c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 12.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 35, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1467, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "2e057f8b0655da887525cd3e734b188565d5c3ca1ee16a4dad45340647812738", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = '?'::timestamptz, \"name\" = '?', \"_name\" = '?' WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 378, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 35, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1467, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "5d549d2907221c2998be7ce2920d5a83cdd75ff184bcd1fde1b2d40b61ea947f" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 20.049999999999997, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 2520, - "wal_fpi": 0, - "wal_records": 32 - }, - "calls": 8, - "fingerprint": "3afd713890e488c21580e793d6c0417d7bb1c44685678c39e7d9c6c3fd02fece", - "indexes": [], - "node_types": { - "ModifyTable": 8, - "Result": 8 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 315, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 34.41, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 28, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3e412f8824ff5164543c7744bed638ab38d61871e94ade7a21f187802fa3e84c", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 981, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 26, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 34.32, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 67.4, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "4243c2cc34631c6006d3185cf384e0af294dad750c60c1746d4200bd1354d228", - "indexes": [ - "extras_tag_pkey" - ], - "node_types": { - "Index Scan": 4, - "Nested Loop": 8, - "Seq Scan": 8, - "Sort": 4, - "Unique": 4 - }, - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?' AND \"extras_taggeditem\".\"object_id\" = ?) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Unique", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(extras_taggeditem.content_type_id = django_content_type.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 916, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 920, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_taggeditem", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 12, - "Relation Name": "extras_taggeditem", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 2.96, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_tag", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_taggeditem.tag_id)", - "Index Name": "extras_tag_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 916, - "Relation Name": "extras_tag", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.81, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_tag.weight", - "extras_tag.name", - "extras_tag.slug", - "extras_tag.created", - "extras_tag.last_updated", - "extras_tag.owner_id", - "extras_tag.id", - "extras_tag.color", - "extras_tag.description" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 16.82, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 16.82, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.85, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0e323f02ad10216f2644df522dcddeedd80e40f36461994dba8e4e2f1f1f1398" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 20.49, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "42fd8c58b212385d0dfb0ef03b938cf4bf5baa6e89e8dc02ea929f3f3e917285", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 20.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "43a155bb22d56d3d42c28aca980c1341c463f0d451d8ef5ce3bc90e3e80451f2", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 98, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 3.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "45bf8d6c0ee76807d0df879c6c274fccec89426f89da8a8588953b733c889a9a", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 141, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 141, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 121, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 11.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.71, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 9, - "Sort": 9 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 23, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 184, - "planner_total_cost": 932.1899999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 23, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 23, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 23, - "Bitmap Index Scan": 23, - "Hash": 23, - "Hash Join": 23, - "Index Scan": 46, - "Nested Loop": 46, - "Seq Scan": 23, - "Sort": 23 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 32.64, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 12, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 216, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 4, - "fingerprint": "4ebe96fcf1fa62ccb17cd925d5b56db555732a443856816365f2a0da85e41211", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 4, - "ModifyTable": 4 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 54, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 49.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "64719873e55e7a6844626de5a39d18bb685264abaf2d04418c61140a8c3c45d0", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "953072e402261e65dbe7d9d3990a1b8b413b1a5c39ae69cc656386fafeb9c0fd" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 119.07000000000002, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 45, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 9, - "Limit": 9, - "Nested Loop": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 3, - "planner_total_cost": 34.32, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 28, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "71cd61beb47e4c991f5b0413e95063631f65c7e9cce807ccddcedc2b358a23c8", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 3, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 3, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((channel_id IS NOT NULL) AND (parent_id = ?))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 3, - "Plan Width": 981, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 26, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 34.26, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b89e99a83fa6332e74035734aed7c8a581d5bd37e6caeaa7d0bc4a3d05cd51bd" - }, - { - "aggregate": { - "actual_loops": 10, - "actual_rows_times_loops": 10, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 10, - "planner_total_cost": 81.4, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 20, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 10, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 10, - "Limit": 10 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 50, - "actual_rows_times_loops": 50, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 50, - "planner_total_cost": 686.5000000000005, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 250, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 50, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 50, - "Limit": 50, - "Nested Loop": 50, - "Seq Scan": 50 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 12.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 34, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1562, - "wal_fpi": 0, - "wal_records": 22 - }, - "calls": 1, - "fingerprint": "85d8935cd4aeaeb40b6de79ac95d23c002bbc55c37146291d8a032d7ed7ef309", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = ?, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 34, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1562, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "670235ef88b9c847e8064b74f98f62d0d59b64e7fe4a20f11398de5303e80c38" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 32.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "956343b9f4df537450a85ea2764a7e45dd4224a2fe8f06d28b8c73d0682aed37", - "indexes": [ - "dcim_interface_unique_device_name" - ], - "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 32.68, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "9a47e5aaab00ae739a789bbbf5707adc760d155d230e75c9987ee9e63bcfcb03", - "indexes": [ - "dcim_cabletermination_unique_termination" - ], - "node_types": { - "Index Only Scan": 4, - "Limit": 4 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = ? AND \"dcim_cabletermination\".\"termination_type_id\" = ?) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_cabletermination", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((termination_type_id = ?) AND (termination_id = ?))", - "Index Name": "dcim_cabletermination_unique_termination", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_cabletermination", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "39487d55eaf0363b2b77bc0041f41159fc97727684f8cf1fbf2a8246558c7d0d" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 36.839999999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 117, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4515, - "wal_fpi": 0, - "wal_records": 66 - }, - "calls": 3, - "fingerprint": "9be7d17b07d8163e2df141c8b61f14f7bc4674fd764a5ca04eb7e9f4a94c79e6", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 3, - "Bitmap Index Scan": 3, - "ModifyTable": 3 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 3.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 39, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1505, - "WAL FPI": 0, - "WAL Records": 22 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 15.049999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 15, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", - "indexes": [], - "node_types": { - "Limit": 5, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.29, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9f6d1c068ddcacef5e49e9dc4abff6ba7a8d5691ad921b40085ec7b33cdd60c3", - "indexes": [ - "dcim_interface_unique_parent_channel_id" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1, - "Result": 1 - }, - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = ? AND \"dcim_interface\".\"channel_id\" > ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Parent Relationship": "InitPlan", - "Plan Rows": 1, - "Plan Width": 2, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((parent_id = ?) AND (channel_id IS NOT NULL) AND (channel_id > ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Backward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.26, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.26, - "Subplan Name": "InitPlan 1", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "63aa42580a2881e2ab86e9000c0a3b5baa5ddaad80ccd1f6cbabea538145e448" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 4, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 4, - "planner_total_cost": 34.41, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 36, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 270, - "wal_fpi": 0, - "wal_records": 5 - }, - "calls": 1, - "fingerprint": "a2418f81c76d295e96fcdb187335d180785169f9e4f934f0f998a2450b88f3f8", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Incremental Sort": 1, - "Index Scan": 1, - "LockRows": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?, ?, ?, ?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "LockRows", - "Parallel Aware": false, - "Plan Rows": 4, - "Plan Width": 2068, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 26, - "Peak Sort Space Used": 26 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 2068, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 4, - "Plan Width": 2068, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 863, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ANY ('?'::bigint[]))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 4, - "Plan Width": 987, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 26, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 26.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 28, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 34.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 36, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 34.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 34.41, - "WAL Buffers Full": 0, - "WAL Bytes": 270, - "WAL FPI": 0, - "WAL Records": 5 - }, - "Triggers": [] - }, - "statement_fingerprint": "5a89ac40ea2158136d2430947d3e51b52a7e4c303761d8ebab8545a1bcdc4156" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ae6e2cd5e3a65061673106ab9dee5472050012a644551b29a51f49ce5410838d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "066c1a9779f2c81a547e8fa3206eda163b947fc8f13310eb6aad89565903f5f2" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 12.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1658, - "wal_fpi": 0, - "wal_records": 23 - }, - "calls": 1, - "fingerprint": "b11991d58e1516281563f75a49c626a6d4ee799759a4fac7eab9f21fcff42efb", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = ?, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = ?, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 3.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 40, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1658, - "WAL FPI": 0, - "WAL Records": 23 - }, - "Triggers": [] - }, - "statement_fingerprint": "11e5ffa4ed6effd356088e553e97a798598edbe7e13ac04121de4c94e702882c" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 24.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "bb7653d521da9bfecac19c5537129b9aab47fa03e8d2d3b6966e3f7b63bbbf16", - "indexes": [ - "dcim_interface_unique_parent_channel_id" - ], - "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((parent_id = ?) AND (channel_id = ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 163.92, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "c5e32a0f839e5a3744b4577904c620fef8c7aac2c90fab1935c3363670cfbc3a", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1227, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 981, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 20.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 398.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "cb3f5704535d083303ac1ea29bf989c9092048d3e31b3cfb02e89a720b11b60e", - "indexes": [ - "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "wireless_wi_ssid_64a9ce_idx" - ], - "node_types": { - "Index Only Scan": 8, - "Nested Loop": 4 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = ? ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 90, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "wireless_wirelesslan", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Name": "wireless_wi_ssid_64a9ce_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 60, - "Plan Width": 90, - "Relation Name": "wireless_wirelesslan", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 45.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_wireless_lans", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 0, - "Index Cond": "((interface_id = ?) AND (wirelesslan_id = wireless_wirelesslan.id))", - "Index Name": "dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_interface_wireless_lans", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.91, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.29, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 99.56, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "1b946a1c81ff4dc875b8aded30984a6648a0171d923ca0f754253faa92392872" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 32.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "cc593cafb298069c7854bf668f0d10932a2151983d3668420e5c7cfb54d34fb4", - "indexes": [ - "dcim_interface_unique_device_name" - ], - "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 72, - "planner_total_cost": 129.33, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 9, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 9, - "Bitmap Index Scan": 9 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 32.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "e054dff730b3f4426c8d7cb6d1c2ae4a8b5f0c9f285b24365047221d9b2cffee", - "indexes": [ - "dcim_interface_unique_device_name" - ], - "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 12.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 31.75, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 21, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e1d3c683afb61d257b340778e467eb63248a5cc5d2b8a816d53e46bf7f29ae5d", - "indexes": [ - "dcim_devicetype_pkey", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 2, - "Materialize": 1, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 730, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 5, - "Plan Width": 694, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 254, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.3, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 5, - "Plan Width": 440, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 5, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Maximum Storage": 17, - "Node Type": "Materialize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Storage": "Memory", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.68, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.73, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.75, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 5, - "actual_rows_times_loops": 5, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 5, - "planner_total_cost": 40.7, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 10, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 5, - "fingerprint": "ea95b5da11f0b47497d548b8388235f1ff74d64d6e4a7d683dccdccef45f2916", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 5, - "Limit": 5 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 1, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 24.58, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "ef078615183a2af4c7a7cf6542c85158d0f32b5e3215f5982636460dfcafe135", - "indexes": [ - "dcim_interface_unique_parent_channel_id" - ], - "node_types": { - "Bitmap Heap Scan": 2, - "Bitmap Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = ? AND \"dcim_interface\".\"parent_id\" = ? AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 2, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((parent_id = ?) AND (channel_id = ?))", - "Index Name": "dcim_interface_unique_parent_channel_id", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((parent_id = ?) AND (channel_id = ?))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "213af8fb85cb090c5bfead4dacb50c0024847fe4ba347682f3ae3ac50dfc95cc" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f9c75c7c0b6a4c79ed9f5bf5fa1407b8b3db30b7fee5eac241d6389b0d63400e", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b93477eb000d9d6b5bc6b1f9eb24d5ba4f70149864f12f8880c1d236d3d4ec12" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 140.72, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "fa6b84bd49a2ba4dbd490588eff457bf662c528bdaf0265d29a7b5f22085aeba", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "dcim_site_pkey", - "ipam_vlangroup_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Hash": 4, - "Hash Join": 4, - "Index Scan": 8, - "Nested Loop": 8, - "Seq Scan": 4, - "Sort": 4 - }, - "normalized_sql": "DECLARE \"_django_curs_?_sync_?\" NO SCROLL CURSOR FOR SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ? ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 253, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 35, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(ipam_vlan.id = dcim_interface_tagged_vlans.vlan_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 26, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "ipam_vlan", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 80, - "Plan Width": 26, - "Relation Name": "ipam_vlan", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.8, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ipam_vlan.site_id)", - "Index Name": "dcim_site_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 25, - "Relation Name": "dcim_site", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.44, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.6, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.34, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "ipam_vlangroup", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ipam_vlan.group_id)", - "Index Name": "ipam_vlangroup_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 226, - "Relation Name": "ipam_vlangroup", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.71, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.74, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_site.name COLLATE natural_sort", - "ipam_vlangroup.name COLLATE natural_sort", - "ipam_vlangroup.id", - "ipam_vlan.vid", - "ipam_vlan.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 35.16, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "c3f4afe3292f0b0d5869f25ee24c67f72fb8cef81ea02666ab4e03543555f26f" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "064a2481c0c8fd2040b9bc3e68a3dd7976713f87e1d65e5b39c79c55506128c5", - "normalized_sql": "SELECT \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\" FROM \"dcim_modulebay\" WHERE \"dcim_modulebay\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 5, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "213946e5dd7cb3833acd15cf2a690b74ca1dbb458cf02a9f913784ad9bd1be09", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 9, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 5 - }, - { - "calls": 4, - "fingerprint": "34fa886021ee91058823319e0615337e17cc62c839cb439ab0847c3e508bea7f", - "normalized_sql": "SELECT \"ipam_vlan\".\"id\" FROM \"ipam_vlan\" INNER JOIN \"dcim_interface_tagged_vlans\" ON (\"ipam_vlan\".\"id\" = \"dcim_interface_tagged_vlans\".\"vlan_id\") LEFT OUTER JOIN \"dcim_site\" ON (\"ipam_vlan\".\"site_id\" = \"dcim_site\".\"id\") LEFT OUTER JOIN \"ipam_vlangroup\" ON (\"ipam_vlan\".\"group_id\" = \"ipam_vlangroup\".\"id\") WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s ORDER BY \"dcim_site\".\"name\" ASC, \"ipam_vlangroup\".\"name\" ASC, \"ipam_vlangroup\".\"id\" ASC, \"ipam_vlan\".\"vid\" ASC, \"ipam_vlan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "3a3edb8f82a248ca8867299db553b168bf38c79f9627843c8f06411f60544c88", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_cabletermination\" WHERE (\"dcim_cabletermination\".\"termination_id\" = %s AND \"dcim_cabletermination\".\"termination_type_id\" = %s) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "40c7e105b162809cce37843355d3b6a26dd4e24176303ab099c7529247ad04de", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE \"dcim_interface\".\"id\" = %s LIMIT ?", - "rows_affected": 4 - }, - { - "calls": 23, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 9 - }, - { - "calls": 9, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "6b0a62b0c76a6b299d24c4bafd9a2847146185d9bd401b86a0867811e93dae53", - "normalized_sql": "SELECT \"dcim_virtualdevicecontext\".\"id\" FROM \"dcim_virtualdevicecontext\" INNER JOIN \"dcim_interface_vdcs\" ON (\"dcim_virtualdevicecontext\".\"id\" = \"dcim_interface_vdcs\".\"virtualdevicecontext_id\") WHERE \"dcim_interface_vdcs\".\"interface_id\" = %s ORDER BY \"dcim_virtualdevicecontext\".\"name\" ASC, \"dcim_virtualdevicecontext\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 10, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 10 - }, - { - "calls": 1, - "fingerprint": "73f6dc2cc5ee2637482068d86e22d03273248eae9d93abdda90d5be8a2be2daf", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 9, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 9 - }, - { - "calls": 29, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 29, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 4, - "fingerprint": "a3aa512b500b9d61a0181378d9ea24b29e209d4f1ecd58df199a3d5e04782002", - "normalized_sql": "SELECT DISTINCT \"extras_tag\".\"name\", \"extras_tag\".\"slug\", \"extras_tag\".\"created\", \"extras_tag\".\"last_updated\", \"extras_tag\".\"owner_id\", \"extras_tag\".\"id\", \"extras_tag\".\"color\", \"extras_tag\".\"description\", \"extras_tag\".\"weight\" FROM \"extras_tag\" INNER JOIN \"extras_taggeditem\" ON (\"extras_tag\".\"id\" = \"extras_taggeditem\".\"tag_id\") INNER JOIN \"django_content_type\" ON (\"extras_taggeditem\".\"content_type_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s AND \"extras_taggeditem\".\"object_id\" = %s) ORDER BY \"extras_tag\".\"weight\" ASC, \"extras_tag\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 50, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 50 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 5 - }, - { - "calls": 5, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d4b627481b5e2cbf821fbf376aa19e1bb6570786f14d11573e98df3e879e9fe8", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s, %s, %s, %s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC FOR UPDATE", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "e09bebfefd956924f6829c4a96987079ad26b51fede325c2a6633d9b368317d2", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"channel_id\" = %s AND \"dcim_interface\".\"parent_id\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 5, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 5 - }, - { - "calls": 9, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 4, - "fingerprint": "efeaac4a93269ac77e207464b82ea2da3d4b44585300d56176ef5907ff180a06", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"last_updated\" = %s, \"name\" = %s, \"_name\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 4 - }, - { - "calls": 1, - "fingerprint": "f06caf45c22069d0ce4eabb8e71bc651221ea4e71dae01e8e33cb06c2638338e", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" IS NOT NULL) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 4 - }, - { - "calls": 4, - "fingerprint": "f8d19cd7b5a3700120e483c3515cf9c39c663906887c95aea525eba918ea9e7f", - "normalized_sql": "SELECT \"wireless_wirelesslan\".\"id\" FROM \"wireless_wirelesslan\" INNER JOIN \"dcim_interface_wireless_lans\" ON (\"wireless_wirelesslan\".\"id\" = \"dcim_interface_wireless_lans\".\"wirelesslan_id\") WHERE \"dcim_interface_wireless_lans\".\"interface_id\" = %s ORDER BY \"wireless_wirelesslan\".\"ssid\" ASC, \"wireless_wirelesslan\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd32247672ce8dc1287579ff337506d7cea6a75595a4699acc98b14c8ce7d29a", - "normalized_sql": "SELECT MAX(\"dcim_interface\".\"channel_id\") AS \"channel_id__max\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"parent_id\" = %s AND \"dcim_interface\".\"channel_id\" > %s)", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 221, - "actual_rows_per_work_unit": 27.4, - "actual_rows_times_loops": 137, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 221, - "planner_rows": 524, - "planner_total_cost": 3884.15, - "planner_total_cost_per_work_unit": 776.83, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1164, - "shared_hit_blocks_per_work_unit": 232.8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 279, - "statement_calls_per_work_unit": 55.8, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 18941, - "wal_fpi": 0, - "wal_records": 255, - "work_units": 5 - } - }, - "description": "Deferred channel reconciliation", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 5, - "interfaces_before": 5, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 604.291623, - "p95_ms": 640.0331229, - "samples_ns": [ - 591296627, - 581891731, - 590358808, - 577589411, - 620252718, - 587332736, - 594162182, - 606794725, - 611869867, - 629747474, - 642170316, - 604291623, - 607853137, - 639117183, - 597804373 - ] - }, - "wall": { - "median_ms": 793.477904, - "p95_ms": 850.495817, - "samples_ns": [ - 776667814, - 757998065, - 765075834, - 754143761, - 805048410, - 793477904, - 772965441, - 795973567, - 840351878, - 828934708, - 841742207, - 778097521, - 806016092, - 870920907, - 777890130 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 645.144269, - "p95_ms": 651.5004892999999, - "samples_ns": [ - 652206736, - 645144269, - 628523366 - ] - }, - "wall": { - "median_ms": 826.621157, - "p95_ms": 832.1735368999999, - "samples_ns": [ - 832790468, - 826621157, - 817396675 - ] - } - } - }, - "name": "module.direct_callback.reconciliation", - "semantic_result": { - "interface_names": [ - "3:1", - "3:2", - "3:3", - "3:4", - "et-0/0/3" - ], - "interfaces_after": 5 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 45, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1430, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "00685b0543ee8173ab522e12e049489bf5ebb80e9ff76a7ad597a93905550b4c", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 45, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1430, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0aec08a209907d95ef005ef34cc8b388ef5956d9e4b0bddfb0f210ad849b479e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "((id > ?) AND (id = ?))", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0fd70dee23075f61e903c6213865a3716cb55a296527729a166f09226a2eb0d9", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_devicebay_unique_device_name" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_devicebay", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_devicebay_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_devicebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "309131009a04f8af46c29da2903ee003d1a6d55a02c37ee24dd51eac2b3c793b", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 46, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 55, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "35edc223229aecec068d5880a7db8e587245a3e3765f27c0f3b550ca1f2d48f9", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 774, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 564, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 556, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 528, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 44, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 46, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 48, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 51, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 52, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 55, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 55, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.66, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.38, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 2, - "Sort": 2 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 32, - "planner_total_cost": 162.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 4, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 4, - "Bitmap Index Scan": 4, - "Hash": 4, - "Hash Join": 4, - "Index Scan": 8, - "Nested Loop": 8, - "Seq Scan": 4, - "Sort": 4 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 43.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4d9916cc53dadd68dd3e43f697226bf538ba7961d85475fa5c998591a7e0a691", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" - ], - "node_types": { - "Hash": 1, - "Hash Join": 1, - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2994, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2863, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2791, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2084, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", - "Inner Unique": true, - "Join Type": "Right", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1895, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(device_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.4, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 43.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.0, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5e370b38e341e0226b32a4d4e6568428f855b2851d5b9447dd8a62b1d740e753", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", - "Async Capable": false, - "Disabled": false, - "Filter": "(job_id = '?'::uuid)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "core_job", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6562425cf1d234f623f33e613399a82eb396fb7d4de9566ead0193e45a2421af", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 11.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", - "indexes": [], - "node_types": { - "Result": 1 - }, - "normalized_sql": "SELECT pg_advisory_lock(?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.23, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "699a57b943ae9044d684680365d371e478cd150628e463b25ea9aaf1c483b8eb", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 3.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 3.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 8, - "shared_hit_blocks": 10, - "shared_read_blocks": 8, - "shared_written_blocks": 1, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 941, - "wal_fpi": 6, - "wal_records": 8 - }, - "calls": 1, - "fingerprint": "6fa637eae63b33c652b9332589ca3c5dc175cd16bc982998ddb457d4023f77c6", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_job", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 984, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 984, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 99, - "WAL FPI": 0, - "WAL Records": 1 - } - ], - "Relation Name": "core_job", - "Shared Dirtied Blocks": 8, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 8, - "Shared Written Blocks": 1, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 941, - "WAL FPI": 6, - "WAL Records": 8 - }, - "Triggers": [] - }, - "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", - "indexes": [], - "node_types": { - "Result": 1 - }, - "normalized_sql": "SELECT pg_advisory_unlock(?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 9, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 123.57000000000002, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 45, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 9, - "Limit": 9, - "Nested Loop": 9, - "Seq Scan": 9 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 41, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8db132cb7fb9f6d277c1b47c0183a3df300326f227d13abe528c94cee82e5faa", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 40, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 41, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 41, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 11, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "97b5fa96c9cf664b0e108230bb7240da416dcf62c0264d9229f618b719988111", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "97f18453092460d3cfc02cef47252029d1c898446e962867f08f634501875467", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 40, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 40, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 25.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 11.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "a1246e54219362cefb9c2f6a3c8a727b98948e5a42bb4890bce6d0b13f1d9e01", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 11.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 11.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.02, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "b8b68461ecb26b63b61697e1dba257cf6fd8a57da9b9bd52d2111a6d238eaad4", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 984, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 984, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", - "Async Capable": false, - "Disabled": false, - "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 984, - "Relation Name": "core_job", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.0, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 0.01, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.01, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1735, - "wal_fpi": 0, - "wal_records": 23 - }, - "calls": 1, - "fingerprint": "deb1a179ea341060c677d4d152ebb01cbd16b149e6f51dc3fa4e7a80c7d2c7e7", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1684, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 30, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 1735, - "WAL FPI": 0, - "WAL Records": 23 - }, - "Triggers": [] - }, - "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 72, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.47, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f4193255e9202d040b4de2066de4f497244ef0f73841a5b7c7c64f0e14c25f57", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\" FROM \"django_content_type\" WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 22, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fcdbbc1a460ff533aab00032eaa2990f7623aa9fa31e2b3836989989b51ab90d" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.3, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "00a48dac0e50d45e8aa347f6c079795d6c0cb09d3dffe4ee068f2874e8b385ed", - "normalized_sql": "SELECT %s AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = %s LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1919ddc31043c19525b5f3e5c2021bb0aaa0a6791b7391fe41aee034f5603368", - "normalized_sql": "SELECT pg_advisory_lock(%s)", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "22b52f8fdd8b594e0f40265bea1076c4d7f0bd72bd33326a9a504ad5c757b278", - "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" > %s) ORDER BY ? ASC LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "26c8d42cff4acd7965798ced1cb2302a0de077fe35079bf687fd56e33ec956ab", - "normalized_sql": "SELECT pg_advisory_unlock(%s)", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3b2fd5e645edcb20006633441140723a008e260780c415f90ddb03e67f632970", - "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"description\" = %s, \"comments\" = %s, \"_config_context_data\" = %s, \"_config_context_generation\" = %s, \"local_context_data\" = %s, \"config_template_id\" = %s, \"device_type_id\" = %s, \"role_id\" = %s, \"tenant_id\" = %s, \"platform_id\" = %s, \"name\" = %s, \"serial\" = %s, \"asset_tag\" = %s, \"site_id\" = %s, \"location_id\" = %s, \"rack_id\" = %s, \"position\" = %s, \"face\" = %s, \"status\" = %s, \"airflow\" = %s, \"cooling_method\" = %s, \"primary_ip4_id\" = %s, \"primary_ip6_id\" = %s, \"oob_ip_id\" = %s, \"cluster_id\" = %s, \"virtual_chassis_id\" = %s, \"vc_position\" = %s, \"vc_priority\" = %s, \"latitude\" = %s, \"longitude\" = %s, \"console_port_count\" = %s, \"console_server_port_count\" = %s, \"power_port_count\" = %s, \"power_outlet_count\" = %s, \"cooling_intake_count\" = %s, \"cooling_outflow_count\" = %s, \"interface_count\" = %s, \"front_port_count\" = %s, \"rear_port_count\" = %s, \"device_bay_count\" = %s, \"module_bay_count\" = %s, \"inventory_item_count\" = %s WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3c389490b11937715c3d0964bc30ec7b13e51db1c13a2af0099105f714faa656", - "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = %s, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + %s) WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" IN (%s))", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5d7a97e86f815b27d234df91ae479de2138442699e863f4ff28d73aa304eb1fd", - "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::jsonb[]) RETURNING \"core_job\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "821b0cf47bc104eac1c0be61b6590a5102a2aaae1aa60ba1f6226bf8142dba44", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 4, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 9, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 9 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d4343dc9365f085be0168ec3e6c7882c1d9fbde207387e0851ebf489bfc0755d", - "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "e236397f933fab343403e0aa5aa12607f0cf386121c81a7e3d60ec370c91425e", - "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = %s AND \"core_job\".\"status\" IN (%s, %s, %s)) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "e8beb2d9a86e2a0de01ccc5e25be92b4a2f7a63bdf22245d7ec80445711189ac", - "normalized_sql": "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\" = %s) LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 51, - "actual_rows_per_work_unit": 33.0, - "actual_rows_times_loops": 33, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 51, - "planner_rows": 83, - "planner_total_cost": 637.31, - "planner_total_cost_per_work_unit": 637.31, - "shared_dirtied_blocks": 8, - "shared_hit_blocks": 356, - "shared_hit_blocks_per_work_unit": 356.0, - "shared_read_blocks": 9, - "shared_written_blocks": 1, - "statement_calls": 59, - "statement_calls_per_work_unit": 59.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 4504, - "wal_fpi": 6, - "wal_records": 57, - "work_units": 1 - } - }, - "description": "Virtual chassis reapply across 1 module(s)", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 110.495825, - "p95_ms": 119.7066149, - "samples_ns": [ - 109777398, - 111983768, - 119970328, - 118012325, - 119593595, - 119573780, - 108285709, - 110495825, - 110292717, - 110925191, - 102661309, - 105347765, - 108546724, - 112510879, - 107033063 - ] - }, - "wall": { - "median_ms": 148.061908, - "p95_ms": 158.0434304, - "samples_ns": [ - 146208017, - 151215876, - 160311569, - 154819622, - 155376092, - 157071371, - 143046480, - 146692443, - 148061908, - 149449883, - 139893637, - 141751484, - 144368095, - 150788054, - 141006666 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 116.387196, - "p95_ms": 123.7461684, - "samples_ns": [ - 124563832, - 116387196, - 111859461 - ] - }, - "wall": { - "median_ms": 154.903659, - "p95_ms": 158.9091621, - "samples_ns": [ - 159354218, - 154903659, - 145844278 - ] - } - } - }, - "name": "vc.complete_model_save.reapply_1", - "semantic_result": { - "interface_names": [ - "et-2/0/1" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.27, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 45, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1430, - "wal_fpi": 0, - "wal_records": 21 - }, - "calls": 1, - "fingerprint": "00685b0543ee8173ab522e12e049489bf5ebb80e9ff76a7ad597a93905550b4c", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 45, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 1430, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0dd0a3f549d437a344084ad3b9be48b24915c441b22400ab0e51ddfb56a671bc", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 7, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1902cd7db194a7022113914acb274368bce95f8aa961dcbc13fd935ff803e866", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 43.43, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1ea74ce1d752574a113070c8d12b44fdfb24be2c4fdefd5d7ba227368e864a66", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" - ], - "node_types": { - "Hash": 1, - "Hash Join": 1, - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2994, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2863, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2791, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2084, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", - "Inner Unique": true, - "Join Type": "Right", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1895, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(device_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 22.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 9, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.24, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.4, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.41, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 43.42, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "301e9b857b959819835d3bd4345aa8a7c31dc1a5327ce26999be2a88d3e86412", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.32, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 4.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3eeebbb63599e9f7d97ed5c048ce0f2df80c4b9a3c94d4869f79ae4dc1efe897", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.19, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 24, - "planner_total_cost": 121.59, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 3, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 3, - "Bitmap Index Scan": 3, - "Hash": 3, - "Hash Join": 3, - "Index Scan": 6, - "Nested Loop": 6, - "Seq Scan": 3, - "Sort": 3 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 13.23, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 2, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "7496f1e7fd689342e504e9899353964426e5227d4634490e020dfbfdfe94ef6e", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 6, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 6, - "planner_total_cost": 82.38000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 30, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 6, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 6, - "Limit": 6, - "Nested Loop": 6, - "Seq Scan": 6 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 25.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "99c7305ba7e47188a77c0c4b2cb8c402f4a05ccb65f65e6518b02beffee53763", - "indexes": [], - "node_types": { - "Limit": 1, - "Nested Loop": 6, - "Seq Scan": 7 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".parent_id = \"T6\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 829, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T3\".module_bay_id = \"T4\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 21, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 21.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 25, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 25.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9df576142daa5f4e6bda594447a93eb923257d787e469a8f08ac0271dea342e9", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.35, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c12f66423fd3ed8d7f927fece2c904e0a959cf025dbdb8f21e542373fa187492", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Incremental Sort": 1, - "Index Only Scan": 1, - "Index Scan": 1, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 2, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.3, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.35, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c3c7b17feaad93846aaf8a7102710fa97e0ad18ce97a0bf9b769d52516289501", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c40a26f5921b1875bb7a87ab6a2ccf476bfdeb3d218ce4204f1ceb44da67c1cc", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 14.37, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 1, - "Bitmap Index Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 31.66, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 14, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e1b477be406353a505d6f163629360b52b44c43d8580f7740271eed83ff34c47", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 3, - "Nested Loop": 5, - "Seq Scan": 3, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 774, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 564, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 556, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 528, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 14, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 31.66, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 31.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 72, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 2, - "planner_total_cost": 16.3, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 2, - "fingerprint": "ffcc1241ffed6f54be1ae6c517cbdad551ccc81d3b49e807b9a38ee68f31a173", - "indexes": [ - "dcim_interface_device_id_359c6115" - ], - "node_types": { - "Index Scan": 2, - "Limit": 2 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Filter": "((id <> ?) AND ((name)::text = '?'::text))", - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_interface_device_id_359c6115", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 2, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 2 - }, - { - "calls": 1, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 2, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 3, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 6, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 6 - }, - { - "calls": 1, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 35, - "actual_rows_per_work_unit": 24.0, - "actual_rows_times_loops": 24, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 35, - "planner_rows": 62, - "planner_total_cost": 496.0200000000001, - "planner_total_cost_per_work_unit": 496.0200000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 205, - "shared_hit_blocks_per_work_unit": 205.0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "statement_calls": 41, - "statement_calls_per_work_unit": 41.0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1749, - "wal_fpi": 0, - "wal_records": 25, - "work_units": 1 - } - }, - "description": "Virtual chassis reapply across 1 module(s)", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 1, - "module_bays": 1, - "modules_before": 1 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 94.074141, - "p95_ms": 104.15912809999999, - "samples_ns": [ - 98549562, - 91682982, - 92523972, - 90162050, - 102350317, - 94078886, - 101449783, - 91222491, - 90563647, - 106572355, - 94074141, - 101082853, - 103124888, - 92729649, - 89961536 - ] - }, - "wall": { - "median_ms": 126.860629, - "p95_ms": 134.6831407, - "samples_ns": [ - 127923216, - 121914857, - 122530346, - 118197778, - 134559916, - 126860629, - 132617023, - 120556829, - 118807168, - 134970665, - 126864217, - 127585069, - 129971167, - 121918206, - 117590644 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 92.210817, - "p95_ms": 92.3087685, - "samples_ns": [ - 92210817, - 92319652, - 90394832 - ] - }, - "wall": { - "median_ms": 127.061099, - "p95_ms": 127.3568678, - "samples_ns": [ - 118340277, - 127061099, - 127389731 - ] - } - } - }, - "name": "vc.direct_callback.reapply_1", - "semantic_result": { - "interface_names": [ - "et-2/0/1" - ], - "interfaces_after": 1 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 32.07999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "042c3a81d9d28b4eae0c4ba9e8932a865a71782f76a17678d26329111d55311a", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 43.99, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "183d552796041243a7b4d2520a5c096ae5066dd1d5a6ec105714eb49fa855ddb", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" - ], - "node_types": { - "Hash": 2, - "Hash Join": 2, - "Index Scan": 3, - "Nested Loop": 4, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 2994, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2674, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2602, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", - "Inner Unique": true, - "Join Type": "Right", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1895, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 8, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(device_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 3.1, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 3.2, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 15, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 11.48, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 35.61, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 11.6, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.85, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 18, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 31, - "Startup Cost": 43.97, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 43.99, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 33, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1735, - "wal_fpi": 0, - "wal_records": 23 - }, - "calls": 1, - "fingerprint": "285ddec0c9df89d06549b356d81986163d29382b9071a7f91b221ca79122e610", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"description\" = '?', \"comments\" = '?', \"_config_context_data\" = NULL, \"_config_context_generation\" = ?, \"local_context_data\" = NULL, \"config_template_id\" = NULL, \"device_type_id\" = ?, \"role_id\" = ?, \"tenant_id\" = NULL, \"platform_id\" = NULL, \"name\" = '?', \"serial\" = '?', \"asset_tag\" = NULL, \"site_id\" = ?, \"location_id\" = NULL, \"rack_id\" = NULL, \"position\" = NULL, \"face\" = NULL, \"status\" = '?', \"airflow\" = NULL, \"cooling_method\" = NULL, \"primary_ip4_id\" = NULL, \"primary_ip6_id\" = NULL, \"oob_ip_id\" = NULL, \"cluster_id\" = NULL, \"virtual_chassis_id\" = ?, \"vc_position\" = ?, \"vc_priority\" = NULL, \"latitude\" = NULL, \"longitude\" = NULL, \"console_port_count\" = ?, \"console_server_port_count\" = ?, \"power_port_count\" = ?, \"power_outlet_count\" = ?, \"cooling_intake_count\" = ?, \"cooling_outflow_count\" = ?, \"interface_count\" = ?, \"front_port_count\" = ?, \"rear_port_count\" = ?, \"device_bay_count\" = ?, \"module_bay_count\" = ?, \"inventory_item_count\" = ? WHERE \"dcim_device\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1684, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 33, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 1735, - "WAL FPI": 0, - "WAL Records": 23 - }, - "Triggers": [] - }, - "statement_fingerprint": "238c29c9daa895f8ecf42cae25bc60af82812b60578d214b9accc132fa16055c" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.14, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "29e01c11383b935c70fb3f6e61dd5b39323e0a99b375438d80c629f86738de67", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = '?' AND \"core_job\".\"status\" IN ('?', '?', '?')) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 984, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 984, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", - "Async Capable": false, - "Disabled": false, - "Filter": "(((name)::text = '?'::text) AND ((status)::text = ANY ('?'::text[])))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 984, - "Relation Name": "core_job", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.13, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 1.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 1.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "34d1d18bb6f9e0c96a4e41ba7a5002135311de20f321ff2fd3c76b2c04000dfc" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2afb4f269f05a4d371e07899bce957806a5c08568ff1f3931b7d54479647615b", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" > ?) ORDER BY ? ASC LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 3, - "Index Cond": "((id > ?) AND (id = ?))", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b618edad287a60303299541128489f538771c1f3dad464c6bcbe50589e7263f8" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 32.07999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "31e210be9394fea208c906e65434774a98525ac33bdb96dc59d3addecf55d4f7", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "32da92a8d755e94997a327ed5a9045cd14824948734f8c152a16322a023a6298", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 6, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.060000000000000005, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 36, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1914, - "wal_fpi": 0, - "wal_records": 24 - }, - "calls": 6, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 6, - "Result": 6 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "38f3f3c27dbe7d53068782da3490fc3a1545b347f9fbb88eb39018917da7a1b2", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 6.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.32, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 4.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 6, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 196.63999999999993, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 16, - "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", - "indexes": [ - "dcim_interface_unique_device_name" - ], - "node_types": { - "Bitmap Heap Scan": 16, - "Bitmap Index Scan": 16, - "Limit": 16 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "428a945ad48b67e3d1c5c2521ce4918dc8c6783e232a36efe061a49dd8cdbfa0", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "49c1468a63a34278409541b72d45bcbd5d05c04f77c2a000bfba762e11abd5bb", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 9, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 9, - "planner_total_cost": 73.71, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 18, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 9, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 9, - "Sort": 9 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4c23800a246fcf87b3907aca2223bfe53a4ebaab422d9cf4675a5225c207d26f", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 25, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 200, - "planner_total_cost": 1013.2499999999995, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 25, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 25, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 25, - "Bitmap Index Scan": 25, - "Hash": 25, - "Hash Join": 25, - "Index Scan": 50, - "Nested Loop": 50, - "Seq Scan": 25, - "Sort": 25 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5088068d602a7155f6772a6285f2cb0fa16b719c1838b67d1d20fb197384c168", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "527b3d3ab5459f641b965da9775a5c723074d53c6fdfa9f3660c6bbff798be63", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "530a98b11fd55786e4061f3051e338fa0d7ca35baae089ba1c57aa315d2baa9c", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 6, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "603d4bb63a8eb0ce4abf6fca9a12787bbcd59bf52f86ae4bde742c30b10a9b16", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 269.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 128, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "60e0b6722142ea6de304bec1be4294cce8f9a5902d16ed54019ecb27219c636b", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 24, - "Nested Loop": 40, - "Seq Scan": 24, - "Sort": 8 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 774, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 564, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 556, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 528, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 33.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 33.66, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 33.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "653bca43a0ac3bb7d1bd090f5fc406631d2b1f0d2146ecf0eb42794ecf35b4d2", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6850e616b31932da09cda35f6837b7ef67c29ee9244c77882aef322e72e5453d", - "indexes": [], - "node_types": { - "Result": 1 - }, - "normalized_sql": "SELECT pg_advisory_lock(?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "30d7305429c19adc1a3944928917ce97d97abab20693baccbddfb7be828df0b0" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 105.84000000000002, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 8, - "Limit": 8, - "Nested Loop": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6e4be9b0b4fa99077777bf5f036f98edd0355d84226fcce18ec0fe18d8144c0b", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 3.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 0, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "70de29dc769ba3d14093844437d7efe1eb9368bf32fb52255ac38d589db1b290", - "indexes": [], - "node_types": { - "Result": 1 - }, - "normalized_sql": "SELECT pg_advisory_unlock(?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "786906800ca611dea6874ed922fff40d759b765d5eb757599b2203101f990416" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 51, - "actual_rows_times_loops": 51, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 51, - "planner_total_cost": 700.2300000000005, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 255, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 51, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 51, - "Limit": 51, - "Nested Loop": 51, - "Seq Scan": 51 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 16.31, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8394508febe501d167e027f4301abbecdafa866067dfcdf3ff8d543d0280738d", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_devicebay_unique_device_name" - ], - "node_types": { - "Index Scan": 2, - "Nested Loop": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicebay.installed_device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_devicebay", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(device_id = ?)", - "Index Name": "dcim_devicebay_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 8, - "Relation Name": "dcim_devicebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "633d42802a56cf0e6e37f4556cf29e8ce2514b1b94e93d5d1bfb2bc708bb478e" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "88a2149f6d5e45820cb29f3a306d79cd41b6b2372d5c29b084701832104f59d8", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 79, - "wal_fpi": 0, - "wal_records": 1 - }, - "calls": 1, - "fingerprint": "896da231f26c4558a2083d96fc8498113ca580f31ecc759470235f3ece3cdc38", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = NULL, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + ?) WHERE (\"dcim_device\".\"id\" IN (?) AND \"dcim_device\".\"id\" IN (?))", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 46, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_device", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 79, - "WAL FPI": 0, - "WAL Records": 1 - }, - "Triggers": [] - }, - "statement_fingerprint": "52b8992184b3193ab8df08b2e46b849edfd5e32747445e7f3db6b9c32e0e8da1" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8a07788e5614bd11a6dc5c2814975ebf2efc2dd1c83bc0b5bca9f53bc4a6567b", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 40, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 40, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3ca6c0c8694f1da838d9f85b6ffcde24fffdb0bf5ffd47fa7f3bed4ed4bbb879" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8a098ef712214fb83c77ab6143964836a45b16f6057eb22f5e55c33166463f2b", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 1.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 1, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8b5bd3784921b667c5a167073be74d82279688df52604ad05fae8a06cf7136f8", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = '?'::uuid LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "core_job", - "Async Capable": false, - "Disabled": false, - "Filter": "(job_id = '?'::uuid)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "core_job", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a0cf30e5699d757dd979b0433e8b56ec49118c63c0e67cf730e632ac26dd1c6f" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "8c42946dcacaf9e8c76daa6fdb4629eba453859930ea29c4218c83c3d880844e", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "9edd00de4778e5b098b5f1b9ce6f8cba89a7de9c3bbad595b202ece5b0005926", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" - }, - { - "aggregate": { - "actual_loops": 2, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.02, - "shared_dirtied_blocks": 2, - "shared_hit_blocks": 10, - "shared_read_blocks": 2, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 638, - "wal_fpi": 0, - "wal_records": 8 - }, - "calls": 2, - "fingerprint": "a7e329729b2108976886e9f2b9d844d95b698fbf1ffdf77f1bc1d6748abda579", - "indexes": [], - "node_types": { - "ModifyTable": 2, - "Result": 2 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 16, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 130.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 16, - "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 16, - "Limit": 16 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 163.92, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "b18710784c5437e6d0f794b1df9772edd9e7493e4dda7c02ef35ddfd59326f47", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 3, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 20.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 98.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 368, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 11440, - "wal_fpi": 0, - "wal_records": 168 - }, - "calls": 8, - "fingerprint": "c4db31918cf24c495105ca6dc209a98da106da94b44b952a1402ca35f3011858", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "ModifyTable": 8 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 46, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1430, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 64, - "planner_total_cost": 114.96000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "d60c285a705ad56bfbee49f5f905e7f291266f4907ddc3a8bcb935ccaf25f8e0", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 3, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "de362d20efdc5b497a50660b54df9e8fe1b288c3dc202f5a5cf74c55a3bada4f", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 7, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 548, - "wal_fpi": 0, - "wal_records": 7 - }, - "calls": 1, - "fingerprint": "e92ea1c21de24cd14b48ccddd84c6d2e9463f4c77a6a448230bce4f5fc562688", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (NULL, NULL, '?', '?'::timestamptz, NULL, NULL, NULL, NULL, NULL, NULL, '?', NULL, '?', '?'::uuid, '?', '?', '?'::jsonb[]) RETURNING \"core_job\".\"id\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_job", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 984, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 984, - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "core_job", - "Shared Dirtied Blocks": 7, - "Shared Hit Blocks": 8, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 548, - "WAL FPI": 0, - "WAL Records": 7 - }, - "Triggers": [] - }, - "statement_fingerprint": "4d2b0624f1423fa7ef3ac2387ae42e9e6434f2faafb8f1464a328d3d97f09f4b" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 8.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 72, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 24.15, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 17, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ea821382744ae6c5f6d0d53b7be0bf52aced3dcbd09e950705e6cef35114879a", - "indexes": [ - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 2, - "Limit": 1, - "Memoize": 1, - "Nested Loop": 6, - "Seq Scan": 5 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(\"T4\".module_id = \"T5\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 771, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.module_id = \"T3\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 6, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.46, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 262, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 6.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 10, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.79, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 13, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.97, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 17, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 3.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ed28bd0e723f0906cde38d991df31df81e12a97152c3cda47dd150e851b2f545", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 3.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 131.92, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "eee73c095ecf28464b69cf07303a91f3be0a8cdb7c3e8e8a315212da4ffb6468", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_module_id_05ca2da5" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 3, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_id = ?)", - "Index Name": "dcim_interface_module_id_05ca2da5", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f02e7413432cf9ff90ebf8ba4af3a0e73f0d286908517a8fe6df435380039ab2", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 7, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - } - ], - "statements": [ - { - "calls": 1, - "fingerprint": "00a48dac0e50d45e8aa347f6c079795d6c0cb09d3dffe4ee068f2874e8b385ed", - "normalized_sql": "SELECT %s AS \"a\" FROM \"core_job\" WHERE \"core_job\".\"job_id\" = %s LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "1919ddc31043c19525b5f3e5c2021bb0aaa0a6791b7391fe41aee034f5603368", - "normalized_sql": "SELECT pg_advisory_lock(%s)", - "rows_affected": 1 - }, - { - "calls": 8, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "22b52f8fdd8b594e0f40265bea1076c4d7f0bd72bd33326a9a504ad5c757b278", - "normalized_sql": "SELECT \"dcim_device\".\"id\" AS \"pk\" FROM \"dcim_device\" WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" > %s) ORDER BY ? ASC LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "26c8d42cff4acd7965798ced1cb2302a0de077fe35079bf687fd56e33ec956ab", - "normalized_sql": "SELECT pg_advisory_unlock(%s)", - "rows_affected": 1 - }, - { - "calls": 8, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "3b2fd5e645edcb20006633441140723a008e260780c415f90ddb03e67f632970", - "normalized_sql": "UPDATE \"dcim_device\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"description\" = %s, \"comments\" = %s, \"_config_context_data\" = %s, \"_config_context_generation\" = %s, \"local_context_data\" = %s, \"config_template_id\" = %s, \"device_type_id\" = %s, \"role_id\" = %s, \"tenant_id\" = %s, \"platform_id\" = %s, \"name\" = %s, \"serial\" = %s, \"asset_tag\" = %s, \"site_id\" = %s, \"location_id\" = %s, \"rack_id\" = %s, \"position\" = %s, \"face\" = %s, \"status\" = %s, \"airflow\" = %s, \"cooling_method\" = %s, \"primary_ip4_id\" = %s, \"primary_ip6_id\" = %s, \"oob_ip_id\" = %s, \"cluster_id\" = %s, \"virtual_chassis_id\" = %s, \"vc_position\" = %s, \"vc_priority\" = %s, \"latitude\" = %s, \"longitude\" = %s, \"console_port_count\" = %s, \"console_server_port_count\" = %s, \"power_port_count\" = %s, \"power_outlet_count\" = %s, \"cooling_intake_count\" = %s, \"cooling_outflow_count\" = %s, \"interface_count\" = %s, \"front_port_count\" = %s, \"rear_port_count\" = %s, \"device_bay_count\" = %s, \"module_bay_count\" = %s, \"inventory_item_count\" = %s WHERE \"dcim_device\".\"id\" = %s", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "3c389490b11937715c3d0964bc30ec7b13e51db1c13a2af0099105f714faa656", - "normalized_sql": "UPDATE \"dcim_device\" SET \"_config_context_data\" = %s, \"_config_context_generation\" = (\"dcim_device\".\"_config_context_generation\" + %s) WHERE (\"dcim_device\".\"id\" IN (%s) AND \"dcim_device\".\"id\" IN (%s))", - "rows_affected": 1 - }, - { - "calls": 25, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 8, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "5d7a97e86f815b27d234df91ae479de2138442699e863f4ff28d73aa304eb1fd", - "normalized_sql": "INSERT INTO \"core_job\" (\"object_type_id\", \"object_id\", \"name\", \"created\", \"scheduled\", \"interval\", \"started\", \"completed\", \"execution_time\", \"user_id\", \"status\", \"data\", \"error\", \"job_id\", \"queue_name\", \"notifications\", \"log_entries\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s::jsonb[]) RETURNING \"core_job\".\"id\"", - "rows_affected": 1 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 16, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 16 - }, - { - "calls": 8, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 25, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 16, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "821b0cf47bc104eac1c0be61b6590a5102a2aaae1aa60ba1f6226bf8142dba44", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" INNER JOIN \"dcim_devicebay\" ON (\"dcim_device\".\"id\" = \"dcim_devicebay\".\"installed_device_id\") WHERE \"dcim_devicebay\".\"device_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 25, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 51, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 51 - }, - { - "calls": 8, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 9, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "d4343dc9365f085be0168ec3e6c7882c1d9fbde207387e0851ebf489bfc0755d", - "normalized_sql": "SELECT \"dcim_device\".\"virtual_chassis_id\" AS \"virtual_chassis_id\", \"dcim_device\".\"vc_position\" AS \"vc_position\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 8, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "e236397f933fab343403e0aa5aa12607f0cf386121c81a7e3d60ec370c91425e", - "normalized_sql": "SELECT \"core_job\".\"id\", \"core_job\".\"object_type_id\", \"core_job\".\"object_id\", \"core_job\".\"name\", \"core_job\".\"created\", \"core_job\".\"scheduled\", \"core_job\".\"interval\", \"core_job\".\"started\", \"core_job\".\"completed\", \"core_job\".\"execution_time\", \"core_job\".\"user_id\", \"core_job\".\"status\", \"core_job\".\"data\", \"core_job\".\"error\", \"core_job\".\"job_id\", \"core_job\".\"queue_name\", \"core_job\".\"notifications\", \"core_job\".\"log_entries\" FROM \"core_job\" WHERE (\"core_job\".\"name\" = %s AND \"core_job\".\"status\" IN (%s, %s, %s)) ORDER BY \"core_job\".\"created\" DESC LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 253, - "actual_rows_per_work_unit": 21.5, - "actual_rows_times_loops": 172, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 253, - "planner_rows": 481, - "planner_total_cost": 3625.179999999999, - "planner_total_cost_per_work_unit": 453.14749999999987, - "shared_dirtied_blocks": 10, - "shared_hit_blocks": 1453, - "shared_hit_blocks_per_work_unit": 181.625, - "shared_read_blocks": 2, - "shared_written_blocks": 0, - "statement_calls": 303, - "statement_calls_per_work_unit": 37.875, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 16354, - "wal_fpi": 0, - "wal_records": 231, - "work_units": 8 - } - }, - "description": "Virtual chassis reapply across 8 module(s)", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 8, - "module_bays": 8, - "modules_before": 8 - }, - "layer": "complete_model_save", - "machine_time": { - "process_cpu": { - "median_ms": 647.909391, - "p95_ms": 704.1480037, - "samples_ns": [ - 624210421, - 616537652, - 703792390, - 635152006, - 609211660, - 586352567, - 647266501, - 649753854, - 623164423, - 704977769, - 647909391, - 650867432, - 678749987, - 657484320, - 672790023 - ] - }, - "wall": { - "median_ms": 870.672372, - "p95_ms": 913.0703146000001, - "samples_ns": [ - 822118362, - 828682373, - 906353716, - 839374856, - 818045139, - 782514977, - 871328788, - 871373199, - 835687140, - 928742378, - 894529004, - 858600732, - 887007474, - 870672372, - 902129638 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 595.63285, - "p95_ms": 596.2692139, - "samples_ns": [ - 596339921, - 595632850, - 583418727 - ] - }, - "wall": { - "median_ms": 783.500034, - "p95_ms": 791.5134792, - "samples_ns": [ - 792403862, - 783500034, - 774549046 - ] - } - } - }, - "name": "vc.complete_model_save.reapply_8", - "semantic_result": { - "interface_names": [ - "et-2/0/1", - "et-2/0/2", - "et-2/0/3", - "et-2/0/4", - "et-2/0/5", - "et-2/0/6", - "et-2/0/7", - "et-2/0/8" - ], - "interfaces_after": 8 - } - }, - { - "database": { - "plans": [ - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "03f6f4b3fee5d14c977001a455462bf63b12551fa400ebbbe6dd32d1fcb46d08", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 6.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "0c93fbe339d64623e407a4aa34404b05542b992c2128010103f1f7809024776e", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 2, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 40.07999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "153211edebc5a75aade6764e9050c4b8505b4a6abe63f3568c61a8804ad61d8d", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 137, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 137, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "38db1e9a148a6391d91c644453d7c41307ca04815fa9288d67f816429cee1c97" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "16c0c1786ea5ac06b6e6b06ef3228e99d91e7628c8496cb773611410164f4d74", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1c2ae29016f5138ae28c09bab11a33b881b9584f38aec94f7f1623f04a496f65", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "1cef77b7f7e8850136295df04cf5e5eb20bfe47a48a0b90a112855d3eb594469", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 4, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "25004154482dc9d8c300f59a50be177b6502864a0bb15fe43fc9507985e4ebb3", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 5.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "2967ad7fbeab1bbdd8e80c9d985eaa8717cea77094d6e9158970f3bad26dc74f", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "31277aec05cf3d008a822a9d39bd2271ddda0859e982621363ef6ac89544f77e", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 3.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 4, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.04, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 1276, - "wal_fpi": 0, - "wal_records": 16 - }, - "calls": 4, - "fingerprint": "37ccfc1c662c99cf50939ef521938a448994d0ee72e1a71abd12da2ecc03560e", - "indexes": [], - "node_types": { - "ModifyTable": 4, - "Result": 4 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 4.32, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "396dd366748ee754230eea902876ffdb8ef79c6aac197c9062d08795197ee25d", - "indexes": [], - "node_types": { - "Aggregate": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?')))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, '?'), '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, '?') || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, '?') || COALESCE((COALESCE('?', '?') || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?')), '?' ORDER BY id)), '?') AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Aggregate", - "Parallel Aware": false, - "Partial Mode": "Simple", - "Plan Rows": 1, - "Plan Width": 32, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 87, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 4.02, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.02, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.3, - "Strategy": "Plain", - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.32, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "9b50b944277d082773aa5c49dd51263b0b2992c58b5f091c89a70818cd332ea0" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "3c6434ca5a950eef6da72a92c9a7ae7b28f3a10b00e49d48c2bd8188a80de606", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 6, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 196.63999999999993, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 32, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 16, - "fingerprint": "41c99d9821e6331ae51c74bab967c567b587d84d1711710002576e8df493c0a6", - "indexes": [ - "dcim_interface_unique_device_name" - ], - "node_types": { - "Bitmap Heap Scan": 16, - "Bitmap Index Scan": 16, - "Limit": 16 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = ? AND \"dcim_interface\".\"name\" = '?' AND NOT (\"dcim_interface\".\"id\" = ?)) LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Filter": "(id <> ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Index Name": "dcim_interface_unique_device_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "((device_id = ?) AND ((name)::text = '?'::text))", - "Relation Name": "dcim_interface", - "Rows Removed by Filter": 0, - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "628dac21feaf6b0933213b2a5d769301da84b071e08ba34a7418d8f8a60d848f" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "45404877937b821bd657b22315ba19c73af4e62338c14a5f20d73458f1b2edaa", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 595, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "99db1fe208c7b511d838b59f446cd52b20817e771c47b56f90dfe758d76ea31a" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.52, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 16, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "49f526f96464b2cf968767e66aac5262a4b7b49627e4cb0639e724dbbb3b61e9", - "indexes": [ - "extras_subscription_unique_per_object_and_user" - ], - "node_types": { - "Index Scan": 8, - "Sort": 8 - }, - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = ? AND \"extras_subscription\".\"object_type_id\" = ?) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 16, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_subscription", - "Async Capable": false, - "Disabled": false, - "Index Cond": "((object_type_id = ?) AND (object_id = ?))", - "Index Name": "extras_subscription_unique_per_object_and_user", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 16, - "Relation Name": "extras_subscription", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.17, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "created DESC", - "user_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 8.18, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "715bf0ef5ac31602db93d3c3985cf76030936000aff4243d2c12fe8493bac6c5" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4b3f09c885e704bde57408d55d1cbd9fa15823e5ff1361656b4bdcf5aec0718d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "4b45fff50a0bf9bbbbbff6d82844d47359d7fa34db1604ba6bfd007fd3d2fa8c", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "enabled", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163" - }, - { - "aggregate": { - "actual_loops": 24, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 192, - "planner_total_cost": 972.7199999999996, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 24, - "fingerprint": "4c60985b78474ecf77e8c5f081aef9c645544b1ab23335c5c07b3f2ad5e87b1c", - "indexes": [ - "django_content_type_pkey", - "extras_customfield_content_types_contenttype_id_2997ba90", - "extras_customfieldchoiceset_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 24, - "Bitmap Index Scan": 24, - "Hash": 24, - "Hash Join": 24, - "Index Scan": 48, - "Nested Loop": 48, - "Seq Scan": 24, - "Sort": 24 - }, - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = ? ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 2849, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1998, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(extras_customfield.id = extras_customfield_object_types.customfield_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 1976, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_customfield", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 40, - "Plan Width": 1976, - "Relation Name": "extras_customfield", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.4, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfield_object_types", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 8, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_id = ?)", - "Index Name": "extras_customfield_content_types_contenttype_id_2997ba90", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(contenttype_id = ?)", - "Relation Name": "extras_customfield_object_types", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.37, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.47, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.98, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.related_object_type_id)", - "Index Name": "django_content_type_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.62, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 30.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "extras_customfieldchoiceset", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = extras_customfield.choice_set_id)", - "Index Name": "extras_customfieldchoiceset_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 851, - "Relation Name": "extras_customfieldchoiceset", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.26, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 14.76, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.39, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "extras_customfield.group_name", - "extras_customfield.weight", - "extras_customfield.name" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 40.51, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.53, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "471857a5268f1ea6e2c1d92b60692aad09155611880d735d3fe74e9069864f6a" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "563c204ccc3278eeaebf3fd14efd8672f908e1f784ff97096f24b60f3878024f", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 6, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "57606ae110c1e9671efd30d05775a5f95c572c6ea54f26e6e5e8ab86da133db9", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5868afc0e5bc524b262b88aa536618312ad21270c67a9777c3933db618a28f3d", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 2, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "5fa0c4f540bf7be985029de3902bec6879b96059f5ed27f258cfe2bb7d85294c", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 4.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 3, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 269.28, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 128, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "60e0b6722142ea6de304bec1be4294cce8f9a5902d16ed54019ecb27219c636b", - "indexes": [ - "dcim_devicetype_unique_manufacturer_slug", - "dcim_interfacetemplate_unique_device_type_name", - "dcim_moduletype_unique_manufacturer_model" - ], - "node_types": { - "Index Scan": 24, - "Nested Loop": 40, - "Seq Scan": 24, - "Sort": 8 - }, - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = ? ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.manufacturer_id = \"T6\".id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 782, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_moduletype.profile_id = dcim_moduletypeprofile.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 774, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.manufacturer_id = dcim_manufacturer.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 564, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interfacetemplate.device_type_id = dcim_devicetype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 556, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 528, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_moduletype_unique_manufacturer_model", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 44, - "Relation Name": "dcim_moduletype", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interfacetemplate", - "Async Capable": false, - "Disabled": false, - "Filter": "(module_type_id = ?)", - "Index Name": "dcim_interfacetemplate_unique_device_type_name", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 492, - "Relation Name": "dcim_interfacetemplate", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.25, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.29, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_unique_manufacturer_slug", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 36, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 24.45, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_manufacturer", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 11, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 7.0, - "Alias": "dcim_moduletypeprofile", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 7, - "Plan Width": 226, - "Relation Name": "dcim_moduletypeprofile", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.07, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.63, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 24, - "Relation Name": "dcim_manufacturer", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.38, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 33.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 16, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_manufacturer.name", - "dcim_devicetype.model", - "dcim_moduletypeprofile.name", - "\"T6\".name", - "dcim_moduletype.model", - "dcim_interfacetemplate.name COLLATE natural_sort" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 33.66, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 33.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "fdea21615789f21b5a6e863ecab82543c8f8670a879621551d5164a4af1e74e3" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "6266affd344bc07db03337c045a4429942f6c1453eb5fc410fefb6b1057be296", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 6, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "63cec668ed2c9070e47c26a60f52b4a29352673a87dde01bc291c3b57a3c8922", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "63da38b5e2445e675b768197771a61d219ada7e13ca621d6bf93733960c3c758", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 1, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 105.84000000000002, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "691c8aad9d84e8ba9ae5144fc3fe94663743690d66baffa1f5976ed149310e7e", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 8, - "Limit": 8, - "Nested Loop": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = ?)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.06, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.23, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6263741f645bed95cdaa540d0aa9d8af1a7ad60e5d8bf3ed8f581ea3557666b7" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 12.18, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 4, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7c0e719f21e7eda1f24f012a49331b7f3d17b4023a8cd6f8e4556274bf079592", - "indexes": [ - "dcim_moduletype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Nested Loop": 1, - "Seq Scan": 1, - "Sort": 1 - }, - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = ? OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(netbox_interface_name_rules_interfacenamerule.module_type_id = dcim_moduletype.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 130, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "netbox_interface_name_rules_interfacenamerule", - "Async Capable": false, - "Disabled": false, - "Filter": "(applies_to_device_interfaces AND enabled AND (platform_id IS NULL) AND ((device_type_id = ?) OR (device_type_id IS NULL)))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 110, - "Relation Name": "netbox_interface_name_rules_interfacenamerule", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 4, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_moduletype.model", - "netbox_interface_name_rules_interfacenamerule.id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 25, - "Startup Cost": 12.17, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.18, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "abd7710febd5bbdf0c2d726ed22aca2622857ba528b0c2c4334b71531ba02531" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "7de0392c8736f3cca11f0e95ca2ada28eec8bd01add24e70194a2ffb1680428e", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 3, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 48, - "actual_rows_times_loops": 48, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 48, - "planner_total_cost": 659.0400000000004, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 240, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 48, - "fingerprint": "80c98bac651fc328ba372a0c631b716cefef306c5bacc2deddd9d38851a95abe", - "indexes": [ - "core_objecttype_pkey" - ], - "node_types": { - "Index Scan": 48, - "Limit": 48, - "Nested Loop": 48, - "Seq Scan": 48 - }, - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = '?' AND \"django_content_type\".\"model\" = '?') LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 176, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "django_content_type", - "Async Capable": false, - "Disabled": false, - "Filter": "(((app_label)::text = '?'::text) AND ((model)::text = '?'::text))", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 22, - "Relation Name": "django_content_type", - "Rows Removed by Filter": 164, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.47, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "core_objecttype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(contenttype_ptr_id = django_content_type.id)", - "Index Name": "core_objecttype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 154, - "Relation Name": "core_objecttype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.73, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b75a7e1767e474d3de37c4773fd7244fec19f1b063c53f6ded7f988d87d6248a" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 40.07999999999999, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 40, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "84c8d1597fd98ae2131365eaf5a7d86e4c14ad82589eabb9a4c4fd8befb26617", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_site", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_site", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "0a1422d78e3f1346c3085270a6ccd7cdcaf9321d702969ea9a8362f85cfc8679" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 8.14, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 3, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "88a2149f6d5e45820cb29f3a306d79cd41b6b2372d5c29b084701832104f59d8", - "indexes": [ - "dcim_devicetype_pkey" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1 - }, - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 707, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "b270d2d8be3972fb343c61968e4fc39b120c94df3bca83bb12654f02b4c93580" - }, - { - "aggregate": { - "actual_loops": 3, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.03, - "shared_dirtied_blocks": 3, - "shared_hit_blocks": 15, - "shared_read_blocks": 3, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 957, - "wal_fpi": 0, - "wal_records": 12 - }, - "calls": 3, - "fingerprint": "a7e329729b2108976886e9f2b9d844d95b698fbf1ffdf77f1bc1d6748abda579", - "indexes": [], - "node_types": { - "ModifyTable": 3, - "Result": 3 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "aaabc410637cbba182dc43f3236d76affc60bb276770251e53baa9cfa026e5bd", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 1, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 16, - "actual_rows_times_loops": 16, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 130.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 16, - "fingerprint": "ac7b806a88a74c526b1ef0875e126e368691c820ca487a45e536e2e159e39dfb", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Scan": 16, - "Limit": 16 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "ff69fdc5a2da5a2ed4b96e31ef081b82b6a4f672c9b46e60d15c6b581f1bfdee" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 163.92, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "b18710784c5437e6d0f794b1df9772edd9e7493e4dda7c02ef35ddfd59326f47", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (?) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 3, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 2.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 20.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 20.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "f15640c2d1f8dad73a92b89c6ed1bf7321cfe985927f768ffdff5eea248630b5" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 98.24, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 368, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 11440, - "wal_fpi": 0, - "wal_records": 168 - }, - "calls": 8, - "fingerprint": "c4db31918cf24c495105ca6dc209a98da106da94b44b952a1402ca35f3011858", - "indexes": [ - "dcim_interface_pkey" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "ModifyTable": 8 - }, - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = '?'::timestamptz, \"last_updated\" = '?'::timestamptz, \"custom_field_data\" = '?'::jsonb, \"owner_id\" = NULL, \"device_id\" = ?, \"name\" = '?', \"label\" = '?', \"description\" = '?', \"_site_id\" = ?, \"_location_id\" = NULL, \"_rack_id\" = NULL, \"module_id\" = ?, \"cable_id\" = NULL, \"cable_end\" = NULL, \"cable_connector\" = NULL, \"cable_positions\" = NULL::smallint[], \"mark_connected\" = false, \"_path_id\" = NULL, \"enabled\" = true, \"mtu\" = NULL, \"mode\" = NULL, \"parent_id\" = NULL, \"bridge_id\" = NULL, \"untagged_vlan_id\" = NULL, \"qinq_svlan_id\" = NULL, \"vlan_translation_policy_id\" = NULL, \"primary_mac_address_id\" = NULL, \"_name\" = '?', \"lag_id\" = NULL, \"type\" = '?', \"channels\" = NULL, \"channel_id\" = NULL, \"mgmt_only\" = false, \"speed\" = NULL, \"duplex\" = NULL, \"wwn\" = NULL, \"rf_role\" = NULL, \"rf_channel\" = NULL, \"rf_channel_frequency\" = NULL, \"rf_channel_width\" = NULL, \"tx_power\" = NULL, \"poe_mode\" = NULL, \"poe_type\" = NULL, \"wireless_link_id\" = NULL, \"vrf_id\" = NULL WHERE \"dcim_interface\".\"id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Update", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2003, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = ?)", - "Index Name": "dcim_interface_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "dcim_interface", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 46, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 1430, - "WAL FPI": 0, - "WAL Records": 21 - }, - "Triggers": [] - }, - "statement_fingerprint": "88f510b07c3938a4dc21be883f31ff43207d9c93f88d697e9d4ec4715975f683" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 9.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "c62139245dc6502403a962e2d82929b349d9ed537f6759fea5ccb94f2d7b41a2", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position" - ], - "node_types": { - "Index Scan": 1, - "Limit": 1, - "Nested Loop": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 929, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 9.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "4def6a40782525f0518a20dcd27441ae5447cea5ac5dc756fdb0b9df9936d75d" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 64, - "planner_total_cost": 114.96000000000001, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "cceee9a7ec10f0af83628c2c69c55d8f2ffa996b706638e7604ed4a75f1f872f", - "indexes": [ - "dcim_interface_tagged_vlans_interface_id_5870c9e9" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_interface_tagged_vlans", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 24, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(interface_id = ?)", - "Index Name": "dcim_interface_tagged_vlans_interface_id_5870c9e9", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(interface_id = ?)", - "Relation Name": "dcim_interface_tagged_vlans", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.21, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 14.37, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "06cd34293cff81dfe596c90751c450c768cd5435999a7279c9ca837ee9e4b838" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "d0a7c40642f2e64c38e8d6772564685abc00983b41fbef81e1dea304976ca8a2", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 5, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 65.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 24, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "d60c285a705ad56bfbee49f5f905e7f291266f4907ddc3a8bcb935ccaf25f8e0", - "indexes": [ - "dcim_device_name_c27913_idx" - ], - "node_types": { - "Index Only Scan": 8, - "Limit": 8 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 3, - "Index Cond": "(id = ?)", - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_device", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "a88aac9385bcb48fe4cd95016432b8b609c4400d95bf02083654e303c442517b" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "ddcc53c2c7b5aad83c1dfd81f1c4d797f8f82108e27520e220616b2c8f7040dd", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 5, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 0.01, - "shared_dirtied_blocks": 1, - "shared_hit_blocks": 6, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 319, - "wal_fpi": 0, - "wal_records": 4 - }, - "calls": 1, - "fingerprint": "e6e60d8b3657c14565a93f604893ff25728f38324c3044c04a7e7ef22387de45", - "indexes": [], - "node_types": { - "ModifyTable": 1, - "Result": 1 - }, - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES ('?'::uuid, '?'::timestamptz, ?, ?, '?', '?', '?', ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Insert", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Result", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 566, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 1, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 0.01, - "WAL Buffers Full": 0, - "WAL Bytes": 319, - "WAL FPI": 0, - "WAL Records": 4 - }, - "Triggers": [] - }, - "statement_fingerprint": "e1e65c03d9a2b0ec301bd7f6f3ebba9356b28bc6dc682762997b614fb7965594" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 48.99, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 22, - "shared_read_blocks": 1, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e80c2e8aefd62f3da3df9bcc2400b563c4a2f1fadd97b44f4291d5cc4f9b7644", - "indexes": [ - "dcim_device_unique_virtual_chassis_vc_position", - "dcim_devicetype_pkey", - "dcim_moduletype_pkey" - ], - "node_types": { - "Hash": 2, - "Hash Join": 2, - "Index Scan": 3, - "Nested Loop": 4, - "Seq Scan": 4, - "Sort": 1 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = ? ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Sort", - "Parallel Aware": false, - "Plan Rows": 8, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_module.module_type_id = dcim_moduletype.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 3589, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_moduletype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_moduletype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 595, - "Relation Name": "dcim_moduletype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 2994, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_device.virtual_chassis_id = dcim_virtualchassis.id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2674, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_devicetype.id = dcim_device.device_type_id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 2602, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_platform.id = dcim_device.platform_id)", - "Inner Unique": true, - "Join Type": "Right", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1895, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "dcim_platform", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 70, - "Plan Width": 1038, - "Relation Name": "dcim_platform", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 10.7, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 1, - "Plan Width": 857, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Index Name": "dcim_device_unique_virtual_chassis_vc_position", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 857, - "Relation Name": "dcim_device", - "Rows Removed by Filter": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 8.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.15, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 19.04, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_devicetype", - "Async Capable": false, - "Disabled": false, - "Index Name": "dcim_devicetype_pkey", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 707, - "Relation Name": "dcim_devicetype", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 27.19, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 8.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 28.21, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Hash Cond": "(dcim_modulebay.id = dcim_module.module_bay_id)", - "Inner Unique": true, - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash Join", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Async Capable": false, - "Disabled": false, - "Hash Batches": 1, - "Hash Buckets": 1024, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Hash", - "Original Hash Batches": 1, - "Original Hash Buckets": 1024, - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Peak Memory Usage": 9, - "Plan Rows": 8, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(device_id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 8, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.1, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 5.2, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.31, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 13.48, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 40.61, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Startup Cost": 13.6, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 48.85, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 22, - "Shared Read Blocks": 1, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_modulebay.sort_path COLLATE natural_sort", - "dcim_module.module_bay_id" - ], - "Sort Method": "quicksort", - "Sort Space Type": "Memory", - "Sort Space Used": 31, - "Startup Cost": 48.97, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 48.99, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6b3d9cef2af9789cd237df4c2820263ef7a30e49980b3c60a64827b9e0bbea46" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 5.1, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 5, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "e9c747cf2be3b1049547f5959c9d7f7486a3f62ec896d3bbba38568c56052cd6", - "indexes": [], - "node_types": { - "Limit": 1, - "Seq Scan": 1 - }, - "normalized_sql": "SELECT ? AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 4, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 4, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 4, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "6c7c704664a8d5a75295f9c72e758b0dee387b6383ad5e2d8f69e5dd05139d86" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 8, - "planner_total_cost": 8.08, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 8, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "e9d86c9fc6385fed1cf473a219f8c9744553b4952cea10f957742007e9a8417f", - "indexes": [], - "node_types": { - "Limit": 8, - "Seq Scan": 8 - }, - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 72, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_virtualchassis", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 72, - "Relation Name": "dcim_virtualchassis", - "Rows Removed by Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 1, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 1.01, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "75fd10d7b8498ea93b2c3d3c750a49abfdb7821dc3f38d90611255e94d2783cf" - }, - { - "aggregate": { - "actual_loops": 8, - "actual_rows_times_loops": 8, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 16, - "planner_total_cost": 131.92, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 48, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 8, - "fingerprint": "eee73c095ecf28464b69cf07303a91f3be0a8cdb7c3e8e8a315212da4ffb6468", - "indexes": [ - "dcim_device_name_c27913_idx", - "dcim_interface_module_id_05ca2da5" - ], - "node_types": { - "Bitmap Heap Scan": 8, - "Bitmap Index Scan": 8, - "Incremental Sort": 8, - "Index Only Scan": 8, - "Nested Loop": 8 - }, - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = ? ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Full-sort Groups": { - "Group Count": 1, - "Sort Methods Used": [ - "quicksort" - ], - "Sort Space Memory": { - "Average Sort Space Used": 25, - "Peak Sort Space Used": 25 - } - }, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Incremental Sort", - "Parallel Aware": false, - "Plan Rows": 2, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Filter": "(dcim_interface.device_id = dcim_device.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1242, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_device", - "Async Capable": false, - "Disabled": false, - "Heap Fetches": 3, - "Index Name": "dcim_device_name_c27913_idx", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Only Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 28, - "Relation Name": "dcim_device", - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.12, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.14, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_interface", - "Async Capable": false, - "Disabled": false, - "Exact Heap Blocks": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Lossy Heap Blocks": 0, - "Node Type": "Bitmap Heap Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 996, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Index Cond": "(module_id = ?)", - "Index Name": "dcim_interface_module_id_05ca2da5", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Bitmap Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.27, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Recheck Cond": "(module_id = ?)", - "Relation Name": "dcim_interface", - "Rows Removed by Index Recheck": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 3, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.27, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 4.39, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.43, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Presorted Key": [ - "dcim_device.name", - "dcim_interface.device_id" - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 6, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Sort Key": [ - "dcim_device.name COLLATE natural_sort", - "dcim_interface.device_id", - "dcim_interface._name COLLATE \"C\"" - ], - "Startup Cost": 16.44, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 16.49, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "456a31078cdc1d407c1ef1990517d5bde56012a10f3b8d0da99916ee751ba147" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 1, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 1, - "planner_total_cost": 37.12, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 19, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "efd105ba76003c1e563280489ebc36f2b68dc92a480631fc614b0b019bbfa7be", - "indexes": [ - "dcim_module_pkey", - "dcim_modulebay_pkey" - ], - "node_types": { - "Index Scan": 4, - "Limit": 1, - "Memoize": 2, - "Nested Loop": 6, - "Seq Scan": 3 - }, - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = ? LIMIT ?", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Limit", - "Parallel Aware": false, - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_modulebay.parent_id = \"T7\".id)", - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 1091, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 960, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Filter": "(dcim_module.module_bay_id = dcim_modulebay.id)", - "Join Type": "Inner", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_module", - "Async Capable": false, - "Disabled": false, - "Filter": "(id = ?)", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Filter": 7, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 5, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 5.1, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 1.0, - "Alias": "dcim_modulebay", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 0, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 12.28, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 640, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": false, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 509, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "T3", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = dcim_modulebay.module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Disabled": false, - "Inner Unique": true, - "Join Type": "Left", - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Nested Loop", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 320, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T4", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T3\".module_bay_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".module_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 189, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T5", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".module_id)", - "Index Name": "dcim_module_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 189, - "Relation Name": "dcim_module", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.66, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.28, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.82, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.41, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 13.48, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 0, - "Actual Rows": 0, - "Async Capable": false, - "Cache Key": "\"T4\".parent_id", - "Cache Mode": "logical", - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Memoize", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 1, - "Plan Width": 131, - "Plans": [ - { - "Actual Loops": 0, - "Actual Rows": 0, - "Alias": "T6", - "Async Capable": false, - "Disabled": false, - "Index Cond": "(id = \"T4\".parent_id)", - "Index Name": "dcim_modulebay_pkey", - "Index Searches": 0, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.13, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.15, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 4.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 0, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 17.65, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 12, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 29.94, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - { - "Actual Loops": 1, - "Actual Rows": 8.0, - "Alias": "T7", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Seq Scan", - "Parallel Aware": false, - "Parent Relationship": "Inner", - "Plan Rows": 8, - "Plan Width": 131, - "Relation Name": "dcim_modulebay", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 7, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.0, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 7.08, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Rows Removed by Join Filter": 8, - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 19, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.55, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 37.12, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "3d9ed6ebe253174c5d3ef9ffdd352f919de7c409950e6ad2e847d1f1b6891d34" - }, - { - "aggregate": { - "actual_loops": 1, - "actual_rows_times_loops": 0, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planner_rows": 0, - "planner_total_cost": 8.16, - "shared_dirtied_blocks": 0, - "shared_hit_blocks": 2, - "shared_read_blocks": 0, - "shared_written_blocks": 0, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 0, - "wal_fpi": 0, - "wal_records": 0 - }, - "calls": 1, - "fingerprint": "f02e7413432cf9ff90ebf8ba4af3a0e73f0d286908517a8fe6df435380039ab2", - "indexes": [ - "extras_cachedvalue_object_type_id_6f47d444" - ], - "node_types": { - "Index Scan": 1, - "ModifyTable": 1 - }, - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (?) AND \"extras_cachedvalue\".\"object_type_id\" = ?)", - "plan": { - "Plan": { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "ModifyTable", - "Operation": "Delete", - "Parallel Aware": false, - "Plan Rows": 0, - "Plan Width": 0, - "Plans": [ - { - "Actual Loops": 1, - "Actual Rows": 0.0, - "Alias": "extras_cachedvalue", - "Async Capable": false, - "Disabled": false, - "Filter": "(object_id = ?)", - "Index Cond": "(object_type_id = ?)", - "Index Name": "extras_cachedvalue_object_type_id_6f47d444", - "Index Searches": 1, - "Local Dirtied Blocks": 0, - "Local Hit Blocks": 0, - "Local Read Blocks": 0, - "Local Written Blocks": 0, - "Node Type": "Index Scan", - "Parallel Aware": false, - "Parent Relationship": "Outer", - "Plan Rows": 1, - "Plan Width": 6, - "Relation Name": "extras_cachedvalue", - "Rows Removed by Filter": 7, - "Rows Removed by Index Recheck": 0, - "Scan Direction": "Forward", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - } - ], - "Relation Name": "extras_cachedvalue", - "Shared Dirtied Blocks": 0, - "Shared Hit Blocks": 2, - "Shared Read Blocks": 0, - "Shared Written Blocks": 0, - "Startup Cost": 0.14, - "Temp Read Blocks": 0, - "Temp Written Blocks": 0, - "Total Cost": 8.16, - "WAL Buffers Full": 0, - "WAL Bytes": 0, - "WAL FPI": 0, - "WAL Records": 0 - }, - "Triggers": [] - }, - "statement_fingerprint": "62f3c88eda02ea3a62e6aff73ac35de1ad1b0345efe27ceebf6d6e538e5cd0ba" - } - ], - "statements": [ - { - "calls": 8, - "fingerprint": "06febe980916cda1ba3c3e9f2f19d12e731d25eb7db8871f7c570b090a6f5d74", - "normalized_sql": "SELECT \"dcim_site\".\"id\", \"dcim_site\".\"created\", \"dcim_site\".\"last_updated\", \"dcim_site\".\"custom_field_data\", \"dcim_site\".\"owner_id\", \"dcim_site\".\"description\", \"dcim_site\".\"comments\", \"dcim_site\".\"name\", \"dcim_site\".\"slug\", \"dcim_site\".\"status\", \"dcim_site\".\"region_id\", \"dcim_site\".\"group_id\", \"dcim_site\".\"tenant_id\", \"dcim_site\".\"facility\", \"dcim_site\".\"time_zone\", \"dcim_site\".\"physical_address\", \"dcim_site\".\"shipping_address\", \"dcim_site\".\"latitude\", \"dcim_site\".\"longitude\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "1d7980ec9255f9082e6a6b66e3cbd60bc3ca10dfd09291ed8c27afd06e5a5ecf", - "normalized_sql": "UPDATE \"dcim_interface\" SET \"created\" = %s, \"last_updated\" = %s, \"custom_field_data\" = %s, \"owner_id\" = %s, \"device_id\" = %s, \"name\" = %s, \"label\" = %s, \"description\" = %s, \"_site_id\" = %s, \"_location_id\" = %s, \"_rack_id\" = %s, \"module_id\" = %s, \"cable_id\" = %s, \"cable_end\" = %s, \"cable_connector\" = %s, \"cable_positions\" = %s::smallint[], \"mark_connected\" = %s, \"_path_id\" = %s, \"enabled\" = %s, \"mtu\" = %s, \"mode\" = %s, \"parent_id\" = %s, \"bridge_id\" = %s, \"untagged_vlan_id\" = %s, \"qinq_svlan_id\" = %s, \"vlan_translation_policy_id\" = %s, \"primary_mac_address_id\" = %s, \"_name\" = %s, \"lag_id\" = %s, \"type\" = %s, \"channels\" = %s, \"channel_id\" = %s, \"mgmt_only\" = %s, \"speed\" = %s, \"duplex\" = %s, \"wwn\" = %s, \"rf_role\" = %s, \"rf_channel\" = %s, \"rf_channel_frequency\" = %s, \"rf_channel_width\" = %s, \"tx_power\" = %s, \"poe_mode\" = %s, \"poe_type\" = %s, \"wireless_link_id\" = %s, \"vrf_id\" = %s WHERE \"dcim_interface\".\"id\" = %s", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "2871ff686014bef3d8de350fef209456789abf15d631e0c44f48dc28ce52016a", - "normalized_sql": "SELECT \"dcim_interface_tagged_vlans\".\"id\", \"dcim_interface_tagged_vlans\".\"interface_id\", \"dcim_interface_tagged_vlans\".\"vlan_id\" FROM \"dcim_interface_tagged_vlans\" WHERE \"dcim_interface_tagged_vlans\".\"interface_id\" = %s", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "2ced71e7894cbacf12e4fa7275d34e300a7438561c0ffa5aaa2dac0639eecade", - "normalized_sql": "SELECT \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_moduletype\" WHERE \"dcim_moduletype\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "331fc0eceb8d48f3b2c23890d170c169db5a3f58542187851baa9cc1babff931", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"module_id\" = %s ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "351a75561b5e6adf8a28a2e10daa951cc1cfe07eaa1914a33849f1f95d5cd770", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\", \"dcim_platform\".\"id\", \"dcim_platform\".\"created\", \"dcim_platform\".\"last_updated\", \"dcim_platform\".\"custom_field_data\", \"dcim_platform\".\"path\", \"dcim_platform\".\"owner_id\", \"dcim_platform\".\"name\", \"dcim_platform\".\"slug\", \"dcim_platform\".\"description\", \"dcim_platform\".\"comments\", \"dcim_platform\".\"parent_id\", \"dcim_platform\".\"sort_path\", \"dcim_platform\".\"manufacturer_id\", \"dcim_platform\".\"config_template_id\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"dcim_moduletype\".\"id\", \"dcim_moduletype\".\"created\", \"dcim_moduletype\".\"last_updated\", \"dcim_moduletype\".\"custom_field_data\", \"dcim_moduletype\".\"owner_id\", \"dcim_moduletype\".\"weight\", \"dcim_moduletype\".\"weight_unit\", \"dcim_moduletype\".\"_abs_weight\", \"dcim_moduletype\".\"description\", \"dcim_moduletype\".\"comments\", \"dcim_moduletype\".\"profile_id\", \"dcim_moduletype\".\"manufacturer_id\", \"dcim_moduletype\".\"model\", \"dcim_moduletype\".\"part_number\", \"dcim_moduletype\".\"airflow\", \"dcim_moduletype\".\"cooling_method\", \"dcim_moduletype\".\"end_of_life\", \"dcim_moduletype\".\"attribute_data\", \"dcim_moduletype\".\"module_count\", \"dcim_moduletype\".\"console_port_template_count\", \"dcim_moduletype\".\"console_server_port_template_count\", \"dcim_moduletype\".\"power_port_template_count\", \"dcim_moduletype\".\"power_outlet_template_count\", \"dcim_moduletype\".\"cooling_intake_template_count\", \"dcim_moduletype\".\"cooling_outflow_template_count\", \"dcim_moduletype\".\"interface_template_count\", \"dcim_moduletype\".\"front_port_template_count\", \"dcim_moduletype\".\"rear_port_template_count\", \"dcim_moduletype\".\"module_bay_template_count\" FROM \"dcim_module\" INNER JOIN \"dcim_device\" ON (\"dcim_module\".\"device_id\" = \"dcim_device\".\"id\") INNER JOIN \"dcim_devicetype\" ON (\"dcim_device\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_platform\" ON (\"dcim_device\".\"platform_id\" = \"dcim_platform\".\"id\") LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") INNER JOIN \"dcim_moduletype\" ON (\"dcim_module\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"dcim_module\".\"device_id\" = %s ORDER BY \"dcim_modulebay\".\"sort_path\" ASC, \"dcim_modulebay\".\"id\" ASC", - "rows_affected": 8 - }, - { - "calls": 24, - "fingerprint": "4379c9d5228e4c4b379196d2c59d0e166d0c025374ec53673c9e06ebcce6055c", - "normalized_sql": "SELECT \"extras_customfield\".\"id\", \"extras_customfield\".\"created\", \"extras_customfield\".\"last_updated\", \"extras_customfield\".\"owner_id\", \"extras_customfield\".\"type\", \"extras_customfield\".\"related_object_type_id\", \"extras_customfield\".\"name\", \"extras_customfield\".\"label\", \"extras_customfield\".\"group_name\", \"extras_customfield\".\"description\", \"extras_customfield\".\"required\", \"extras_customfield\".\"unique\", \"extras_customfield\".\"search_weight\", \"extras_customfield\".\"filter_logic\", \"extras_customfield\".\"default\", \"extras_customfield\".\"related_object_filter\", \"extras_customfield\".\"weight\", \"extras_customfield\".\"validation_minimum\", \"extras_customfield\".\"validation_maximum\", \"extras_customfield\".\"validation_regex\", \"extras_customfield\".\"validation_schema\", \"extras_customfield\".\"choice_set_id\", \"extras_customfield\".\"ui_visible\", \"extras_customfield\".\"ui_editable\", \"extras_customfield\".\"is_cloneable\", \"extras_customfield\".\"nulls_first\", \"extras_customfield\".\"comments\", \"T4\".\"id\", \"T4\".\"app_label\", \"T4\".\"model\", \"extras_customfieldchoiceset\".\"id\", \"extras_customfieldchoiceset\".\"created\", \"extras_customfieldchoiceset\".\"last_updated\", \"extras_customfieldchoiceset\".\"owner_id\", \"extras_customfieldchoiceset\".\"name\", \"extras_customfieldchoiceset\".\"description\", \"extras_customfieldchoiceset\".\"base_choices\", \"extras_customfieldchoiceset\".\"extra_choices\", \"extras_customfieldchoiceset\".\"choice_colors\", \"extras_customfieldchoiceset\".\"order_alphabetically\" FROM \"extras_customfield\" INNER JOIN \"extras_customfield_object_types\" ON (\"extras_customfield\".\"id\" = \"extras_customfield_object_types\".\"customfield_id\") LEFT OUTER JOIN \"django_content_type\" \"T4\" ON (\"extras_customfield\".\"related_object_type_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"extras_customfieldchoiceset\" ON (\"extras_customfield\".\"choice_set_id\" = \"extras_customfieldchoiceset\".\"id\") WHERE \"extras_customfield_object_types\".\"contenttype_id\" = %s ORDER BY \"extras_customfield\".\"group_name\" ASC, \"extras_customfield\".\"weight\" ASC, \"extras_customfield\".\"name\" ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "4463a2e6f5b34e05ddc4603372562342f9574c1f20c945bda2306e144337911d", - "normalized_sql": "SELECT \"dcim_interface\".\"id\", \"dcim_interface\".\"created\", \"dcim_interface\".\"last_updated\", \"dcim_interface\".\"custom_field_data\", \"dcim_interface\".\"owner_id\", \"dcim_interface\".\"device_id\", \"dcim_interface\".\"name\", \"dcim_interface\".\"label\", \"dcim_interface\".\"description\", \"dcim_interface\".\"_site_id\", \"dcim_interface\".\"_location_id\", \"dcim_interface\".\"_rack_id\", \"dcim_interface\".\"module_id\", \"dcim_interface\".\"cable_id\", \"dcim_interface\".\"cable_end\", \"dcim_interface\".\"cable_connector\", \"dcim_interface\".\"cable_positions\", \"dcim_interface\".\"mark_connected\", \"dcim_interface\".\"_path_id\", \"dcim_interface\".\"enabled\", \"dcim_interface\".\"mtu\", \"dcim_interface\".\"mode\", \"dcim_interface\".\"parent_id\", \"dcim_interface\".\"bridge_id\", \"dcim_interface\".\"untagged_vlan_id\", \"dcim_interface\".\"qinq_svlan_id\", \"dcim_interface\".\"vlan_translation_policy_id\", \"dcim_interface\".\"primary_mac_address_id\", \"dcim_interface\".\"_name\", \"dcim_interface\".\"lag_id\", \"dcim_interface\".\"type\", \"dcim_interface\".\"channels\", \"dcim_interface\".\"channel_id\", \"dcim_interface\".\"mgmt_only\", \"dcim_interface\".\"speed\", \"dcim_interface\".\"duplex\", \"dcim_interface\".\"wwn\", \"dcim_interface\".\"rf_role\", \"dcim_interface\".\"rf_channel\", \"dcim_interface\".\"rf_channel_frequency\", \"dcim_interface\".\"rf_channel_width\", \"dcim_interface\".\"tx_power\", \"dcim_interface\".\"poe_mode\", \"dcim_interface\".\"poe_type\", \"dcim_interface\".\"wireless_link_id\", \"dcim_interface\".\"vrf_id\" FROM \"dcim_interface\" INNER JOIN \"dcim_device\" ON (\"dcim_interface\".\"device_id\" = \"dcim_device\".\"id\") WHERE \"dcim_interface\".\"id\" IN (%s) ORDER BY \"dcim_device\".\"name\" ASC, \"dcim_device\".\"id\" ASC, (\"dcim_interface\".\"_name\") COLLATE \"C\" ASC", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "4a74ee7f612b8270234ed453a19d9adfff965b2dc766c88dedfe0c015ca230a6", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE (\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" AND \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" AND (\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" = %s OR \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\" IS NULL) AND (\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL OR \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\" IS NULL)) ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "4d6f26912e8464e7ee367859a6a396be5311d3570415b0db32c390b6bd2e1a80", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\", \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_device\" LEFT OUTER JOIN \"dcim_virtualchassis\" ON (\"dcim_device\".\"virtual_chassis_id\" = \"dcim_virtualchassis\".\"id\") WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 8, - "fingerprint": "5cd8c9b732f820a0c60adb83a54afff0c6f08fe6a1297e68a1c93ddce51622b9", - "normalized_sql": "DELETE FROM \"extras_cachedvalue\" WHERE (\"extras_cachedvalue\".\"object_id\" IN (%s) AND \"extras_cachedvalue\".\"object_type_id\" = %s)", - "rows_affected": 0 - }, - { - "calls": 1, - "fingerprint": "66056d3ffe6db690c070918d8e334ac268aafa99af5afeb6ed1e35b17ac0de2e", - "normalized_sql": "SELECT \"dcim_devicetype\".\"id\", \"dcim_devicetype\".\"created\", \"dcim_devicetype\".\"last_updated\", \"dcim_devicetype\".\"custom_field_data\", \"dcim_devicetype\".\"owner_id\", \"dcim_devicetype\".\"weight\", \"dcim_devicetype\".\"weight_unit\", \"dcim_devicetype\".\"_abs_weight\", \"dcim_devicetype\".\"description\", \"dcim_devicetype\".\"comments\", \"dcim_devicetype\".\"manufacturer_id\", \"dcim_devicetype\".\"model\", \"dcim_devicetype\".\"slug\", \"dcim_devicetype\".\"default_platform_id\", \"dcim_devicetype\".\"part_number\", \"dcim_devicetype\".\"u_height\", \"dcim_devicetype\".\"exclude_from_utilization\", \"dcim_devicetype\".\"is_full_depth\", \"dcim_devicetype\".\"subdevice_role\", \"dcim_devicetype\".\"airflow\", \"dcim_devicetype\".\"cooling_method\", \"dcim_devicetype\".\"end_of_life\", \"dcim_devicetype\".\"front_image\", \"dcim_devicetype\".\"rear_image\", \"dcim_devicetype\".\"console_port_template_count\", \"dcim_devicetype\".\"console_server_port_template_count\", \"dcim_devicetype\".\"power_port_template_count\", \"dcim_devicetype\".\"power_outlet_template_count\", \"dcim_devicetype\".\"cooling_intake_template_count\", \"dcim_devicetype\".\"cooling_outflow_template_count\", \"dcim_devicetype\".\"interface_template_count\", \"dcim_devicetype\".\"front_port_template_count\", \"dcim_devicetype\".\"rear_port_template_count\", \"dcim_devicetype\".\"device_bay_template_count\", \"dcim_devicetype\".\"module_bay_template_count\", \"dcim_devicetype\".\"inventory_item_template_count\", \"dcim_devicetype\".\"device_count\" FROM \"dcim_devicetype\" WHERE \"dcim_devicetype\".\"id\" = %s LIMIT ?", - "rows_affected": 1 - }, - { - "calls": 16, - "fingerprint": "711e0ed5e08e6fc265bcc1d425b459bd96164b0fbb76b91a6cae5d36514cae4d", - "normalized_sql": "SELECT \"dcim_device\".\"id\", \"dcim_device\".\"created\", \"dcim_device\".\"last_updated\", \"dcim_device\".\"custom_field_data\", \"dcim_device\".\"owner_id\", \"dcim_device\".\"description\", \"dcim_device\".\"comments\", \"dcim_device\".\"_config_context_data\", \"dcim_device\".\"_config_context_generation\", \"dcim_device\".\"local_context_data\", \"dcim_device\".\"config_template_id\", \"dcim_device\".\"device_type_id\", \"dcim_device\".\"role_id\", \"dcim_device\".\"tenant_id\", \"dcim_device\".\"platform_id\", \"dcim_device\".\"name\", \"dcim_device\".\"serial\", \"dcim_device\".\"asset_tag\", \"dcim_device\".\"site_id\", \"dcim_device\".\"location_id\", \"dcim_device\".\"rack_id\", \"dcim_device\".\"position\", \"dcim_device\".\"face\", \"dcim_device\".\"status\", \"dcim_device\".\"airflow\", \"dcim_device\".\"cooling_method\", \"dcim_device\".\"primary_ip4_id\", \"dcim_device\".\"primary_ip6_id\", \"dcim_device\".\"oob_ip_id\", \"dcim_device\".\"cluster_id\", \"dcim_device\".\"virtual_chassis_id\", \"dcim_device\".\"vc_position\", \"dcim_device\".\"vc_priority\", \"dcim_device\".\"latitude\", \"dcim_device\".\"longitude\", \"dcim_device\".\"console_port_count\", \"dcim_device\".\"console_server_port_count\", \"dcim_device\".\"power_port_count\", \"dcim_device\".\"power_outlet_count\", \"dcim_device\".\"cooling_intake_count\", \"dcim_device\".\"cooling_outflow_count\", \"dcim_device\".\"interface_count\", \"dcim_device\".\"front_port_count\", \"dcim_device\".\"rear_port_count\", \"dcim_device\".\"device_bay_count\", \"dcim_device\".\"module_bay_count\", \"dcim_device\".\"inventory_item_count\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 16 - }, - { - "calls": 8, - "fingerprint": "74dfad0e8f3bb137726a17e0841f94b8f0b3905fea8a903c28b30aaac84e915a", - "normalized_sql": "INSERT INTO \"extras_cachedvalue\" (\"id\", \"timestamp\", \"object_type_id\", \"object_id\", \"field\", \"type\", \"value\", \"weight\") VALUES (%s, %s, %s, %s, %s, %s, %s, %s)", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "7789e1275ca55c16860cf0c9571a4c1e96a3ea1aa0ee8e8b275243f7198d614f", - "normalized_sql": "SELECT \"dcim_virtualchassis\".\"id\", \"dcim_virtualchassis\".\"created\", \"dcim_virtualchassis\".\"last_updated\", \"dcim_virtualchassis\".\"custom_field_data\", \"dcim_virtualchassis\".\"owner_id\", \"dcim_virtualchassis\".\"description\", \"dcim_virtualchassis\".\"comments\", \"dcim_virtualchassis\".\"master_id\", \"dcim_virtualchassis\".\"name\", \"dcim_virtualchassis\".\"domain\", \"dcim_virtualchassis\".\"member_count\" FROM \"dcim_virtualchassis\" WHERE \"dcim_virtualchassis\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 24, - "fingerprint": "77d4698832704ebe4a4eb80c26335c9d068a3b6f2324e1e07ec09e3efb50e440", - "normalized_sql": "RELEASE SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 16, - "fingerprint": "7c068e7c8a7445128c8542090429a092c09717ad09f4344f1ec905d1d11d0780", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_interface\" WHERE (\"dcim_interface\".\"device_id\" = %s AND \"dcim_interface\".\"name\" = %s AND NOT (\"dcim_interface\".\"id\" = %s)) LIMIT ?", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "87d936ee6da29a35561d5a7003246aacf222911517dc49b3dddabceec4f7be36", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_module\" WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "8d9940b3c6943a11256ded75a4dd502ece84932be56d50fbc669cd6f84eb47d0", - "normalized_sql": "SELECT COALESCE(MD5(STRING_AGG((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"id\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\")::text, %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s)))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE(COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"platform_id\")::text, %s), %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_count\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"channel_start\")::text, %s) || COALESCE((COALESCE((LENGTH((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text))::text, %s) || COALESCE((COALESCE(%s, %s) || COALESCE((\"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\")::text, %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s)), %s ORDER BY id)), %s) AS \"fingerprint\" FROM \"netbox_interface_name_rules_interfacenamerule\" WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\"", - "rows_affected": 1 - }, - { - "calls": 24, - "fingerprint": "97cf299abba4d821aa9e365e1e82bc336c884c73a4c26ea4879a294cd9bd3fca", - "normalized_sql": "SAVEPOINT \"s?_x?\"", - "rows_affected": 0 - }, - { - "calls": 48, - "fingerprint": "af118f36e517392884cd26c9e3bb563c5d3e967f8f28cf1068ed2fd3b3fd22bf", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE (\"django_content_type\".\"app_label\" = %s AND \"django_content_type\".\"model\" = %s) LIMIT ?", - "rows_affected": 48 - }, - { - "calls": 8, - "fingerprint": "b4197b2f7b8b9601d907944c405364aa6efe6778c64d2f72ffed4df1c953559d", - "normalized_sql": "SELECT \"dcim_interfacetemplate\".\"id\", \"dcim_interfacetemplate\".\"created\", \"dcim_interfacetemplate\".\"last_updated\", \"dcim_interfacetemplate\".\"name\", \"dcim_interfacetemplate\".\"label\", \"dcim_interfacetemplate\".\"description\", \"dcim_interfacetemplate\".\"device_type_id\", \"dcim_interfacetemplate\".\"module_type_id\", \"dcim_interfacetemplate\".\"_name\", \"dcim_interfacetemplate\".\"type\", \"dcim_interfacetemplate\".\"channels\", \"dcim_interfacetemplate\".\"channel_id\", \"dcim_interfacetemplate\".\"enabled\", \"dcim_interfacetemplate\".\"mgmt_only\", \"dcim_interfacetemplate\".\"parent_id\", \"dcim_interfacetemplate\".\"bridge_id\", \"dcim_interfacetemplate\".\"poe_mode\", \"dcim_interfacetemplate\".\"poe_type\", \"dcim_interfacetemplate\".\"rf_role\" FROM \"dcim_interfacetemplate\" INNER JOIN \"dcim_moduletype\" ON (\"dcim_interfacetemplate\".\"module_type_id\" = \"dcim_moduletype\".\"id\") LEFT OUTER JOIN \"dcim_devicetype\" ON (\"dcim_interfacetemplate\".\"device_type_id\" = \"dcim_devicetype\".\"id\") LEFT OUTER JOIN \"dcim_manufacturer\" ON (\"dcim_devicetype\".\"manufacturer_id\" = \"dcim_manufacturer\".\"id\") LEFT OUTER JOIN \"dcim_moduletypeprofile\" ON (\"dcim_moduletype\".\"profile_id\" = \"dcim_moduletypeprofile\".\"id\") INNER JOIN \"dcim_manufacturer\" \"T6\" ON (\"dcim_moduletype\".\"manufacturer_id\" = \"T6\".\"id\") WHERE \"dcim_interfacetemplate\".\"module_type_id\" = %s ORDER BY \"dcim_manufacturer\".\"name\" ASC, \"dcim_devicetype\".\"model\" ASC, \"dcim_moduletypeprofile\".\"name\" ASC, \"T6\".\"name\" ASC, \"dcim_moduletype\".\"model\" ASC, \"dcim_interfacetemplate\".\"name\" ASC", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "b659c9e68581d9074492141c6327cb92075079651c3e426d2cfe1cdae40bc4a5", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_device\" WHERE \"dcim_device\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "c88bcaa9223413e0548a1a9e5d344f00eabaea002bdf8a54923278cf03b6d655", - "normalized_sql": "SELECT \"extras_subscription\".\"user_id\" AS \"user\" FROM \"extras_subscription\" WHERE (\"extras_subscription\".\"object_id\" = %s AND \"extras_subscription\".\"object_type_id\" = %s) ORDER BY \"extras_subscription\".\"created\" DESC, ? ASC", - "rows_affected": 0 - }, - { - "calls": 8, - "fingerprint": "dd7bf0e8295e423c94719330f924072efc3c65734e635178e9e26d2911249e65", - "normalized_sql": "SELECT \"dcim_module\".\"id\", \"dcim_module\".\"created\", \"dcim_module\".\"last_updated\", \"dcim_module\".\"custom_field_data\", \"dcim_module\".\"owner_id\", \"dcim_module\".\"description\", \"dcim_module\".\"comments\", \"dcim_module\".\"device_id\", \"dcim_module\".\"module_bay_id\", \"dcim_module\".\"module_type_id\", \"dcim_module\".\"status\", \"dcim_module\".\"serial\", \"dcim_module\".\"asset_tag\", \"dcim_modulebay\".\"id\", \"dcim_modulebay\".\"created\", \"dcim_modulebay\".\"last_updated\", \"dcim_modulebay\".\"custom_field_data\", \"dcim_modulebay\".\"path\", \"dcim_modulebay\".\"owner_id\", \"dcim_modulebay\".\"device_id\", \"dcim_modulebay\".\"name\", \"dcim_modulebay\".\"label\", \"dcim_modulebay\".\"description\", \"dcim_modulebay\".\"_site_id\", \"dcim_modulebay\".\"_location_id\", \"dcim_modulebay\".\"_rack_id\", \"dcim_modulebay\".\"module_id\", \"dcim_modulebay\".\"parent_id\", \"dcim_modulebay\".\"position\", \"dcim_modulebay\".\"enabled\", \"dcim_modulebay\".\"sort_path\", \"T3\".\"id\", \"T3\".\"created\", \"T3\".\"last_updated\", \"T3\".\"custom_field_data\", \"T3\".\"owner_id\", \"T3\".\"description\", \"T3\".\"comments\", \"T3\".\"device_id\", \"T3\".\"module_bay_id\", \"T3\".\"module_type_id\", \"T3\".\"status\", \"T3\".\"serial\", \"T3\".\"asset_tag\", \"T4\".\"id\", \"T4\".\"created\", \"T4\".\"last_updated\", \"T4\".\"custom_field_data\", \"T4\".\"path\", \"T4\".\"owner_id\", \"T4\".\"device_id\", \"T4\".\"name\", \"T4\".\"label\", \"T4\".\"description\", \"T4\".\"_site_id\", \"T4\".\"_location_id\", \"T4\".\"_rack_id\", \"T4\".\"module_id\", \"T4\".\"parent_id\", \"T4\".\"position\", \"T4\".\"enabled\", \"T4\".\"sort_path\", \"T5\".\"id\", \"T5\".\"created\", \"T5\".\"last_updated\", \"T5\".\"custom_field_data\", \"T5\".\"owner_id\", \"T5\".\"description\", \"T5\".\"comments\", \"T5\".\"device_id\", \"T5\".\"module_bay_id\", \"T5\".\"module_type_id\", \"T5\".\"status\", \"T5\".\"serial\", \"T5\".\"asset_tag\", \"T6\".\"id\", \"T6\".\"created\", \"T6\".\"last_updated\", \"T6\".\"custom_field_data\", \"T6\".\"path\", \"T6\".\"owner_id\", \"T6\".\"device_id\", \"T6\".\"name\", \"T6\".\"label\", \"T6\".\"description\", \"T6\".\"_site_id\", \"T6\".\"_location_id\", \"T6\".\"_rack_id\", \"T6\".\"module_id\", \"T6\".\"parent_id\", \"T6\".\"position\", \"T6\".\"enabled\", \"T6\".\"sort_path\", \"T7\".\"id\", \"T7\".\"created\", \"T7\".\"last_updated\", \"T7\".\"custom_field_data\", \"T7\".\"path\", \"T7\".\"owner_id\", \"T7\".\"device_id\", \"T7\".\"name\", \"T7\".\"label\", \"T7\".\"description\", \"T7\".\"_site_id\", \"T7\".\"_location_id\", \"T7\".\"_rack_id\", \"T7\".\"module_id\", \"T7\".\"parent_id\", \"T7\".\"position\", \"T7\".\"enabled\", \"T7\".\"sort_path\" FROM \"dcim_module\" INNER JOIN \"dcim_modulebay\" ON (\"dcim_module\".\"module_bay_id\" = \"dcim_modulebay\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T3\" ON (\"dcim_modulebay\".\"module_id\" = \"T3\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T4\" ON (\"T3\".\"module_bay_id\" = \"T4\".\"id\") LEFT OUTER JOIN \"dcim_module\" \"T5\" ON (\"T4\".\"module_id\" = \"T5\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T6\" ON (\"T4\".\"parent_id\" = \"T6\".\"id\") LEFT OUTER JOIN \"dcim_modulebay\" \"T7\" ON (\"dcim_modulebay\".\"parent_id\" = \"T7\".\"id\") WHERE \"dcim_module\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "ea4fe0a6ab9a5a16bbefdcd01c923fe4ddbb4436a365c376a135f124b2438529", - "normalized_sql": "SELECT %s AS \"a\" FROM \"dcim_site\" WHERE \"dcim_site\".\"id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 8, - "fingerprint": "ed2d2c3466b1bee709615ae92c7f7b8c1e1773072f72be1ddd12df74eec9f6ec", - "normalized_sql": "SELECT \"django_content_type\".\"id\", \"django_content_type\".\"app_label\", \"django_content_type\".\"model\", \"core_objecttype\".\"contenttype_ptr_id\", \"core_objecttype\".\"public\", \"core_objecttype\".\"features\" FROM \"core_objecttype\" INNER JOIN \"django_content_type\" ON (\"core_objecttype\".\"contenttype_ptr_id\" = \"django_content_type\".\"id\") WHERE \"core_objecttype\".\"contenttype_ptr_id\" = %s LIMIT ?", - "rows_affected": 8 - }, - { - "calls": 1, - "fingerprint": "fd0f66e12870b84bfaa2414306855b3253d70615c6a4a6dfae85fc98989a5163", - "normalized_sql": "SELECT \"netbox_interface_name_rules_interfacenamerule\".\"id\", \"netbox_interface_name_rules_interfacenamerule\".\"created\", \"netbox_interface_name_rules_interfacenamerule\".\"last_updated\", \"netbox_interface_name_rules_interfacenamerule\".\"custom_field_data\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_pattern\", \"netbox_interface_name_rules_interfacenamerule\".\"module_type_is_regex\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_module_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"device_type_id\", \"netbox_interface_name_rules_interfacenamerule\".\"platform_id\", \"netbox_interface_name_rules_interfacenamerule\".\"name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"parent_name_template\", \"netbox_interface_name_rules_interfacenamerule\".\"breakout_mode\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_count\", \"netbox_interface_name_rules_interfacenamerule\".\"channel_start\", \"netbox_interface_name_rules_interfacenamerule\".\"description\", \"netbox_interface_name_rules_interfacenamerule\".\"enabled\", \"netbox_interface_name_rules_interfacenamerule\".\"applies_to_device_interfaces\" FROM \"netbox_interface_name_rules_interfacenamerule\" LEFT OUTER JOIN \"dcim_moduletype\" ON (\"netbox_interface_name_rules_interfacenamerule\".\"module_type_id\" = \"dcim_moduletype\".\"id\") WHERE \"netbox_interface_name_rules_interfacenamerule\".\"enabled\" ORDER BY \"dcim_moduletype\".\"model\" ASC, \"netbox_interface_name_rules_interfacenamerule\".\"id\" ASC", - "rows_affected": 1 - } - ], - "totals": { - "actual_loops": 238, - "actual_rows_per_work_unit": 20.5, - "actual_rows_times_loops": 164, - "local_dirtied_blocks": 0, - "local_hit_blocks": 0, - "local_read_blocks": 0, - "local_written_blocks": 0, - "planned_statement_calls": 238, - "planner_rows": 461, - "planner_total_cost": 3624.8899999999985, - "planner_total_cost_per_work_unit": 453.1112499999998, - "shared_dirtied_blocks": 4, - "shared_hit_blocks": 1427, - "shared_hit_blocks_per_work_unit": 178.375, - "shared_read_blocks": 4, - "shared_written_blocks": 0, - "statement_calls": 286, - "statement_calls_per_work_unit": 35.75, - "temp_read_blocks": 0, - "temp_written_blocks": 0, - "wal_bytes": 13992, - "wal_fpi": 0, - "wal_records": 200, - "work_units": 8 - } - }, - "description": "Virtual chassis reapply across 8 module(s)", - "fixture": { - "devices": 1, - "enabled_rules": 1, - "interface_templates": 1, - "interfaces_before": 8, - "module_bays": 8, - "modules_before": 8 - }, - "layer": "direct_callback", - "machine_time": { - "process_cpu": { - "median_ms": 619.159207, - "p95_ms": 648.9389732999999, - "samples_ns": [ - 619159207, - 635589709, - 606417715, - 634953730, - 608948662, - 604820054, - 622091920, - 658542428, - 626669787, - 609113787, - 612106177, - 644823207, - 558382794, - 616913314, - 625691005 - ] - }, - "wall": { - "median_ms": 822.67852, - "p95_ms": 852.6234944, - "samples_ns": [ - 822678520, - 838065972, - 807334041, - 840549083, - 804948966, - 800766024, - 835723935, - 866258359, - 831723223, - 814278182, - 814702979, - 845613067, - 761148490, - 811360749, - 846779981 - ] - }, - "warmup": { - "process_cpu": { - "median_ms": 672.207153, - "p95_ms": 688.3863288, - "samples_ns": [ - 626237037, - 672207153, - 690184015 - ] - }, - "wall": { - "median_ms": 875.722726, - "p95_ms": 923.9538259, - "samples_ns": [ - 825792136, - 875722726, - 929312837 - ] - } - } - }, - "name": "vc.direct_callback.reapply_8", - "semantic_result": { - "interface_names": [ - "et-2/0/1", - "et-2/0/2", - "et-2/0/3", - "et-2/0/4", - "et-2/0/5", - "et-2/0/6", - "et-2/0/7", - "et-2/0/8" - ], - "interfaces_after": 8 - } - } - ], - "schema_version": 1 -} From a40fe73c4f100b94cf1449c8f33c88241ca79918 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 20:03:05 +0200 Subject: [PATCH 08/74] fix: isolate signal performance measurements --- .../tests/signal_performance.py | 169 ++++++++++++------ 1 file changed, 113 insertions(+), 56 deletions(-) diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index 9b00c2b..204de47 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -20,7 +20,7 @@ import time from collections import Counter from collections.abc import Callable -from dataclasses import dataclass +from dataclasses import dataclass, replace from datetime import UTC, datetime from pathlib import Path from typing import Any @@ -41,9 +41,10 @@ Site, VirtualChassis, ) +from django.apps import apps from django.conf import settings from django.db import DatabaseError, connection, transaction -from django.test import TestCase +from django.test import TransactionTestCase from netbox_interface_name_rules import __version__ as plugin_version from netbox_interface_name_rules.choices import BreakoutModeChoices @@ -206,6 +207,7 @@ class _PreparedScenario: operation: Callable[[], None] verify: Callable[[], dict[str, Any]] + cleanup: Callable[[], None] fixture: dict[str, int] work_units: int @@ -612,9 +614,10 @@ def _markdown_summary(artifact: dict[str, Any]) -> str: return "\n".join(lines) -class SignalPathPerformanceTest(TestCase): +class SignalPathPerformanceTest(TransactionTestCase): """Generate retained evidence for the existing automatic naming implementation.""" + available_apps = tuple(app_config.name for app_config in apps.get_app_configs()) maxDiff = None def _build_device(self, prefix: str, bay_positions=(), **device_kwargs): @@ -678,7 +681,19 @@ def _fixture(module_type: ModuleType, device: Device) -> dict[str, int]: "enabled_rules": InterfaceNameRule.objects.filter(enabled=True).count(), } - def _module_operation(self, device, module_type, direct, expected_names) -> _PreparedScenario: + @staticmethod + def _cleanup_fixture(prefix: str) -> None: + """Delete one committed scenario fixture without changing shared reference data.""" + manufacturer_name = f"{prefix}Mfg" + Device.objects.filter(name=f"{prefix.lower()}-device").delete() + ModuleType.objects.filter(manufacturer__name=manufacturer_name).delete() + DeviceType.objects.filter(manufacturer__name=manufacturer_name).delete() + Manufacturer.objects.filter(name=manufacturer_name).delete() + DeviceRole.objects.filter(name=f"{prefix}Role").delete() + Site.objects.filter(name=f"{prefix}Site").delete() + VirtualChassis.objects.filter(name=f"{prefix}-VC").delete() + + def _module_operation(self, prefix, device, module_type, direct, expected_names) -> _PreparedScenario: """Prepare either a complete install path or its deferred callback only.""" bay = ModuleBay.objects.get(device=device, position="3") holder: dict[str, Module] = {} @@ -686,13 +701,12 @@ def _module_operation(self, device, module_type, direct, expected_names) -> _Pre holder["module"] = Module.objects.create(device=device, module_bay=bay, module_type=module_type) def operation(): - with self.captureOnCommitCallbacks(execute=True): - _apply_rules_deferred(holder["module"].pk, bay.pk) + _apply_rules_deferred(holder["module"].pk, bay.pk) else: def operation(): - with self.captureOnCommitCallbacks(execute=True): + with transaction.atomic(): holder["module"] = Module.objects.create( device=device, module_bay=bay, @@ -707,6 +721,7 @@ def verify(): return _PreparedScenario( operation=operation, verify=verify, + cleanup=lambda: self._cleanup_fixture(prefix), fixture=self._fixture(module_type, device), work_units=len(expected_names), ) @@ -719,43 +734,49 @@ def _prepare_module(self, prefix: str, kind: str, direct: bool) -> _PreparedScen else: module_type = self._plain_module_type(manufacturer, f"{prefix}-Module") + rule_options: dict[str, Any] if kind == "no_matching_rule": other_type = ModuleType.objects.create( manufacturer=manufacturer, model=f"{prefix}-Other", part_number=f"{prefix}-Other", ) - InterfaceNameRule.objects.create(module_type=other_type, name_template="unused-{bay_position}") + rule_module_type = other_type + rule_options = {"name_template": "unused-{bay_position}"} expected = ["3"] elif kind == "plain_rename": - InterfaceNameRule.objects.create(module_type=module_type, name_template="et-0/0/{bay_position}") + rule_module_type = module_type + rule_options = {"name_template": "et-0/0/{bay_position}"} expected = ["et-0/0/3"] elif kind == "structural_creation": - InterfaceNameRule.objects.create( - module_type=module_type, - name_template="xe-0/0/{bay_position}:{channel}", - parent_name_template="et-0/0/{bay_position}", - breakout_mode=BreakoutModeChoices.CHANNELIZED, - channel_count=4, - channel_start=0, - ) + rule_module_type = module_type + rule_options = { + "name_template": "xe-0/0/{bay_position}:{channel}", + "parent_name_template": "et-0/0/{bay_position}", + "breakout_mode": BreakoutModeChoices.CHANNELIZED, + "channel_count": 4, + "channel_start": 0, + } expected = ["et-0/0/3", "xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:2", "xe-0/0/3:3"] elif kind == "existing_family": - InterfaceNameRule.objects.create(module_type=module_type, name_template="et-0/0/{bay_position}") + rule_module_type = module_type + rule_options = {"name_template": "et-0/0/{bay_position}"} expected = ["et-0/0/3", "et-0/0/3:1", "et-0/0/3:2", "et-0/0/3:3", "et-0/0/3:4"] elif kind == "reconciliation": - InterfaceNameRule.objects.create( - module_type=module_type, - name_template="{base}:{channel}", - parent_name_template="et-0/0/{bay_position}", - breakout_mode=BreakoutModeChoices.CHANNELIZED, - channel_count=4, - channel_start=1, - ) + rule_module_type = module_type + rule_options = { + "name_template": "{base}:{channel}", + "parent_name_template": "et-0/0/{bay_position}", + "breakout_mode": BreakoutModeChoices.CHANNELIZED, + "channel_count": 4, + "channel_start": 1, + } expected = ["3:1", "3:2", "3:3", "3:4", "et-0/0/3"] else: raise AssertionError(f"Unknown module scenario {kind!r}.") - return self._module_operation(device, module_type, direct, expected) + prepared = self._module_operation(prefix, device, module_type, direct, expected) + InterfaceNameRule.objects.create(module_type=rule_module_type, **rule_options) + return replace(prepared, fixture=self._fixture(module_type, device)) def _prepare_vc(self, prefix: str, module_count: int, direct: bool) -> _PreparedScenario: """Build a VC reapply scenario with one or eight installed modules.""" @@ -771,10 +792,9 @@ def _prepare_vc(self, prefix: str, module_count: int, direct: bool) -> _Prepared f"{prefix}-Module", name="xe-{vc_position:0}/0/{module}", ) - with self.captureOnCommitCallbacks(execute=True): - for position in range(1, module_count + 1): - bay = ModuleBay.objects.get(device=device, position=str(position)) - Module.objects.create(device=device, module_bay=bay, module_type=module_type) + for position in range(1, module_count + 1): + bay = ModuleBay.objects.get(device=device, position=str(position)) + Module.objects.create(device=device, module_bay=bay, module_type=module_type) InterfaceNameRule.objects.create( module_type=module_type, name_template="et-{vc_position}/0/{bay_position}", @@ -784,14 +804,13 @@ def _prepare_vc(self, prefix: str, module_count: int, direct: bool) -> _Prepared Device.objects.filter(pk=device.pk).update(vc_position=2) def operation(): - with self.captureOnCommitCallbacks(execute=True): - _apply_rules_for_device_deferred(device.pk) + _apply_rules_for_device_deferred(device.pk) else: def operation(): device.vc_position = 2 - with self.captureOnCommitCallbacks(execute=True): + with transaction.atomic(): device.save() expected = [f"et-2/0/{position}" for position in range(1, module_count + 1)] @@ -804,6 +823,7 @@ def verify(): return _PreparedScenario( operation=operation, verify=verify, + cleanup=lambda: self._cleanup_fixture(prefix), fixture=self._fixture(module_type, device), work_units=module_count, ) @@ -858,6 +878,35 @@ def test_direct_vc_fixture_has_target_position(self): device = Device.objects.get(name=f"{prefix.lower()}-device") self.assertEqual(device.vc_position, 2) + def test_complete_model_save_callback_runs_after_commit(self): + """Measure the deferred callback outside the model-save transaction.""" + prepared = self._prepare_module("PerfCommittedCallback", "plain_rename", direct=False) + atomic_states = [] + + def record_atomic_state(execute, sql, params, many, context): + result = execute(sql, params, many, context) + atomic_states.append(connection.in_atomic_block) + return result + + with connection.execute_wrapper(record_atomic_state): + prepared.operation() + + self.assertIn(False, atomic_states) + + def test_direct_module_fixture_includes_the_measured_rule(self): + """Record fixture counts after direct-callback setup is complete.""" + prepared = self._prepare_module("PerfDirectFixture", "plain_rename", direct=True) + + self.assertEqual(prepared.fixture["enabled_rules"], 1) + + def test_profile_closes_the_instrumented_connection(self): + """Make the later timing pass open a session without auto_explain hooks.""" + scenario = self._scenarios()[0] + + self._profile_scenario(scenario) + + self.assertIsNone(connection.connection) + def test_auto_explain_teardown_preserves_database_error(self): """Keep the original database diagnosis when profiling aborts.""" with self.assertRaisesRegex(DatabaseError, "division by zero"), transaction.atomic(): @@ -866,24 +915,25 @@ def test_auto_explain_teardown_preserves_database_error(self): def test_plan_grouping_ignores_runtime_counters(self): """Group one SQL plan shape even when its runtime work changes.""" - with connection.cursor() as cursor: - cursor.execute("CREATE TEMPORARY TABLE profile_grouping_left (value integer) ON COMMIT DROP") - cursor.execute("CREATE TEMPORARY TABLE profile_grouping_right (value integer) ON COMMIT DROP") - cursor.execute("INSERT INTO profile_grouping_left VALUES (1)") - cursor.execute("INSERT INTO profile_grouping_right VALUES (1)") - cursor.execute("SET LOCAL enable_hashjoin = off") - cursor.execute("SET LOCAL enable_mergejoin = off") - - with _auto_explain_notices() as notices, connection.cursor() as cursor: - cursor.execute( - "SELECT left_side.value FROM profile_grouping_left AS left_side " - "JOIN profile_grouping_right AS right_side ON left_side.value = right_side.value" - ) - cursor.execute("INSERT INTO profile_grouping_left VALUES (2)") - cursor.execute( - "SELECT left_side.value FROM profile_grouping_left AS left_side " - "JOIN profile_grouping_right AS right_side ON left_side.value = right_side.value" - ) + with transaction.atomic(): + with connection.cursor() as cursor: + cursor.execute("CREATE TEMPORARY TABLE profile_grouping_left (value integer) ON COMMIT DROP") + cursor.execute("CREATE TEMPORARY TABLE profile_grouping_right (value integer) ON COMMIT DROP") + cursor.execute("INSERT INTO profile_grouping_left VALUES (1)") + cursor.execute("INSERT INTO profile_grouping_right VALUES (1)") + cursor.execute("SET LOCAL enable_hashjoin = off") + cursor.execute("SET LOCAL enable_mergejoin = off") + + with _auto_explain_notices() as notices, connection.cursor() as cursor: + cursor.execute( + "SELECT left_side.value FROM profile_grouping_left AS left_side " + "JOIN profile_grouping_right AS right_side ON left_side.value = right_side.value" + ) + cursor.execute("INSERT INTO profile_grouping_left VALUES (2)") + cursor.execute( + "SELECT left_side.value FROM profile_grouping_left AS left_side " + "JOIN profile_grouping_right AS right_side ON left_side.value = right_side.value" + ) select_plans = [ plan @@ -904,7 +954,7 @@ def _analyze_tables() -> None: def _profile_scenario(self, scenario: _Scenario) -> dict[str, Any]: """Record SQL statements and PostgreSQL work for one operation.""" - savepoint = transaction.savepoint() + prepared = None try: prepared = scenario.prepare() self._analyze_tables() @@ -928,16 +978,22 @@ def _profile_scenario(self, scenario: _Scenario) -> dict[str, Any]: }, } finally: - transaction.savepoint_rollback(savepoint) + if prepared is not None: + prepared.cleanup() + connection.close() def _time_scenario(self, scenario: _Scenario, samples: int, warmups: int) -> dict[str, Any]: """Measure the uninstrumented operation with fresh fixtures for every sample.""" + with connection.cursor() as cursor: + cursor.execute("SELECT current_setting('auto_explain.log_min_duration', true)") + if cursor.fetchone()[0] is not None: + self.fail("The timing session has loaded auto_explain instrumentation.") warmup_wall_samples = [] warmup_cpu_samples = [] wall_samples = [] cpu_samples = [] for sample_index in range(warmups + samples): - savepoint = transaction.savepoint() + prepared = None try: prepared = scenario.prepare() self._analyze_tables() @@ -961,7 +1017,8 @@ def _time_scenario(self, scenario: _Scenario, samples: int, warmups: int) -> dic wall_samples.append(wall_elapsed) cpu_samples.append(cpu_elapsed) finally: - transaction.savepoint_rollback(savepoint) + if prepared is not None: + prepared.cleanup() return { "warmup": { "wall": _optional_summary(warmup_wall_samples), From ccfd618d0bdee643cf2b36fb06970a4878fd9426 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 20:12:56 +0200 Subject: [PATCH 09/74] fix: scrub untagged dollar literals --- .../tests/signal_performance.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index 204de47..cb9505c 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -66,7 +66,10 @@ _SPACE_RE = re.compile(r"\s+") _STRING_LITERAL_RE = re.compile(r"(?i)(?:e|u&)?'(?:''|[^'])*'") -_DOLLAR_LITERAL_RE = re.compile(r"\$(?P[A-Za-z_][A-Za-z_0-9]*)?\$.*?\$(?P=tag)\$", re.DOTALL) +_DOLLAR_LITERAL_RE = re.compile( + r"\$\$.*?\$\$|\$(?P[A-Za-z_][A-Za-z_0-9]*)\$.*?\$(?P=tag)\$", + re.DOTALL, +) _NUMBER_RE = re.compile(r"(? Date: Sun, 23 Aug 2026 22:21:42 +0200 Subject: [PATCH 10/74] refactor: extract naming evaluation Refs #76. --- netbox_interface_name_rules/engine.py | 166 +++--------------- netbox_interface_name_rules/naming.py | 133 ++++++++++++++ .../tests/test_naming.py | 74 ++++++++ netbox_interface_name_rules/views.py | 2 +- 4 files changed, 234 insertions(+), 141 deletions(-) create mode 100644 netbox_interface_name_rules/naming.py create mode 100644 netbox_interface_name_rules/tests/test_naming.py diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 80da2de..dd5f3eb 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -6,7 +6,6 @@ after Django is fully initialised. """ -import ast import copy import logging import re @@ -15,7 +14,7 @@ from django.core.exceptions import ValidationError from django.db import IntegrityError, transaction -from . import rule_selection +from . import naming, rule_selection from .choices import BreakoutModeChoices from .rule_selection import _compile_pattern @@ -32,6 +31,31 @@ def find_matching_rule(module_type, parent_module_type, device_type, platform=No return rule_selection.find_matching_rule(module_type, parent_module_type, device_type, platform) +def _extract_trailing_digits(value: str) -> str: + """Delegate trailing-digit extraction while preserving the engine helper.""" + return naming._extract_trailing_digits(value) + + +def _resolve_bay_position(module_bay): + """Delegate bay-position resolution while preserving the engine helper.""" + return naming._resolve_bay_position(module_bay) + + +def _resolve_slot(module_bay, bay_position_num, parent_bay_position): + """Delegate slot resolution while preserving the engine helper.""" + return naming._resolve_slot(module_bay, bay_position_num, parent_bay_position) + + +def build_variables(module_bay, device=None): + """Delegate naming-variable construction while preserving the engine entry point.""" + return naming.build_variables(module_bay, device=device) + + +def evaluate_name_template(template: str, variables: dict) -> str: + """Delegate template evaluation while preserving the engine entry point.""" + return naming.evaluate_name_template(template, variables) + + def _get_parent_module_type(module_bay): """Return the module type of the module installed in the parent bay, or None. @@ -862,95 +886,6 @@ def _flag_rule_potentially_deprecated(rule): logger.exception("Failed to flag rule '%s' as potentially-deprecated.", rule) -def _extract_trailing_digits(s: str) -> str: - r"""Return the trailing digit run of *s* without regex backtracking. - - Pure O(n) string scan — eliminates the polynomial backtracking risk that - arises from using ``re.search(r"(\d+)$", ...)`` on strings ending in a - non-digit character (e.g. ``"1" * n + "x"`` would cause O(n²) steps). - - Returns an empty string when *s* has no trailing digits. - """ - i = len(s) - while i > 0 and s[i - 1].isdigit(): - i -= 1 - return s[i:] - - -def _resolve_bay_position(module_bay): - """Return (bay_position, bay_position_num) from a module bay's position field. - - Handles template expressions like ``{module}`` by extracting the trailing - digit from the bay name. Falls back to ``"0"`` if no digit is found. - """ - bay_position = module_bay.position or "0" - if bay_position.startswith("{"): - digits = _extract_trailing_digits(module_bay.name) - bay_position = digits if digits else "0" - digits = _extract_trailing_digits(bay_position) - bay_position_num = digits if digits else "0" - return bay_position, bay_position_num - - -def _resolve_slot(module_bay, bay_position_num, parent_bay_position): - """Return the ``slot`` variable from the module bay hierarchy. - - When the bay has a parent bay, slot comes from the parent (or grandparent - when two levels of nesting exist). When the bay belongs to an installed - module with its own bay, slot comes from that module's bay position. - Falls back to ``bay_position_num``. - """ - if module_bay.parent: - parent_bay = module_bay.parent - if parent_bay.parent and hasattr(parent_bay.parent, "installed_module"): - return parent_bay.parent.position or parent_bay_position - return parent_bay_position - if hasattr(module_bay, "module") and module_bay.module: - owner_module = module_bay.module - if hasattr(owner_module, "module_bay") and owner_module.module_bay: - return owner_module.module_bay.position or bay_position_num - return bay_position_num - - -def build_variables(module_bay, device=None): - """Build template variable dict from a module bay's position context. - - Extracts numeric and raw position values from the bay and its parent chain, - producing the variables available for name_template substitution. - - Returns a dict with keys: slot, bay_position, bay_position_num, - parent_bay_position, sfp_slot, and optionally vc_position. - - ``vc_position`` is only injected when *device* is a Virtual Chassis member - (device.virtual_chassis_id is set). Templates using ``{vc_position}`` on a - non-VC device will raise ValueError during evaluation — this is intentional. - Note: Juniper VC positions start at 0, so 0 is a valid real-world value and - cannot be used as a "not in VC" sentinel. - """ - bay_position, bay_position_num = _resolve_bay_position(module_bay) - - parent_bay_position = "0" - if module_bay.parent: - parent_bay_position = module_bay.parent.position or "0" - - slot = _resolve_slot(module_bay, bay_position_num, parent_bay_position) - - result = { - "slot": slot, - "bay_position": bay_position, - "bay_position_num": bay_position_num, - "parent_bay_position": parent_bay_position, - "sfp_slot": bay_position_num, - } - if ( - device is not None - and getattr(device, "virtual_chassis_id", None) is not None - and device.vc_position is not None - ): - result["vc_position"] = str(device.vc_position) - return result - - def _name_exists_on_device(device, name, exclude_pk=None): """Return True if another interface on *device* already uses *name*. @@ -2213,52 +2148,3 @@ def _convert_flat_families(rule, base_pks, conflicts): # pragma: no cover - req continue converted += 1 return converted - - -def evaluate_name_template(template: str, variables: dict) -> str: - """Evaluate a name template with variable substitution and safe arithmetic. - - Supports templates like: - "GigabitEthernet{slot}/{8 + ({parent_bay_position} - 1) * 2 + {sfp_slot}}" - - Variables are substituted first, then any brace-enclosed expression - containing arithmetic operators is safely evaluated via AST. True division - (/) is not allowed — use floor division (//) instead. Results are cast to - int to ensure interface names are always whole numbers. - """ - # First pass: substitute all simple variables - result = template - for key, value in variables.items(): - result = result.replace(f"{{{key}}}", str(value)) - - # Second pass: evaluate any remaining brace-enclosed arithmetic expressions - def _eval_expr(match): - expr = match.group(1).strip() - # Allow digits, arithmetic operators (excluding lone /), parens, whitespace. - # Negative lookahead disallows a single / that is not part of //. - if not re.match(r"^(?!.*(?", "eval")))) # noqa: S307 - except (SyntaxError, TypeError, ZeroDivisionError) as e: - raise ValueError(f"Invalid arithmetic expression '{expr}': {e}") from e - - return re.sub(r"\{([^}]+)\}", _eval_expr, result) diff --git a/netbox_interface_name_rules/naming.py b/netbox_interface_name_rules/naming.py new file mode 100644 index 0000000..b5e38df --- /dev/null +++ b/netbox_interface_name_rules/naming.py @@ -0,0 +1,133 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Build naming variables and evaluate interface-name templates.""" + +import ast +import re + + +def _extract_trailing_digits(value: str) -> str: + r"""Return the trailing digit run of *value* without regex backtracking. + + This O(n) string scan avoids the polynomial backtracking risk from a + trailing-digit regular expression on a long value that ends in a non-digit. + + Returns an empty string when *value* has no trailing digits. + """ + index = len(value) + while index > 0 and value[index - 1].isdigit(): + index -= 1 + return value[index:] + + +def _resolve_bay_position(module_bay): + """Return the raw and numeric positions for *module_bay*. + + A template expression such as ``{module}`` resolves from trailing digits in + the bay name. A missing numeric suffix resolves to zero. + """ + bay_position = module_bay.position or "0" + if bay_position.startswith("{"): + digits = _extract_trailing_digits(module_bay.name) + bay_position = digits if digits else "0" + digits = _extract_trailing_digits(bay_position) + bay_position_num = digits if digits else "0" + return bay_position, bay_position_num + + +def _resolve_slot(module_bay, bay_position_num, parent_bay_position): + """Return the slot value from the module-bay hierarchy. + + A nested bay takes the parent or grandparent position. A bay owned by an + installed module takes that module's bay position. Other bays use their + numeric position. + """ + if module_bay.parent: + parent_bay = module_bay.parent + if parent_bay.parent and hasattr(parent_bay.parent, "installed_module"): + return parent_bay.parent.position or parent_bay_position + return parent_bay_position + if hasattr(module_bay, "module") and module_bay.module: + owner_module = module_bay.module + if hasattr(owner_module, "module_bay") and owner_module.module_bay: + return owner_module.module_bay.position or bay_position_num + return bay_position_num + + +def build_variables(module_bay, device=None): + """Build template variables from a module bay and optional device. + + The result includes slot, bay position, numeric bay position, parent bay + position, and SFP slot. A virtual-chassis position is included only for a + member device that has a position. + + A template that uses ``{vc_position}`` for a non-member device fails during + evaluation because the variable is intentionally absent. Position zero is + retained because it is a valid virtual-chassis position. + """ + bay_position, bay_position_num = _resolve_bay_position(module_bay) + + parent_bay_position = "0" + if module_bay.parent: + parent_bay_position = module_bay.parent.position or "0" + + slot = _resolve_slot(module_bay, bay_position_num, parent_bay_position) + + result = { + "slot": slot, + "bay_position": bay_position, + "bay_position_num": bay_position_num, + "parent_bay_position": parent_bay_position, + "sfp_slot": bay_position_num, + } + if ( + device is not None + and getattr(device, "virtual_chassis_id", None) is not None + and device.vc_position is not None + ): + result["vc_position"] = str(device.vc_position) + return result + + +def evaluate_name_template(template: str, variables: dict) -> str: + """Evaluate a name template with variable substitution and safe arithmetic. + + Variables are substituted before remaining brace-enclosed arithmetic is + evaluated. True division is not allowed. Arithmetic results are converted + to integers so interface names contain whole numbers. + + For example, ``GigabitEthernet{slot}/{8 + {sfp_slot}}`` substitutes the + variables before evaluating the arithmetic expression. + """ + result = template + for key, value in variables.items(): + result = result.replace(f"{{{key}}}", str(value)) + + def _eval_expr(match): + expr = match.group(1).strip() + if not re.match(r"^(?!.*(?", "eval")))) # noqa: S307 + except (SyntaxError, TypeError, ZeroDivisionError) as exc: + raise ValueError(f"Invalid arithmetic expression '{expr}': {exc}") from exc + + return re.sub(r"\{([^}]+)\}", _eval_expr, result) diff --git a/netbox_interface_name_rules/tests/test_naming.py b/netbox_interface_name_rules/tests/test_naming.py new file mode 100644 index 0000000..dbb24be --- /dev/null +++ b/netbox_interface_name_rules/tests/test_naming.py @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Integration tests for the lower-level naming seam.""" + +from dcim.models import ( + Device, + DeviceRole, + DeviceType, + Manufacturer, + Module, + ModuleBay, + ModuleBayTemplate, + ModuleType, + Site, + VirtualChassis, +) +from django.test import TestCase + +from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.naming import build_variables, evaluate_name_template + + +class NamingTest(TestCase): + """Exercise naming through its lower-level public interface.""" + + @classmethod + def setUpTestData(cls): + manufacturer = Manufacturer.objects.create(name="NamingMfg", slug="naming-mfg") + device_type = DeviceType.objects.create( + manufacturer=manufacturer, + model="NAMING-DEVICE", + slug="naming-device", + ) + ModuleBayTemplate.objects.create(device_type=device_type, name="Slot 7", position="7") + module_type = ModuleType.objects.create( + manufacturer=manufacturer, + model="NAMING-SFP", + part_number="NAMING-SFP", + ) + role = DeviceRole.objects.create(name="NamingRole", slug="naming-role") + site = Site.objects.create(name="NamingSite", slug="naming-site") + virtual_chassis = VirtualChassis.objects.create(name="naming-vc") + cls.device = Device.objects.create( + name="naming-device-01", + device_type=device_type, + role=role, + site=site, + virtual_chassis=virtual_chassis, + vc_position=3, + ) + cls.bay = ModuleBay.objects.get(device=cls.device, name="Slot 7") + cls.module = Module.objects.create(device=cls.device, module_bay=cls.bay, module_type=module_type) + cls.rule = InterfaceNameRule.objects.create( + module_type=module_type, + name_template="xe-{vc_position}/{slot}/{bay_position_num}", + ) + + def test_real_module_context_builds_and_evaluates_the_rule_name(self): + variables = build_variables(self.module.module_bay, device=self.module.device) + + name = evaluate_name_template(self.rule.name_template, variables) + + self.assertEqual( + variables, + { + "slot": "7", + "bay_position": "7", + "bay_position_num": "7", + "parent_bay_position": "0", + "sfp_slot": "7", + "vc_position": "3", + }, + ) + self.assertEqual(name, "xe-3/7/7") diff --git a/netbox_interface_name_rules/views.py b/netbox_interface_name_rules/views.py index 226ec01..2e26667 100644 --- a/netbox_interface_name_rules/views.py +++ b/netbox_interface_name_rules/views.py @@ -301,7 +301,7 @@ def _evaluate_template_preview(self, cd): Each row carries the role the DB preview uses — ``parent``, ``channel`` or ``interface`` — so a channelized rule shows the parent it creates alongside the channels under it. """ - from .engine import evaluate_name_template + from .naming import evaluate_name_template name_template = cd["name_template"] channel_count = cd.get("channel_count") or 0 From 7ea7845583215df64f1fec99d6ad979b90afef7a Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 23:47:26 +0200 Subject: [PATCH 11/74] refactor: execute installed family plans Refs #77. --- netbox_interface_name_rules/engine.py | 156 ++---- .../family/__init__.py | 33 ++ netbox_interface_name_rules/family/domain.py | 139 +++++ .../family/execution.py | 267 +++++++++ .../family/installed.py | 268 +++++++++ .../family/template_names.py | 135 +++++ .../tests/test_installed_families.py | 520 ++++++++++++++++++ 7 files changed, 1406 insertions(+), 112 deletions(-) create mode 100644 netbox_interface_name_rules/family/__init__.py create mode 100644 netbox_interface_name_rules/family/domain.py create mode 100644 netbox_interface_name_rules/family/execution.py create mode 100644 netbox_interface_name_rules/family/installed.py create mode 100644 netbox_interface_name_rules/family/template_names.py create mode 100644 netbox_interface_name_rules/tests/test_installed_families.py diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index dd5f3eb..7755285 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -6,7 +6,6 @@ after Django is fully initialised. """ -import copy import logging import re from collections import defaultdict, namedtuple @@ -14,8 +13,10 @@ from django.core.exceptions import ValidationError from django.db import IntegrityError, transaction +from . import family as family_ops from . import naming, rule_selection from .choices import BreakoutModeChoices +from .family import template_names as family_template_names from .rule_selection import _compile_pattern logger = logging.getLogger(__name__) @@ -86,16 +87,8 @@ def supports_channelization(): def _vc_position_re(): - """Return NetBox's ``{vc_position}`` template-token regex, or None on a release without the token. - - Imported inside the function so the probe reads the module as it stands at call time, matching - ``supports_channelization()``'s style. - """ - try: - from dcim.constants import VC_POSITION_RE - except ImportError: - return None - return VC_POSITION_RE # pragma: no cover - only reachable on a NetBox that resolves the token + """Delegate virtual-chassis token detection to template-name resolution.""" + return family_template_names.vc_position_re() def supports_vc_position_token(): @@ -296,10 +289,20 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): return 0 variables = build_variables(module_bay, device=module.device) - interfaces = list(Interface.objects.filter(module=module)) + plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=()) + family_outcome = family_ops.InstalledPlanSetOutcome(families=()) + if supports_channelization() or (force_reapply and rule.channel_count > 0): + try: + plan_set = family_ops.plan_installed_families(module, rule, variables) + except (TypeError, ValueError, re.error): + logger.exception("Failed to plan installed families for module %s; using the legacy plain path.", module) + else: + family_outcome = family_ops.execute_installed_plan_set(plan_set) + + interfaces = list(Interface.objects.filter(module=module).exclude(pk__in=plan_set.member_pks)) if not interfaces: - return 0 + return family_outcome.changed_count # Only bases are rule candidates; the idempotency guard therefore looks at them alone. bases, children_by_parent = _partition_families(interfaces) @@ -309,15 +312,23 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): unrenamed = _collect_unrenamed(bases, rule, raw_names, force_reapply, raw.matchers, module) if not unrenamed: - return 0 # Already renamed (idempotent guard) + return family_outcome.changed_count # Already renamed (idempotent guard) # A breakout rule on a module that has channelized families processes only those families — # the same rule the preview and bulk-apply paths follow. - families_only = rule.channel_count > 0 and any(_is_channelized_parent(base) for base in bases) + installed_channelized = any(plan.topology == family_ops.FamilyTopology.CHANNELIZED for plan in plan_set.plans) + families_only = rule.channel_count > 0 and ( + installed_channelized or any(_is_channelized_parent(base) for base in bases) + ) - renamed = 0 - families_seen = families_only - conflicts: list = [] + renamed = family_outcome.changed_count + families_seen = bool(plan_set.plans) or families_only + conflicts: list = [ + member + for result in family_outcome.families + for member in result.members + if member.status == family_ops.FamilyStatus.BLOCKED + ] for iface in unrenamed: children = children_by_parent.get(iface.pk, ()) if families_only and not _is_channelized_parent(iface): # pragma: no cover - see families_only above @@ -644,92 +655,27 @@ def apply_device_interface_rules(device): # The bay chain InterfaceTemplate.resolve_name() dereferences while resolving {module}. -_BAY_CHAIN_RELATIONS = ( - "module_bay", - "module_bay__parent", - "module_bay__module", - "module_bay__module__module_bay", - "module_bay__module__module_bay__parent", - "module_bay__module__module_bay__module", -) +_BAY_CHAIN_RELATIONS = family_template_names.BAY_CHAIN_RELATIONS +_RawMatcher = family_template_names.RawMatcher +_RawNames = family_template_names.RawNames - -def _module_with_bay_chain(module): - """Re-fetch *module* with the bay chain InterfaceTemplate.resolve_name() dereferences. - - Prefetches the module relationships to avoid a per-template query when resolving names. - """ - from dcim.models import Module - - return Module.objects.select_related(*_BAY_CHAIN_RELATIONS).get(pk=module.pk) - - -# NetBox resolves {vc_position} once, at instantiation, so a raw name records the device's VC state -# at that moment while its template keeps resolving to the current one: hence names *and* matchers. -_RawMatcher = namedtuple("_RawMatcher", ("template_name", "resolved", "pattern")) -_RawNames = namedtuple("_RawNames", ("names", "matchers")) - -# Brace-free stand-ins, so NetBox's placeholder pass, this plugin's and re.escape() all leave them be. -_VC_SENTINEL = "InrVcPositionSentinel{}End" +# Brace-free stand-in used to recover a flat family's historical base from rule-output names. _BASE_SENTINEL = "InrBaseSentinelEnd" -def _vc_position_alternatives(fallback): # pragma: no cover - requires vc_position token support - """Return the regex branch covering every value one ``{vc_position}`` occurrence resolves to. - - Any member position and the implicit ``'0'`` are digits; an explicit ``{vc_position:X}`` fallback - adds a branch of its own, since NetBox does not require it to be numeric. - """ - if fallback is None: - return r"\d+" - return f"(?:\\d+|{re.escape(fallback)})" - - -def _raw_name_pattern(tmpl, module, token_re): # pragma: no cover - requires vc_position token support - """Return the matcher for every name *tmpl* has ever resolved to, or None without the token. - - Each token occurrence becomes a sentinel; ``{module}`` is then resolved by NetBox's own code on a - shallow copy carrying that name (its VC pass no-ops on a token-free string), so no placeholder - resolution is reimplemented here. - """ - fallbacks = [] - - def _mark(match): - fallbacks.append(match.group(1)) - return _VC_SENTINEL.format(len(fallbacks) - 1) - - marked = token_re.sub(_mark, tmpl.name) - if not fallbacks: - return None - stub = copy.copy(tmpl) - stub.name = marked - pattern = re.escape(stub.resolve_name(module)) - for index, fallback in enumerate(fallbacks): - pattern = pattern.replace(_VC_SENTINEL.format(index), _vc_position_alternatives(fallback)) - return _compile_pattern(pattern) +def _module_with_bay_chain(module): + """Delegate template-resolution loading while preserving the engine helper.""" + return family_template_names.module_with_bay_chain(module) def _raw_matchers(templates, module): - """Resolve *templates* against *module*: their names now, plus a matcher per token template.""" - token_re = _vc_position_re() - names = set() - matchers = [] - for tmpl in templates: - resolved = tmpl.resolve_name(module) - names.add(resolved) - pattern = None if token_re is None else _raw_name_pattern(tmpl, module, token_re) - if pattern is not None: - matchers.append(_RawMatcher(tmpl.name, resolved, pattern)) # pragma: no cover - token templates only - return _RawNames(names, matchers) + """Delegate raw template resolution while preserving the engine helper.""" + return family_template_names.raw_matchers(templates, module) def _raw_name_matchers(module): - """Return *module*'s raw template names and the drift matchers of its token templates.""" - from dcim.models import InterfaceTemplate - - module_fresh = _module_with_bay_chain(module) - templates = InterfaceTemplate.objects.filter(module_type=module_fresh.module_type) - return _raw_matchers(templates, module_fresh) + """Delegate current and historical raw name resolution.""" + return family_template_names.raw_name_matchers(module) def _get_raw_interface_names(module): @@ -738,27 +684,13 @@ def _get_raw_interface_names(module): def _raw_name_patterns(module): - """Return one compiled matcher per interface template of *module* whose name carries the token. - - Empty for a module type no template of which uses ``{vc_position}``, and on every NetBox release - that does not resolve the token at all. - """ - return [matcher.pattern for matcher in _raw_name_matchers(module).matchers] + """Delegate historical raw-name pattern construction.""" + return family_template_names.raw_name_patterns(module) def _raw_names_by_module(modules): # pragma: no cover - only the conversion scan batches names - """Return ``{module pk: _RawNames}`` for *modules*, in one template query for all of them. - - Raw names are a property of the module type, but ``_raw_name_matchers`` costs a module refetch - and a template query each — a scan over a fleet would pay that per module. *modules* must - already carry ``_BAY_CHAIN_RELATIONS``, since the names are resolved against them in memory. - """ - from dcim.models import InterfaceTemplate - - by_module_type = defaultdict(list) - for tmpl in InterfaceTemplate.objects.filter(module_type__in={module.module_type_id for module in modules}): - by_module_type[tmpl.module_type_id].append(tmpl) - return {module.pk: _raw_matchers(by_module_type[module.module_type_id], module) for module in modules} + """Delegate batched raw-name resolution.""" + return family_template_names.raw_names_by_module(modules) def _template_families(module): diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py new file mode 100644 index 0000000..7502673 --- /dev/null +++ b/netbox_interface_name_rules/family/__init__.py @@ -0,0 +1,33 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Plan and execute interface-family operations.""" + +from .domain import ( + FamilyOutcome, + FamilyStatus, + FamilyTopology, + InstalledFamilyPlan, + InstalledFamilyPlanSet, + InstalledPlanSetOutcome, + InterfaceSnapshot, + MemberOutcome, + MemberRole, + PlannedMember, +) +from .execution import execute_installed_plan_set +from .installed import plan_installed_families + +__all__ = ( + "FamilyOutcome", + "FamilyStatus", + "FamilyTopology", + "InstalledFamilyPlan", + "InstalledFamilyPlanSet", + "InstalledPlanSetOutcome", + "InterfaceSnapshot", + "MemberOutcome", + "MemberRole", + "PlannedMember", + "execute_installed_plan_set", + "plan_installed_families", +) diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py new file mode 100644 index 0000000..e346e8e --- /dev/null +++ b/netbox_interface_name_rules/family/domain.py @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Immutable domain values for interface-family operations.""" + +from dataclasses import dataclass +from enum import StrEnum + + +class FamilyTopology(StrEnum): + """Installed interface-family topology.""" + + FLAT = "flat" + CHANNELIZED = "channelized" + + +class FamilyStatus(StrEnum): + """Result of a family or member operation.""" + + CHANGED = "changed" + UNCHANGED = "unchanged" + BLOCKED = "blocked" + STALE = "stale" + UNSUPPORTED = "unsupported" + FAILED = "failed" + + +class MemberRole(StrEnum): + """A member's role in its installed family.""" + + PARENT = "parent" + CHANNEL = "channel" + FLAT_MEMBER = "flat_member" + + +@dataclass(frozen=True, slots=True) +class InterfaceSnapshot: + """Live interface facts that execution must revalidate.""" + + pk: int + device_id: int + module_id: int | None + name: str + parent_id: int | None + channel_id: int | None + channels: int | None + + @classmethod + def from_interface(cls, interface): + """Capture the protected facts from a NetBox interface row.""" + return cls( + pk=interface.pk, + device_id=interface.device_id, + module_id=interface.module_id, + name=interface.name, + parent_id=getattr(interface, "parent_id", None), + channel_id=getattr(interface, "channel_id", None), + channels=getattr(interface, "channels", None), + ) + + +@dataclass(frozen=True, slots=True) +class PlannedMember: + """One installed member and its intended name.""" + + snapshot: InterfaceSnapshot + target_name: str | None + role: MemberRole + reason: str = "" + + +@dataclass(frozen=True, slots=True) +class InstalledFamilyPlan: + """An executable rename plan for one installed interface family.""" + + family_id: str + topology: FamilyTopology + device_id: int + module_id: int + db_alias: str + members: tuple[PlannedMember, ...] + parent_pk: int | None = None + blocked_reason: str = "" + + @property + def member_pks(self) -> tuple[int, ...]: + """Return member primary keys in plan order.""" + return tuple(member.snapshot.pk for member in self.members) + + +@dataclass(frozen=True, slots=True) +class InstalledFamilyPlanSet: + """Exactly one immutable plan for each discovered installed family.""" + + module_id: int + plans: tuple[InstalledFamilyPlan, ...] + + @property + def member_pks(self) -> frozenset[int]: + """Return every interface claimed by the plan set.""" + return frozenset(pk for plan in self.plans for pk in plan.member_pks) + + +@dataclass(frozen=True, slots=True) +class MemberOutcome: + """Result facts for one planned family member.""" + + interface_pk: int + current_name: str + target_name: str | None + status: FamilyStatus + reason: str = "" + + +@dataclass(frozen=True, slots=True) +class FamilyOutcome: + """Execution result for one installed family.""" + + family_id: str + topology: FamilyTopology + status: FamilyStatus + members: tuple[MemberOutcome, ...] + reason: str = "" + + @property + def changed_count(self) -> int: + """Return the number of members renamed by this operation.""" + return sum(member.status == FamilyStatus.CHANGED for member in self.members) + + +@dataclass(frozen=True, slots=True) +class InstalledPlanSetOutcome: + """Execution results for an installed family plan set.""" + + families: tuple[FamilyOutcome, ...] + + @property + def changed_count(self) -> int: + """Return the number of members renamed across all families.""" + return sum(family.changed_count for family in self.families) diff --git a/netbox_interface_name_rules/family/execution.py b/netbox_interface_name_rules/family/execution.py new file mode 100644 index 0000000..b458732 --- /dev/null +++ b/netbox_interface_name_rules/family/execution.py @@ -0,0 +1,267 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Execute installed interface-family plans.""" + +import logging + +from dcim.models import Interface +from django.core.exceptions import ValidationError +from django.db import IntegrityError, transaction +from django.db.models import Q + +from .domain import ( + FamilyOutcome, + FamilyStatus, + InstalledFamilyPlan, + InstalledFamilyPlanSet, + InstalledPlanSetOutcome, + InterfaceSnapshot, + MemberOutcome, + MemberRole, +) + +logger = logging.getLogger(__name__) + +STALE_REASON = "installed family changed after planning" +COLLISION_REASON = "target name is already in use" +INTERFACE_NAME_CONSTRAINT = "dcim_interface_unique_device_name" +PARENT_BLOCKED_REASON = "family parent was blocked" + + +def _lock_family(plan: InstalledFamilyPlan): + """Lock and return the current family rows in stable primary-key order.""" + queryset = Interface.objects.using(plan.db_alias) + if plan.parent_pk is None: + queryset = queryset.filter(pk__in=plan.member_pks) + else: # pragma: no cover - requires channelization support + queryset = queryset.filter(Q(pk=plan.parent_pk) | Q(parent_id=plan.parent_pk)) + return list(queryset.select_for_update().order_by("pk")) + + +def _is_stale(plan: InstalledFamilyPlan, interfaces) -> bool: + """Return whether live identity, names, membership, or topology changed.""" + planned = {member.snapshot.pk: member.snapshot for member in plan.members} + live = {interface.pk: InterfaceSnapshot.from_interface(interface) for interface in interfaces} + return planned != live + + +def _member_outcome(member, status, reason=""): + """Build one immutable member outcome from its plan facts.""" + return MemberOutcome( + interface_pk=member.snapshot.pk, + current_name=member.snapshot.name, + target_name=member.target_name, + status=status, + reason=reason, + ) + + +def _name_is_taken(interface, target_name, db_alias): + """Return whether another interface on the device owns *target_name*.""" + return ( + Interface.objects.using(db_alias) + .filter(device_id=interface.device_id, name=target_name) + .exclude(pk=interface.pk) + .exists() + ) + + +def _is_name_collision(error: IntegrityError) -> bool: + """Return whether PostgreSQL identified NetBox's interface-name constraint.""" + cause = error.__cause__ + diagnostics = getattr(cause, "diag", None) + return getattr(diagnostics, "constraint_name", None) == INTERFACE_NAME_CONSTRAINT + + +def _blocked_member(member, reason): + """Return a blocked member outcome.""" + return _member_outcome(member, FamilyStatus.BLOCKED, reason) + + +def _rename_member(member, interface, db_alias): + """Apply one planned name inside a savepoint and return its explicit outcome.""" + target_name = member.target_name + if target_name is None: + logger.warning( + "Cannot derive a name for channel interface %r; leaving it unchanged.", + member.snapshot.name, + ) + return _blocked_member(member, member.reason) + if target_name == interface.name: + return _member_outcome(member, FamilyStatus.UNCHANGED) + if _name_is_taken(interface, target_name, db_alias): + logger.warning( + "Interface name %r already exists on device %s; skipping rename of %r to %r.", + target_name, + interface.device_id, + interface.name, + target_name, + ) + return _blocked_member(member, COLLISION_REASON) + + previous_name = interface.name + try: + with transaction.atomic(using=db_alias): + interface.name = target_name + interface.full_clean() + interface.save(using=db_alias) + except ValidationError as error: + interface.name = previous_name + logger.warning("NetBox rejected rename of %r to %r: %s", previous_name, target_name, error) + return _blocked_member(member, " ".join(error.messages)) + except IntegrityError as error: + interface.name = previous_name + if _is_name_collision(error): + logger.warning( + "Interface name %r became occupied while renaming %r; skipping.", + target_name, + previous_name, + ) + return _blocked_member(member, COLLISION_REASON) + raise + return _member_outcome(member, FamilyStatus.CHANGED) + + +def _family_status(members): + """Summarize member outcomes without hiding partial success.""" + statuses = {member.status for member in members} + if FamilyStatus.CHANGED in statuses: + return FamilyStatus.CHANGED + if FamilyStatus.BLOCKED in statuses: + return FamilyStatus.BLOCKED + return FamilyStatus.UNCHANGED + + +def _restore_deferred_channel_names(reconciliations, db_alias): # pragma: no cover - channelization only + """Restore plugin-owned names that NetBox's parent cascade changed after commit.""" + child_pks = [child_pk for child_pk, _final_name, _cascade_name in reconciliations] + with transaction.atomic(using=db_alias): + children = Interface.objects.using(db_alias).select_for_update().in_bulk(child_pks) + for child_pk, final_name, cascade_name in reconciliations: + child = children.get(child_pk) + if child is None or child.name == final_name: + continue + if child.name != cascade_name: + logger.warning( + "Channel interface %s changed to unexpected name %r before deferred reconciliation; " + "leaving it unchanged.", + child_pk, + child.name, + ) + continue + previous_name = child.name + try: + with transaction.atomic(using=db_alias): + child.name = final_name + child.full_clean() + child.save(using=db_alias) + except (ValidationError, IntegrityError): + child.name = previous_name + logger.exception( + "Failed to restore channel interface %s from NetBox's deferred name %r to %r; skipping.", + child_pk, + cascade_name, + final_name, + ) + + +def _preserve_names_across_parent_cascade(plan, member_outcomes): # pragma: no cover - channelization only + """Schedule restoration of blocked conventional channel names after a parent cascade.""" + if plan.parent_pk is None: + return + parent_member = next(member for member in plan.members if member.role == MemberRole.PARENT) + parent_outcome = next(outcome for outcome in member_outcomes if outcome.interface_pk == plan.parent_pk) + if parent_outcome.status != FamilyStatus.CHANGED: + return + final_parent_name = parent_member.target_name + outcomes_by_pk = {outcome.interface_pk: outcome for outcome in member_outcomes} + reconciliations = [] + for member in plan.members: + if member.role != MemberRole.CHANNEL: + continue + channel_id = member.snapshot.channel_id + final_name = ( + member.target_name + if outcomes_by_pk[member.snapshot.pk].status in (FamilyStatus.CHANGED, FamilyStatus.UNCHANGED) + else member.snapshot.name + ) + old_conventional_name = f"{parent_member.snapshot.name}:{channel_id}" + cascade_name = f"{final_parent_name}:{channel_id}" + if final_name == old_conventional_name and final_name != cascade_name: + reconciliations.append((member.snapshot.pk, final_name, cascade_name)) + if reconciliations: + transaction.on_commit( + lambda: _restore_deferred_channel_names(tuple(reconciliations), plan.db_alias), + using=plan.db_alias, + ) + + +def _execute_channelized_members(plan, live_by_pk): # pragma: no cover - requires channelization support + """Execute a channelized family after its parent succeeds.""" + parent_member = next(member for member in plan.members if member.role == MemberRole.PARENT) + parent_outcome = _rename_member(parent_member, live_by_pk[parent_member.snapshot.pk], plan.db_alias) + if parent_outcome.status == FamilyStatus.BLOCKED: + return ( + parent_outcome, + *( + _blocked_member(member, PARENT_BLOCKED_REASON) + for member in plan.members + if member.role != MemberRole.PARENT + ), + ) + return ( + parent_outcome, + *( + _rename_member(member, live_by_pk[member.snapshot.pk], plan.db_alias) + for member in plan.members + if member.role != MemberRole.PARENT + ), + ) + + +def _execute_members(plan, live_by_pk): + """Execute members while enforcing parent-first family semantics.""" + if plan.blocked_reason: # pragma: no cover - channelized mismatch only + logger.warning( + "Installed family of interface %r is blocked: %s.", + plan.members[0].snapshot.name, + plan.blocked_reason, + ) + return tuple(_blocked_member(member, plan.blocked_reason) for member in plan.members) + if plan.parent_pk is None: + return tuple(_rename_member(member, live_by_pk[member.snapshot.pk], plan.db_alias) for member in plan.members) + return _execute_channelized_members(plan, live_by_pk) # pragma: no cover - channelization only + + +def _stale_outcome(plan: InstalledFamilyPlan) -> FamilyOutcome: + """Return a stale result without applying any planned member.""" + return FamilyOutcome( + family_id=plan.family_id, + topology=plan.topology, + status=FamilyStatus.STALE, + members=tuple(_member_outcome(member, FamilyStatus.STALE, STALE_REASON) for member in plan.members), + reason=STALE_REASON, + ) + + +def _execute_plan(plan: InstalledFamilyPlan) -> FamilyOutcome: + """Execute one family plan in its own transaction.""" + with transaction.atomic(using=plan.db_alias): + interfaces = _lock_family(plan) + if _is_stale(plan, interfaces): + return _stale_outcome(plan) + live_by_pk = {interface.pk: interface for interface in interfaces} + member_outcomes = _execute_members(plan, live_by_pk) + _preserve_names_across_parent_cascade(plan, member_outcomes) + return FamilyOutcome( + family_id=plan.family_id, + topology=plan.topology, + status=_family_status(member_outcomes), + members=member_outcomes, + reason=plan.blocked_reason, + ) + + +def execute_installed_plan_set(plan_set: InstalledFamilyPlanSet) -> InstalledPlanSetOutcome: + """Execute each installed family in a separate transaction.""" + return InstalledPlanSetOutcome(families=tuple(_execute_plan(plan) for plan in plan_set.plans)) diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py new file mode 100644 index 0000000..b55f48a --- /dev/null +++ b/netbox_interface_name_rules/family/installed.py @@ -0,0 +1,268 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Discover and plan installed interface families.""" + +import logging +import re + +from dcim.models import Interface +from django.db import DEFAULT_DB_ALIAS + +from ..choices import BreakoutModeChoices +from ..naming import evaluate_name_template +from .domain import ( + FamilyTopology, + InstalledFamilyPlan, + InstalledFamilyPlanSet, + InterfaceSnapshot, + MemberRole, + PlannedMember, +) +from .template_names import resolved_template_names + +logger = logging.getLogger(__name__) + +_BASE_SENTINEL = "InrBaseSentinelEnd" + + +def _is_plain_interface(interface) -> bool: + """Return whether *interface* can be a flat-family member.""" + return ( + getattr(interface, "parent_id", None) is None + and getattr(interface, "channel_id", None) is None + and getattr(interface, "channels", None) is None + ) + + +def _is_channelized_parent(interface) -> bool: # pragma: no cover - requires channelization support + """Return whether *interface* declares a channelized family.""" + return getattr(interface, "channels", None) is not None + + +def _is_channel(interface) -> bool: # pragma: no cover - requires channelization support + """Return whether *interface* is bound to a parent channel.""" + return getattr(interface, "channel_id", None) is not None + + +def _child_name_suffix(child_name, parent_name): # pragma: no cover - requires channelization support + """Return the non-alphanumeric suffix that *child_name* adds to its parent.""" + if not parent_name or not child_name.startswith(parent_name): + return None + suffix = child_name[len(parent_name) :] + if not suffix or suffix[0].isalnum(): + return None + return suffix + + +def _template_channel_suffixes(templates): # pragma: no cover - requires channelization support + """Return the possible resolved suffixes for each template channel.""" + parents = {template.pk: template.resolved for template in templates if template.channels is not None} + suffixes: dict[int, set[str]] = {} + for template in templates: + if template.channel_id is None or template.parent_id not in parents: + continue + suffix = _child_name_suffix(template.resolved, parents[template.parent_id]) + if suffix is not None: + suffixes.setdefault(template.channel_id, set()).add(suffix) + return suffixes + + +def _simple_child_target(child, parent_name, parent_target, suffixes): # pragma: no cover - channelization only + """Return a simple rule's child target or the reason it cannot be derived.""" + suffix = _child_name_suffix(child.name, parent_name) + if suffix is None: + candidates = suffixes.get(child.channel_id, set()) + if len(candidates) == 1: + suffix = next(iter(candidates)) + if suffix is None: + return None, "channel suffix is ambiguous or unavailable" + return parent_target + suffix, "" + + +def _flat_names(rule, variables, base_name): + """Return the names of the flat family that *rule* defines on *base_name*.""" + family_variables = {**variables, "base": base_name} + return tuple( + evaluate_name_template( + rule.name_template, + {**family_variables, "channel": str(rule.channel_start + offset)}, + ) + for offset in range(rule.channel_count) + ) + + +def _historical_bases(rule, variables, template, interfaces): + """Return every historical base claimed by *template*.""" + if template.historical_pattern is None: + return () + try: + marked = evaluate_name_template( + rule.name_template, + {**variables, "base": _BASE_SENTINEL, "channel": str(rule.channel_start)}, + ) + except (TypeError, ValueError): + return () + if _BASE_SENTINEL not in marked: + return () + escaped = re.escape(marked) + head, _, tail = escaped.partition(_BASE_SENTINEL) + tail = tail.replace(_BASE_SENTINEL, "(?P=base)") + pattern = re.compile(f"{head}(?P{template.historical_pattern.pattern}){tail}") + bases = { + match.group("base") for interface in interfaces if (match := pattern.fullmatch(interface.name)) is not None + } + return tuple(sorted(bases)) + + +def _flat_candidates(rule, variables, interfaces, templates): + """Return complete, unambiguous flat-family candidates for *module*.""" + if rule.channel_count <= 0 or rule.breakout_mode != BreakoutModeChoices.FLAT: + return [] + + by_name = {interface.name: interface for interface in interfaces if _is_plain_interface(interface)} + historical_by_template = { + template.pk: _historical_bases(rule, variables, template, interfaces) for template in templates + } + ambiguous_bases = {base_name for bases in historical_by_template.values() if len(bases) > 1 for base_name in bases} + single_claims: dict[str, int] = {} + for bases in historical_by_template.values(): + if len(bases) == 1: + single_claims[bases[0]] = single_claims.get(bases[0], 0) + 1 + ambiguous_bases.update(base_name for base_name, count in single_claims.items() if count > 1) + + candidates = [] + for template in templates: + target_names = _flat_names(rule, variables, template.resolved) + historical_bases = tuple( + base_name + for base_name in historical_by_template[template.pk] + if len(historical_by_template[template.pk]) == 1 and base_name not in ambiguous_bases + ) + source_bases = (template.resolved, *historical_bases) + for source_base in source_bases: + source_names = _flat_names(rule, variables, source_base) + if len(set(source_names)) != len(source_names) or not all(name in by_name for name in source_names): + continue + members = tuple(by_name[name] for name in source_names) + candidate = (template.resolved, target_names, members) + if candidate not in candidates: + candidates.append(candidate) + + claims: dict[int, int] = {} + for _base_name, _names, members in candidates: + for member in members: + claims[member.pk] = claims.get(member.pk, 0) + 1 + return [candidate for candidate in candidates if all(claims[member.pk] == 1 for member in candidate[2])] + + +def _flat_plan(module, db_alias, base_name, target_names, interfaces): + """Build one immutable plan from a complete flat-family candidate.""" + members = tuple( + PlannedMember( + snapshot=InterfaceSnapshot.from_interface(interface), + target_name=target_name, + role=MemberRole.FLAT_MEMBER, + ) + for interface, target_name in zip(interfaces, target_names, strict=True) + ) + return InstalledFamilyPlan( + family_id=f"flat:{members[0].snapshot.pk}", + topology=FamilyTopology.FLAT, + device_id=module.device_id, + module_id=module.pk, + db_alias=db_alias, + members=members, + ) + + +def _channelized_plan(module, rule, variables, db_alias, parent, children, suffixes): # pragma: no cover + """Build one plan for an existing channelized family.""" + blocked_reason = "" + parent_target = parent.name + child_targets = [] + if rule.channel_count > 0: + if parent.channels != rule.channel_count: + blocked_reason = ( + f"installed parent declares {parent.channels} channels but the rule defines {rule.channel_count}" + ) + child_targets = [(child.name, blocked_reason) for child in children] + else: + if rule.breakout_mode == BreakoutModeChoices.CHANNELIZED and rule.parent_name_template: + parent_target = evaluate_name_template( + rule.parent_name_template, + {**variables, "base": parent.name}, + ) + child_targets = [ + ( + evaluate_name_template( + rule.name_template, + { + **variables, + "base": parent.name, + "channel": str(rule.channel_start + child.channel_id - 1), + }, + ), + "", + ) + for child in children + ] + else: + parent_target = evaluate_name_template(rule.name_template, {**variables, "base": parent.name}) + child_targets = [_simple_child_target(child, parent.name, parent_target, suffixes) for child in children] + + members = [ + PlannedMember( + snapshot=InterfaceSnapshot.from_interface(parent), + target_name=parent_target, + role=MemberRole.PARENT, + ) + ] + members.extend( + PlannedMember( + snapshot=InterfaceSnapshot.from_interface(child), + target_name=target, + role=MemberRole.CHANNEL, + reason=reason, + ) + for child, (target, reason) in zip(children, child_targets, strict=True) + ) + return InstalledFamilyPlan( + family_id=f"channelized:{parent.pk}", + topology=FamilyTopology.CHANNELIZED, + device_id=module.device_id, + module_id=module.pk, + db_alias=db_alias, + members=tuple(members), + parent_pk=parent.pk, + blocked_reason=blocked_reason, + ) + + +def _channelized_plans(module, rule, variables, db_alias, interfaces, templates): # pragma: no cover + """Return one plan for every structurally discovered channelized family.""" + parents = [interface for interface in interfaces if _is_channelized_parent(interface)] + children_by_parent: dict[int, list] = {} + for interface in interfaces: + if _is_channel(interface) and interface.parent_id is not None: + children_by_parent.setdefault(interface.parent_id, []).append(interface) + suffixes = _template_channel_suffixes(templates) + plans = [] + for parent in parents: + children = children_by_parent.get(parent.pk, []) + children.sort(key=lambda child: (child.channel_id, child.pk)) + plans.append(_channelized_plan(module, rule, variables, db_alias, parent, children, suffixes)) + return plans + + +def plan_installed_families(module, rule, variables) -> InstalledFamilyPlanSet: + """Return immutable plans for the installed families owned by *module*.""" + db_alias = module._state.db or DEFAULT_DB_ALIAS + interfaces = list(Interface.objects.using(db_alias).filter(module_id=module.pk).order_by("pk")) + templates = resolved_template_names(module) + plans = _channelized_plans(module, rule, variables, db_alias, interfaces, templates) + plans.extend( + _flat_plan(module, db_alias, base_name, target_names, members) + for base_name, target_names, members in _flat_candidates(rule, variables, interfaces, templates) + ) + plans.sort(key=lambda plan: plan.member_pks[0]) + return InstalledFamilyPlanSet(module_id=module.pk, plans=tuple(plans)) diff --git a/netbox_interface_name_rules/family/template_names.py b/netbox_interface_name_rules/family/template_names.py new file mode 100644 index 0000000..cd2133b --- /dev/null +++ b/netbox_interface_name_rules/family/template_names.py @@ -0,0 +1,135 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Resolve current and historical NetBox interface-template names.""" + +import copy +import re +from collections import namedtuple +from dataclasses import dataclass +from re import Pattern + +from dcim.models import InterfaceTemplate, Module + +from ..rule_selection import _compile_pattern + +BAY_CHAIN_RELATIONS = ( + "device", + "device__virtual_chassis", + "module_bay", + "module_bay__parent", + "module_bay__module", + "module_bay__module__module_bay", + "module_bay__module__module_bay__parent", + "module_bay__module__module_bay__module", +) + +_VC_SENTINEL = "InrVcPositionSentinel{}End" + +RawMatcher = namedtuple("RawMatcher", ("template_name", "resolved", "pattern")) +RawNames = namedtuple("RawNames", ("names", "matchers")) + + +@dataclass(frozen=True, slots=True) +class ResolvedTemplateName: + """One template's current name and optional historical-name matcher.""" + + pk: int + template_name: str + resolved: str + historical_pattern: Pattern[str] | None + parent_id: int | None + channel_id: int | None + channels: int | None + + +def vc_position_re(): + """Return NetBox's virtual-chassis template-token pattern when available.""" + try: + from dcim.constants import VC_POSITION_RE + except ImportError: + return None + return VC_POSITION_RE + + +def _vc_position_alternatives(fallback): # pragma: no cover - requires virtual-chassis token support + """Return every value represented by one virtual-chassis position token.""" + if fallback is None: + return r"\d+" + return f"(?:\\d+|{re.escape(fallback)})" + + +def _historical_pattern(template, module, token_re): + """Return a matcher for every historical resolution of *template*.""" + fallbacks = [] + + def mark(match): + fallbacks.append(match.group(1)) + return _VC_SENTINEL.format(len(fallbacks) - 1) + + marked = token_re.sub(mark, template.name) + if not fallbacks: + return None + stub = copy.copy(template) + stub.name = marked + pattern = re.escape(stub.resolve_name(module)) + for index, fallback in enumerate(fallbacks): + pattern = pattern.replace(_VC_SENTINEL.format(index), _vc_position_alternatives(fallback)) + return _compile_pattern(pattern) + + +def module_with_bay_chain(module): + """Re-fetch *module* with every relation template name resolution uses.""" + return Module.objects.select_related(*BAY_CHAIN_RELATIONS).get(pk=module.pk) + + +def raw_matchers(templates, module): + """Resolve templates into current names and historical token matchers.""" + token_re = vc_position_re() + names = set() + matchers = [] + for template in templates: + resolved = template.resolve_name(module) + names.add(resolved) + pattern = None if token_re is None else _historical_pattern(template, module, token_re) + if pattern is not None: + matchers.append(RawMatcher(template.name, resolved, pattern)) + return RawNames(names, matchers) + + +def raw_name_matchers(module): + """Return current and historical raw template names for *module*.""" + module = module_with_bay_chain(module) + templates = InterfaceTemplate.objects.filter(module_type_id=module.module_type_id) + return raw_matchers(templates, module) + + +def raw_name_patterns(module): + """Return historical matchers for the module's token templates.""" + return [matcher.pattern for matcher in raw_name_matchers(module).matchers] + + +def raw_names_by_module(modules): + """Resolve raw names for a prefetched module batch with one template query.""" + by_module_type = {} + for template in InterfaceTemplate.objects.filter(module_type_id__in={module.module_type_id for module in modules}): + by_module_type.setdefault(template.module_type_id, []).append(template) + return {module.pk: raw_matchers(by_module_type.get(module.module_type_id, ()), module) for module in modules} + + +def resolved_template_names(module) -> tuple[ResolvedTemplateName, ...]: + """Load and resolve every interface template for *module* once.""" + module = module_with_bay_chain(module) + token_re = vc_position_re() + templates = InterfaceTemplate.objects.filter(module_type_id=module.module_type_id).order_by("pk") + return tuple( + ResolvedTemplateName( + pk=template.pk, + template_name=template.name, + resolved=template.resolve_name(module), + historical_pattern=None if token_re is None else _historical_pattern(template, module, token_re), + parent_id=getattr(template, "parent_id", None), + channel_id=getattr(template, "channel_id", None), + channels=getattr(template, "channels", None), + ) + for template in templates + ) diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py new file mode 100644 index 0000000..4f34120 --- /dev/null +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -0,0 +1,520 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Integration tests for installed interface-family plans.""" + +from dataclasses import FrozenInstanceError +from unittest import skipUnless + +from dcim.choices import InterfaceTypeChoices +from dcim.models import ( + Device, + DeviceRole, + DeviceType, + Interface, + InterfaceTemplate, + Manufacturer, + Module, + ModuleBay, + ModuleBayTemplate, + ModuleType, + Site, + VirtualChassis, +) +from django.db import IntegrityError, connection +from django.test import TestCase +from django.test.utils import CaptureQueriesContext + +from netbox_interface_name_rules.choices import BreakoutModeChoices +from netbox_interface_name_rules.engine import ( + apply_interface_name_rules, + build_variables, + supports_channelization, + supports_vc_position_token, +) +from netbox_interface_name_rules.family import ( + FamilyStatus, + FamilyTopology, + execute_installed_plan_set, + plan_installed_families, +) +from netbox_interface_name_rules.models import InterfaceNameRule + +CHANNEL_TYPE = getattr(InterfaceTypeChoices, "TYPE_CHANNEL", "channel") +PARENT_TYPE = InterfaceTypeChoices.TYPE_40GE_QSFP_PLUS +PLAIN_TYPE = InterfaceTypeChoices.TYPE_10GE_SFP_PLUS +REQUIRES_CHANNELIZATION = "requires a NetBox that models channelized interfaces" + + +class InstalledFlatFamilyPlanningTest(TestCase): + """Plan installed flat breakout families from real NetBox rows.""" + + @classmethod + def setUpTestData(cls): + manufacturer = Manufacturer.objects.create(name="FamilyPlanMfg", slug="family-plan-mfg") + device_type = DeviceType.objects.create( + manufacturer=manufacturer, + model="FAMILY-PLAN-DEVICE", + slug="family-plan-device", + ) + ModuleBayTemplate.objects.create(device_type=device_type, name="Bay 7", position="7") + cls.module_type = ModuleType.objects.create( + manufacturer=manufacturer, + model="FAMILY-PLAN-QSFP", + part_number="FAMILY-PLAN-QSFP", + ) + InterfaceTemplate.objects.create( + module_type=cls.module_type, + name="{module}", + type="100gbase-x-qsfp28", + ) + role = DeviceRole.objects.create(name="FamilyPlanRole", slug="family-plan-role") + site = Site.objects.create(name="FamilyPlanSite", slug="family-plan-site") + cls.device = Device.objects.create( + name="family-plan-device-01", + device_type=device_type, + role=role, + site=site, + ) + cls.bay = ModuleBay.objects.get(device=cls.device, name="Bay 7") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{base}:{channel}", + channel_count=2, + channel_start=0, + ) + + def test_complete_flat_family_has_one_immutable_plan_with_every_snapshot(self): + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + self.assertEqual(apply_interface_name_rules(module, self.bay), 2) + + plan_set = plan_installed_families( + module, + self.rule, + build_variables(self.bay, device=self.device), + ) + + self.assertEqual(len(plan_set.plans), 1) + plan = plan_set.plans[0] + self.assertEqual(plan.topology, FamilyTopology.FLAT) + self.assertEqual( + [member.snapshot.name for member in plan.members], + ["xe-0/0/7:0", "xe-0/0/7:1"], + ) + self.assertEqual( + {member.snapshot.pk for member in plan.members}, + set(Interface.objects.filter(module=module).values_list("pk", flat=True)), + ) + with self.assertRaises(FrozenInstanceError): + plan.module_id = 0 + + def test_changed_member_makes_the_plan_stale_without_partial_execution(self): + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + apply_interface_name_rules(module, self.bay) + plan_set = plan_installed_families( + module, + self.rule, + build_variables(self.bay, device=self.device), + ) + changed_pk = plan_set.plans[0].members[1].snapshot.pk + Interface.objects.filter(pk=changed_pk).update(name="operator-change") + + result = execute_installed_plan_set(plan_set) + + self.assertEqual(result.families[0].status, FamilyStatus.STALE) + self.assertEqual( + {member.status for member in result.families[0].members}, + {FamilyStatus.STALE}, + ) + self.assertEqual(result.changed_count, 0) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["operator-change", "xe-0/0/7:0"], + ) + + def test_deleted_member_makes_the_complete_family_plan_stale(self): + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + apply_interface_name_rules(module, self.bay) + plan_set = plan_installed_families( + module, + self.rule, + build_variables(self.bay, device=self.device), + ) + Interface.objects.filter(pk=plan_set.plans[0].members[1].snapshot.pk).delete() + + result = execute_installed_plan_set(plan_set) + + self.assertEqual(result.families[0].status, FamilyStatus.STALE) + self.assertEqual(result.changed_count, 0) + self.assertEqual( + list(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["xe-0/0/7:0"], + ) + + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_complete_historical_family_maps_to_current_raw_template_names(self): + _module, plan_set = self._historical_family_plan() + + self.assertEqual(len(plan_set.plans), 1) + self.assertEqual( + [member.snapshot.name for member in plan_set.plans[0].members], + ["brk-xe-1/0/7:0", "brk-xe-1/0/7:1"], + ) + self.assertEqual( + [member.target_name for member in plan_set.plans[0].members], + ["brk-xe-2/0/7:0", "brk-xe-2/0/7:1"], + ) + + def _historical_family_plan(self): + """Install a flat family at VC position 1 and plan it at position 2.""" + module, rule = self._historical_family_state() + plan_set = plan_installed_families( + module, + rule, + build_variables(module.module_bay, device=module.device), + ) + return module, plan_set + + def _historical_family_state(self): + """Return a flat family installed at VC position 1 after moving to position 2.""" + virtual_chassis = VirtualChassis.objects.create(name="family-plan-vc") + self.device.virtual_chassis = virtual_chassis + self.device.vc_position = 1 + self.device.save() + token_type = ModuleType.objects.create( + manufacturer=self.module_type.manufacturer, + model="FAMILY-PLAN-VC-QSFP", + part_number="FAMILY-PLAN-VC-QSFP", + ) + InterfaceTemplate.objects.create( + module_type=token_type, + name="xe-{vc_position:0}/0/{module}", + type="100gbase-x-qsfp28", + ) + rule = InterfaceNameRule.objects.create( + module_type=token_type, + name_template="brk-{base}:{channel}", + channel_count=2, + channel_start=0, + ) + module = Module.objects.create(device=self.device, module_bay=self.bay, module_type=token_type) + apply_interface_name_rules(module, self.bay) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["brk-xe-1/0/7:0", "brk-xe-1/0/7:1"], + ) + self.device.vc_position = 2 + self.device.save() + module = Module.objects.select_related("device", "module_bay").get(pk=module.pk) + return module, rule + + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_execution_locks_and_renames_the_complete_flat_family(self): + module, plan_set = self._historical_family_plan() + + with CaptureQueriesContext(connection) as queries: + result = execute_installed_plan_set(plan_set) + + self.assertEqual(result.families[0].status, FamilyStatus.CHANGED) + self.assertEqual( + [member.status for member in result.families[0].members], + [FamilyStatus.CHANGED, FamilyStatus.CHANGED], + ) + self.assertEqual(result.changed_count, 2) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["brk-xe-2/0/7:0", "brk-xe-2/0/7:1"], + ) + lock_queries = [query["sql"] for query in queries.captured_queries if "FOR UPDATE" in query["sql"]] + self.assertTrue(lock_queries) + self.assertTrue(all("ORDER BY" in query for query in lock_queries)) + + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_unrelated_integrity_failure_propagates_and_rolls_back_the_family(self): + module, plan_set = self._historical_family_plan() + + def reject_interface_update(execute, sql, params, many, context): + if sql.lstrip().startswith('UPDATE "dcim_interface"'): + raise IntegrityError("injected non-uniqueness database failure") + return execute(sql, params, many, context) + + with connection.execute_wrapper(reject_interface_update): + with self.assertRaisesMessage(IntegrityError, "injected non-uniqueness database failure"): + execute_installed_plan_set(plan_set) + + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["brk-xe-1/0/7:0", "brk-xe-1/0/7:1"], + ) + + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_automatic_reapplication_uses_the_installed_family_executor(self): + module, _rule = self._historical_family_state() + + with CaptureQueriesContext(connection) as queries: + renamed = apply_interface_name_rules(module, module.module_bay, force_reapply=True) + + self.assertEqual(renamed, 2) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["brk-xe-2/0/7:0", "brk-xe-2/0/7:1"], + ) + self.assertTrue(any("FOR UPDATE" in query["sql"] for query in queries.captured_queries)) + + def _two_historical_family_state(self): + """Return two complete historical flat families and their current rule context.""" + virtual_chassis = VirtualChassis.objects.create(name="family-plan-two-vc") + self.device.virtual_chassis = virtual_chassis + self.device.vc_position = 1 + self.device.save() + module_type = ModuleType.objects.create( + manufacturer=self.module_type.manufacturer, + model="FAMILY-PLAN-TWO-QSFP", + part_number="FAMILY-PLAN-TWO-QSFP", + ) + for suffix in ("a", "b"): + InterfaceTemplate.objects.create( + module_type=module_type, + name=f"xe-{{vc_position:0}}/0/{{module}}-{suffix}", + type="100gbase-x-qsfp28", + ) + rule = InterfaceNameRule.objects.create( + module_type=module_type, + name_template="brk-{base}:{channel}", + channel_count=2, + channel_start=0, + ) + module = Module.objects.create(device=self.device, module_bay=self.bay, module_type=module_type) + self.assertEqual(apply_interface_name_rules(module, self.bay), 4) + self.device.vc_position = 2 + self.device.save() + module = Module.objects.select_related("device", "module_bay").get(pk=module.pk) + return module, rule + + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_incomplete_flat_family_is_rejected_without_hiding_a_complete_family(self): + module, rule = self._two_historical_family_state() + Interface.objects.filter(module=module, name="brk-xe-1/0/7-a:1").delete() + + plan_set = plan_installed_families( + module, + rule, + build_variables(module.module_bay, device=module.device), + ) + + self.assertEqual(len(plan_set.plans), 1) + self.assertEqual( + [member.snapshot.name for member in plan_set.plans[0].members], + ["brk-xe-1/0/7-b:0", "brk-xe-1/0/7-b:1"], + ) + + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_blocked_member_does_not_stop_an_unrelated_flat_family(self): + module, rule = self._two_historical_family_state() + Interface.objects.create( + device=self.device, + name="brk-xe-2/0/7-a:1", + type=PLAIN_TYPE, + ) + plan_set = plan_installed_families( + module, + rule, + build_variables(module.module_bay, device=module.device), + ) + + result = execute_installed_plan_set(plan_set) + + self.assertEqual(len(result.families), 2) + self.assertEqual(result.changed_count, 3) + self.assertEqual( + [member.status for member in result.families[0].members], + [FamilyStatus.CHANGED, FamilyStatus.BLOCKED], + ) + self.assertEqual( + [member.status for member in result.families[1].members], + [FamilyStatus.CHANGED, FamilyStatus.CHANGED], + ) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + [ + "brk-xe-1/0/7-a:1", + "brk-xe-2/0/7-a:0", + "brk-xe-2/0/7-b:0", + "brk-xe-2/0/7-b:1", + ], + ) + + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_overlapping_historical_matchers_reject_every_ambiguous_flat_family(self): + virtual_chassis = VirtualChassis.objects.create(name="family-plan-ambiguous-vc") + self.device.virtual_chassis = virtual_chassis + self.device.vc_position = 1 + self.device.save() + module_type = ModuleType.objects.create( + manufacturer=self.module_type.manufacturer, + model="FAMILY-PLAN-AMBIGUOUS-QSFP", + part_number="FAMILY-PLAN-AMBIGUOUS-QSFP", + ) + for name in ("xe-{vc_position}/0/{module}", "xe-1/{vc_position}/{module}"): + InterfaceTemplate.objects.create( + module_type=module_type, + name=name, + type="100gbase-x-qsfp28", + ) + rule = InterfaceNameRule.objects.create( + module_type=module_type, + name_template="brk-{base}:{channel}", + channel_count=2, + channel_start=0, + ) + module = Module.objects.create(device=self.device, module_bay=self.bay, module_type=module_type) + self.assertEqual(apply_interface_name_rules(module, self.bay), 4) + self.device.vc_position = 2 + self.device.save() + module = Module.objects.select_related("device", "module_bay").get(pk=module.pk) + + plan_set = plan_installed_families( + module, + rule, + build_variables(module.module_bay, device=module.device), + ) + + self.assertEqual(plan_set.plans, ()) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class InstalledChannelizedFamilyTest(TestCase): + """Plan and execute existing channelized families through real NetBox rows.""" + + @classmethod + def setUpTestData(cls): + manufacturer = Manufacturer.objects.create(name="InstalledChanMfg", slug="installed-chan-mfg") + device_type = DeviceType.objects.create( + manufacturer=manufacturer, + model="INSTALLED-CHAN-DEVICE", + slug="installed-chan-device", + ) + for position in ("3", "4", "5", "6"): + ModuleBayTemplate.objects.create( + device_type=device_type, + name=f"Bay {position}", + position=position, + ) + cls.module_type = ModuleType.objects.create( + manufacturer=manufacturer, + model="INSTALLED-CHAN-QSFP", + part_number="INSTALLED-CHAN-QSFP", + ) + parent = InterfaceTemplate.objects.create( + module_type=cls.module_type, + name="{module}", + type=PARENT_TYPE, + channels=4, + ) + for channel_id in (1, 3): + InterfaceTemplate.objects.create( + module_type=cls.module_type, + name=f"{{module}}:{channel_id}", + type=CHANNEL_TYPE, + parent=parent, + channel_id=channel_id, + ) + role = DeviceRole.objects.create(name="InstalledChanRole", slug="installed-chan-role") + site = Site.objects.create(name="InstalledChanSite", slug="installed-chan-site") + cls.device = Device.objects.create( + name="installed-chan-device-01", + device_type=device_type, + role=role, + site=site, + ) + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{bay_position}:{channel}", + channel_count=4, + channel_start=0, + ) + + def _raw_module(self, position): + """Install one module without executing the plugin's committed callback.""" + bay = ModuleBay.objects.get(device=self.device, name=f"Bay {position}") + module = Module.objects.create(device=self.device, module_bay=bay, module_type=self.module_type) + return module, bay + + def _plan(self, module, bay): + """Plan the installed family on *module*.""" + return plan_installed_families(module, self.rule, build_variables(bay, device=self.device)) + + def test_incomplete_channelized_family_is_one_plan_with_only_installed_members(self): + module, bay = self._raw_module("3") + + plan_set = self._plan(module, bay) + + self.assertEqual(len(plan_set.plans), 1) + plan = plan_set.plans[0] + self.assertEqual(plan.topology, FamilyTopology.CHANNELIZED) + self.assertEqual( + [(member.role.value, member.snapshot.channel_id) for member in plan.members], + [("parent", None), ("channel", 1), ("channel", 3)], + ) + self.assertEqual( + [member.target_name for member in plan.members], + ["3", "xe-0/0/3:0", "xe-0/0/3:2"], + ) + + def test_automatic_installation_uses_locked_family_execution(self): + bay = ModuleBay.objects.get(device=self.device, name="Bay 4") + + with CaptureQueriesContext(connection) as queries, self.captureOnCommitCallbacks(execute=True): + module = Module.objects.create(device=self.device, module_bay=bay, module_type=self.module_type) + + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["4", "xe-0/0/4:0", "xe-0/0/4:2"], + ) + self.assertTrue(any("FOR UPDATE" in query["sql"] for query in queries.captured_queries)) + + def test_blocked_parent_prevents_every_child_rename(self): + self.rule.breakout_mode = BreakoutModeChoices.CHANNELIZED + self.rule.parent_name_template = "et-0/0/{bay_position}" + self.rule.save() + Interface.objects.create(device=self.device, name="et-0/0/5", type=PLAIN_TYPE) + module, bay = self._raw_module("5") + + result = execute_installed_plan_set(self._plan(module, bay)) + + self.assertEqual(result.families[0].status, FamilyStatus.BLOCKED) + self.assertEqual( + {member.status for member in result.families[0].members}, + {FamilyStatus.BLOCKED}, + ) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["5", "5:1", "5:3"], + ) + + def test_blocked_child_leaves_only_that_child_unchanged(self): + Interface.objects.create(device=self.device, name="xe-0/0/6:2", type=PLAIN_TYPE) + module, bay = self._raw_module("6") + + result = execute_installed_plan_set(self._plan(module, bay)) + + self.assertEqual(result.families[0].status, FamilyStatus.CHANGED) + self.assertEqual( + [member.status for member in result.families[0].members], + [FamilyStatus.UNCHANGED, FamilyStatus.CHANGED, FamilyStatus.BLOCKED], + ) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["6", "6:3", "xe-0/0/6:0"], + ) From 10b570c1accb2861a66ba53da533b3daa59e2def Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 23 Aug 2026 23:53:42 +0200 Subject: [PATCH 12/74] fix: propagate installed family failures Refs #77. --- netbox_interface_name_rules/engine.py | 8 +--- .../family/execution.py | 11 +++++- .../tests/test_installed_families.py | 37 +++++++++++++++++++ 3 files changed, 49 insertions(+), 7 deletions(-) diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 7755285..4148be9 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -292,12 +292,8 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=()) family_outcome = family_ops.InstalledPlanSetOutcome(families=()) if supports_channelization() or (force_reapply and rule.channel_count > 0): - try: - plan_set = family_ops.plan_installed_families(module, rule, variables) - except (TypeError, ValueError, re.error): - logger.exception("Failed to plan installed families for module %s; using the legacy plain path.", module) - else: - family_outcome = family_ops.execute_installed_plan_set(plan_set) + plan_set = family_ops.plan_installed_families(module, rule, variables) + family_outcome = family_ops.execute_installed_plan_set(plan_set) interfaces = list(Interface.objects.filter(module=module).exclude(pk__in=plan_set.member_pks)) diff --git a/netbox_interface_name_rules/family/execution.py b/netbox_interface_name_rules/family/execution.py index b458732..e5dbb5b 100644 --- a/netbox_interface_name_rules/family/execution.py +++ b/netbox_interface_name_rules/family/execution.py @@ -155,7 +155,7 @@ def _restore_deferred_channel_names(reconciliations, db_alias): # pragma: no co child.name = final_name child.full_clean() child.save(using=db_alias) - except (ValidationError, IntegrityError): + except ValidationError: child.name = previous_name logger.exception( "Failed to restore channel interface %s from NetBox's deferred name %r to %r; skipping.", @@ -163,6 +163,15 @@ def _restore_deferred_channel_names(reconciliations, db_alias): # pragma: no co cascade_name, final_name, ) + except IntegrityError as error: + child.name = previous_name + if not _is_name_collision(error): + raise + logger.warning( + "Channel interface %s could not reclaim name %r after NetBox's deferred rename; skipping.", + child_pk, + final_name, + ) def _preserve_names_across_parent_cascade(plan, member_outcomes): # pragma: no cover - channelization only diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index 4f34120..ff65209 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -4,6 +4,7 @@ from dataclasses import FrozenInstanceError from unittest import skipUnless +from unittest.mock import patch from dcim.choices import InterfaceTypeChoices from dcim.models import ( @@ -37,6 +38,7 @@ execute_installed_plan_set, plan_installed_families, ) +from netbox_interface_name_rules.family import execution as family_execution from netbox_interface_name_rules.models import InterfaceNameRule CHANNEL_TYPE = getattr(InterfaceTypeChoices, "TYPE_CHANNEL", "channel") @@ -111,6 +113,41 @@ def test_complete_flat_family_has_one_immutable_plan_with_every_snapshot(self): with self.assertRaises(FrozenInstanceError): plan.module_id = 0 + def test_automatic_reapplication_propagates_planner_failures(self): + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + + with ( + patch( + "netbox_interface_name_rules.engine.family_ops.plan_installed_families", + side_effect=TypeError("planner defect"), + ), + self.assertRaisesMessage(TypeError, "planner defect"), + ): + apply_interface_name_rules(module, self.bay, force_reapply=True) + + def test_deferred_reconciliation_propagates_unrelated_integrity_failures(self): + interface = Interface.objects.create( + device=self.device, + name="cascade-name", + type=PLAIN_TYPE, + ) + + def reject_interface_update(execute, sql, params, many, context): + if sql.lstrip().startswith('UPDATE "dcim_interface"'): + raise IntegrityError("injected deferred database failure") + return execute(sql, params, many, context) + + with connection.execute_wrapper(reject_interface_update): + with self.assertRaisesMessage(IntegrityError, "injected deferred database failure"): + family_execution._restore_deferred_channel_names( + ((interface.pk, "final-name", "cascade-name"),), + interface._state.db, + ) + def test_changed_member_makes_the_plan_stale_without_partial_execution(self): module = Module.objects.create( device=self.device, From 87c12339e0a5278f176b8227f4aeab2f815684a6 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Mon, 24 Aug 2026 00:09:35 +0200 Subject: [PATCH 13/74] test: cover flat family execution on older NetBox Refs #77. --- .../family/installed.py | 6 +- .../family/template_names.py | 8 +- .../tests/test_installed_families.py | 118 +++++++++++++++++- 3 files changed, 124 insertions(+), 8 deletions(-) diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index b55f48a..e7be219 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -91,7 +91,7 @@ def _flat_names(rule, variables, base_name): ) -def _historical_bases(rule, variables, template, interfaces): +def _historical_bases(rule, variables, template, interfaces): # pragma: no cover - requires VC token support """Return every historical base claimed by *template*.""" if template.historical_pattern is None: return () @@ -126,7 +126,7 @@ def _flat_candidates(rule, variables, interfaces, templates): ambiguous_bases = {base_name for bases in historical_by_template.values() if len(bases) > 1 for base_name in bases} single_claims: dict[str, int] = {} for bases in historical_by_template.values(): - if len(bases) == 1: + if len(bases) == 1: # pragma: no cover - historical matchers require VC token support single_claims[bases[0]] = single_claims.get(bases[0], 0) + 1 ambiguous_bases.update(base_name for base_name, count in single_claims.items() if count > 1) @@ -145,7 +145,7 @@ def _flat_candidates(rule, variables, interfaces, templates): continue members = tuple(by_name[name] for name in source_names) candidate = (template.resolved, target_names, members) - if candidate not in candidates: + if candidate not in candidates: # pragma: no branch - duplicates require historical matchers candidates.append(candidate) claims: dict[int, int] = {} diff --git a/netbox_interface_name_rules/family/template_names.py b/netbox_interface_name_rules/family/template_names.py index cd2133b..18d88b1 100644 --- a/netbox_interface_name_rules/family/template_names.py +++ b/netbox_interface_name_rules/family/template_names.py @@ -48,7 +48,7 @@ def vc_position_re(): from dcim.constants import VC_POSITION_RE except ImportError: return None - return VC_POSITION_RE + return VC_POSITION_RE # pragma: no cover - only available on NetBox releases with the token def _vc_position_alternatives(fallback): # pragma: no cover - requires virtual-chassis token support @@ -58,7 +58,7 @@ def _vc_position_alternatives(fallback): # pragma: no cover - requires virtual- return f"(?:\\d+|{re.escape(fallback)})" -def _historical_pattern(template, module, token_re): +def _historical_pattern(template, module, token_re): # pragma: no cover - requires virtual-chassis token support """Return a matcher for every historical resolution of *template*.""" fallbacks = [] @@ -92,7 +92,7 @@ def raw_matchers(templates, module): names.add(resolved) pattern = None if token_re is None else _historical_pattern(template, module, token_re) if pattern is not None: - matchers.append(RawMatcher(template.name, resolved, pattern)) + matchers.append(RawMatcher(template.name, resolved, pattern)) # pragma: no cover - token templates only return RawNames(names, matchers) @@ -108,7 +108,7 @@ def raw_name_patterns(module): return [matcher.pattern for matcher in raw_name_matchers(module).matchers] -def raw_names_by_module(modules): +def raw_names_by_module(modules): # pragma: no cover - only the channel conversion scan batches names """Resolve raw names for a prefetched module batch with one template query.""" by_module_type = {} for template in InterfaceTemplate.objects.filter(module_type_id__in={module.module_type_id for module in modules}): diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index ff65209..ecd5efa 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -2,7 +2,7 @@ # Copyright (C) 2025 Marcin Zieba """Integration tests for installed interface-family plans.""" -from dataclasses import FrozenInstanceError +from dataclasses import FrozenInstanceError, replace from unittest import skipUnless from unittest.mock import patch @@ -113,6 +113,122 @@ def test_complete_flat_family_has_one_immutable_plan_with_every_snapshot(self): with self.assertRaises(FrozenInstanceError): plan.module_id = 0 + def _current_family_plan(self): + """Install and plan one complete flat family without version-specific tokens.""" + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + self.assertEqual(apply_interface_name_rules(module, self.bay), 2) + plan_set = plan_installed_families( + module, + self.rule, + build_variables(self.bay, device=self.device), + ) + return module, plan_set + + @staticmethod + def _retarget(plan_set, prefix): + """Return *plan_set* with deterministic new member targets.""" + plans = tuple( + replace( + plan, + members=tuple( + replace(member, target_name=f"{prefix}-{plan_index}-{member_index}") + for member_index, member in enumerate(plan.members) + ), + ) + for plan_index, plan in enumerate(plan_set.plans) + ) + return replace(plan_set, plans=plans) + + def test_current_flat_family_execution_locks_and_renames_every_member(self): + module, plan_set = self._current_family_plan() + plan_set = self._retarget(plan_set, "renamed") + + with CaptureQueriesContext(connection) as queries: + result = execute_installed_plan_set(plan_set) + + self.assertEqual(result.families[0].status, FamilyStatus.CHANGED) + self.assertEqual(result.changed_count, 2) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["renamed-0-0", "renamed-0-1"], + ) + lock_queries = [query["sql"] for query in queries.captured_queries if "FOR UPDATE" in query["sql"]] + self.assertTrue(lock_queries) + self.assertTrue(all("ORDER BY" in query for query in lock_queries)) + + def test_current_flat_family_execution_propagates_unrelated_integrity_failure(self): + module, plan_set = self._current_family_plan() + plan_set = self._retarget(plan_set, "renamed") + + def reject_interface_update(execute, sql, params, many, context): + if sql.lstrip().startswith('UPDATE "dcim_interface"'): + raise IntegrityError("injected current-family database failure") + return execute(sql, params, many, context) + + with connection.execute_wrapper(reject_interface_update): + with self.assertRaisesMessage(IntegrityError, "injected current-family database failure"): + execute_installed_plan_set(plan_set) + + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["xe-0/0/7:0", "xe-0/0/7:1"], + ) + + def test_current_flat_family_collision_blocks_each_occupied_target(self): + module, plan_set = self._current_family_plan() + plan_set = self._retarget(plan_set, "occupied") + for member in plan_set.plans[0].members: + Interface.objects.create( + device=self.device, + name=member.target_name, + type=PLAIN_TYPE, + ) + + result = execute_installed_plan_set(plan_set) + + self.assertEqual(result.families[0].status, FamilyStatus.BLOCKED) + self.assertEqual( + {member.status for member in result.families[0].members}, + {FamilyStatus.BLOCKED}, + ) + self.assertEqual(result.changed_count, 0) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["xe-0/0/7:0", "xe-0/0/7:1"], + ) + + def test_incomplete_current_flat_family_is_not_planned(self): + module, plan_set = self._current_family_plan() + Interface.objects.filter(pk=plan_set.plans[0].members[1].snapshot.pk).delete() + + replanned = plan_installed_families( + module, + self.rule, + build_variables(self.bay, device=self.device), + ) + + self.assertEqual(replanned.plans, ()) + + def test_simple_rule_has_no_flat_family_plan(self): + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + self.rule.channel_count = 0 + + plan_set = plan_installed_families( + module, + self.rule, + build_variables(self.bay, device=self.device), + ) + + self.assertEqual(plan_set.plans, ()) + def test_automatic_reapplication_propagates_planner_failures(self): module = Module.objects.create( device=self.device, From 8099650522affb6028032b69b31eb8ea134bcf7b Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Mon, 24 Aug 2026 00:40:46 +0200 Subject: [PATCH 14/74] fix: preserve installed family compatibility Refs #77. --- netbox_interface_name_rules/engine.py | 6 +- netbox_interface_name_rules/family/domain.py | 3 +- .../family/execution.py | 25 ++++--- .../family/installed.py | 66 ++++++++++++------- .../tests/test_channelization.py | 10 +++ .../tests/test_installed_families.py | 21 ++++++ 6 files changed, 96 insertions(+), 35 deletions(-) diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 4148be9..210c81f 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -292,7 +292,11 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=()) family_outcome = family_ops.InstalledPlanSetOutcome(families=()) if supports_channelization() or (force_reapply and rule.channel_count > 0): - plan_set = family_ops.plan_installed_families(module, rule, variables) + discovered = family_ops.plan_installed_families(module, rule, variables) + plans = tuple( + plan for plan in discovered.plans if force_reapply or plan.topology == family_ops.FamilyTopology.CHANNELIZED + ) + plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=plans) family_outcome = family_ops.execute_installed_plan_set(plan_set) interfaces = list(Interface.objects.filter(module=module).exclude(pk__in=plan_set.member_pks)) diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py index e346e8e..cdba35b 100644 --- a/netbox_interface_name_rules/family/domain.py +++ b/netbox_interface_name_rules/family/domain.py @@ -79,7 +79,8 @@ class InstalledFamilyPlan: db_alias: str members: tuple[PlannedMember, ...] parent_pk: int | None = None - blocked_reason: str = "" + precondition_status: FamilyStatus | None = None + precondition_reason: str = "" @property def member_pks(self) -> tuple[int, ...]: diff --git a/netbox_interface_name_rules/family/execution.py b/netbox_interface_name_rules/family/execution.py index e5dbb5b..c58bf51 100644 --- a/netbox_interface_name_rules/family/execution.py +++ b/netbox_interface_name_rules/family/execution.py @@ -230,13 +230,6 @@ def _execute_channelized_members(plan, live_by_pk): # pragma: no cover - requir def _execute_members(plan, live_by_pk): """Execute members while enforcing parent-first family semantics.""" - if plan.blocked_reason: # pragma: no cover - channelized mismatch only - logger.warning( - "Installed family of interface %r is blocked: %s.", - plan.members[0].snapshot.name, - plan.blocked_reason, - ) - return tuple(_blocked_member(member, plan.blocked_reason) for member in plan.members) if plan.parent_pk is None: return tuple(_rename_member(member, live_by_pk[member.snapshot.pk], plan.db_alias) for member in plan.members) return _execute_channelized_members(plan, live_by_pk) # pragma: no cover - channelization only @@ -259,6 +252,23 @@ def _execute_plan(plan: InstalledFamilyPlan) -> FamilyOutcome: interfaces = _lock_family(plan) if _is_stale(plan, interfaces): return _stale_outcome(plan) + if plan.precondition_status is not None: + logger.warning( + "Installed family of interface %r is %s: %s.", + plan.members[0].snapshot.name, + plan.precondition_status, + plan.precondition_reason, + ) + return FamilyOutcome( + family_id=plan.family_id, + topology=plan.topology, + status=plan.precondition_status, + members=tuple( + _member_outcome(member, plan.precondition_status, plan.precondition_reason) + for member in plan.members + ), + reason=plan.precondition_reason, + ) live_by_pk = {interface.pk: interface for interface in interfaces} member_outcomes = _execute_members(plan, live_by_pk) _preserve_names_across_parent_cascade(plan, member_outcomes) @@ -267,7 +277,6 @@ def _execute_plan(plan: InstalledFamilyPlan) -> FamilyOutcome: topology=plan.topology, status=_family_status(member_outcomes), members=member_outcomes, - reason=plan.blocked_reason, ) diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index e7be219..cd3eba9 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -11,6 +11,7 @@ from ..choices import BreakoutModeChoices from ..naming import evaluate_name_template from .domain import ( + FamilyStatus, FamilyTopology, InstalledFamilyPlan, InstalledFamilyPlanSet, @@ -177,38 +178,52 @@ def _flat_plan(module, db_alias, base_name, target_names, interfaces): def _channelized_plan(module, rule, variables, db_alias, parent, children, suffixes): # pragma: no cover """Build one plan for an existing channelized family.""" - blocked_reason = "" + precondition_status = None + precondition_reason = "" parent_target = parent.name child_targets = [] if rule.channel_count > 0: if parent.channels != rule.channel_count: - blocked_reason = ( + precondition_status = FamilyStatus.BLOCKED + precondition_reason = ( f"installed parent declares {parent.channels} channels but the rule defines {rule.channel_count}" ) - child_targets = [(child.name, blocked_reason) for child in children] + child_targets = [(child.name, precondition_reason) for child in children] else: - if rule.breakout_mode == BreakoutModeChoices.CHANNELIZED and rule.parent_name_template: - parent_target = evaluate_name_template( - rule.parent_name_template, - {**variables, "base": parent.name}, - ) - child_targets = [ - ( - evaluate_name_template( - rule.name_template, - { - **variables, - "base": parent.name, - "channel": str(rule.channel_start + child.channel_id - 1), - }, - ), - "", - ) - for child in children - ] + try: + if rule.breakout_mode == BreakoutModeChoices.CHANNELIZED and rule.parent_name_template: + parent_target = evaluate_name_template( + rule.parent_name_template, + {**variables, "base": parent.name}, + ) + child_targets = [ + ( + evaluate_name_template( + rule.name_template, + { + **variables, + "base": parent.name, + "channel": str(rule.channel_start + child.channel_id - 1), + }, + ), + "", + ) + for child in children + ] + except (TypeError, ValueError) as error: + precondition_status = FamilyStatus.FAILED + precondition_reason = f"failed to evaluate family targets: {error}" + parent_target = parent.name + child_targets = [(child.name, precondition_reason) for child in children] else: - parent_target = evaluate_name_template(rule.name_template, {**variables, "base": parent.name}) - child_targets = [_simple_child_target(child, parent.name, parent_target, suffixes) for child in children] + try: + parent_target = evaluate_name_template(rule.name_template, {**variables, "base": parent.name}) + child_targets = [_simple_child_target(child, parent.name, parent_target, suffixes) for child in children] + except (TypeError, ValueError) as error: + precondition_status = FamilyStatus.FAILED + precondition_reason = f"failed to evaluate family targets: {error}" + parent_target = parent.name + child_targets = [(child.name, precondition_reason) for child in children] members = [ PlannedMember( @@ -234,7 +249,8 @@ def _channelized_plan(module, rule, variables, db_alias, parent, children, suffi db_alias=db_alias, members=tuple(members), parent_pk=parent.pk, - blocked_reason=blocked_reason, + precondition_status=precondition_status, + precondition_reason=precondition_reason, ) diff --git a/netbox_interface_name_rules/tests/test_channelization.py b/netbox_interface_name_rules/tests/test_channelization.py index 217f3c3..540609b 100644 --- a/netbox_interface_name_rules/tests/test_channelization.py +++ b/netbox_interface_name_rules/tests/test_channelization.py @@ -35,11 +35,13 @@ apply_device_interface_rules, apply_interface_name_rules, apply_rule_to_existing, + build_variables, find_interfaces_for_rule, has_applicable_interfaces, predict_rule_output, supports_channelization, ) +from netbox_interface_name_rules.family import FamilyStatus, execute_installed_plan_set, plan_installed_families from netbox_interface_name_rules.models import InterfaceNameRule # Resolved defensively so this module still imports on NetBox releases without channelization. @@ -655,8 +657,16 @@ def test_template_failing_on_a_later_channel_renames_no_child(self): """Every child name is computed before the first save, so one bad channel aborts the family.""" module, bay = self._install(self.module_type, "4", run_rules=False) + plan_set = plan_installed_families(module, self.rule, build_variables(bay, device=self.device)) + outcome = execute_installed_plan_set(plan_set) + renamed = apply_interface_name_rules(module, bay) + self.assertEqual(outcome.families[0].status, FamilyStatus.FAILED) + self.assertEqual( + {member.status for member in outcome.families[0].members}, + {FamilyStatus.FAILED}, + ) self.assertEqual(renamed, 0) self.assertEqual(self._names(module), ["4", "4:1", "4:2", "4:3", "4:4"]) diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index ecd5efa..a374c47 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -201,6 +201,27 @@ def test_current_flat_family_collision_blocks_each_occupied_target(self): ["xe-0/0/7:0", "xe-0/0/7:1"], ) + def test_failed_precondition_returns_member_facts_without_changes(self): + module, plan_set = self._current_family_plan() + plan = replace( + plan_set.plans[0], + precondition_status=FamilyStatus.FAILED, + precondition_reason="failed to evaluate family targets", + ) + + result = execute_installed_plan_set(replace(plan_set, plans=(plan,))) + + self.assertEqual(result.families[0].status, FamilyStatus.FAILED) + self.assertEqual( + {member.status for member in result.families[0].members}, + {FamilyStatus.FAILED}, + ) + self.assertEqual(result.changed_count, 0) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["xe-0/0/7:0", "xe-0/0/7:1"], + ) + def test_incomplete_current_flat_family_is_not_planned(self): module, plan_set = self._current_family_plan() Interface.objects.filter(pk=plan_set.plans[0].members[1].snapshot.pk).delete() From 538aa5e59e06fa434957454a680ea7790e529e8c Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Mon, 24 Aug 2026 01:26:58 +0200 Subject: [PATCH 15/74] fix: retain legacy family selection --- netbox_interface_name_rules/engine.py | 27 ++++++++++-- .../family/installed.py | 12 ++++- .../tests/test_channelization.py | 7 ++- .../tests/test_installed_families.py | 44 +++++++++++++++---- 4 files changed, 75 insertions(+), 15 deletions(-) diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 210c81f..bc4fb65 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -289,12 +289,34 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): return 0 variables = build_variables(module_bay, device=module.device) + raw = _raw_name_matchers(module) + raw_names = raw.names or {variables["bay_position"]} plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=()) family_outcome = family_ops.InstalledPlanSetOutcome(families=()) if supports_channelization() or (force_reapply and rule.channel_count > 0): discovered = family_ops.plan_installed_families(module, rule, variables) + flat_snapshots = [ + member.snapshot + for plan in discovered.plans + if plan.topology == family_ops.FamilyTopology.FLAT + for member in plan.members + ] + selected_flat_member_pks = frozenset( + interface.pk + for interface in _collect_unrenamed( + flat_snapshots, + rule, + raw_names, + force_reapply, + raw.matchers, + module, + ) + ) plans = tuple( - plan for plan in discovered.plans if force_reapply or plan.topology == family_ops.FamilyTopology.CHANNELIZED + plan + for plan in discovered.plans + if plan.topology == family_ops.FamilyTopology.CHANNELIZED + or selected_flat_member_pks.intersection(plan.member_pks) ) plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=plans) family_outcome = family_ops.execute_installed_plan_set(plan_set) @@ -306,9 +328,6 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): # Only bases are rule candidates; the idempotency guard therefore looks at them alone. bases, children_by_parent = _partition_families(interfaces) - # Determine raw names NetBox assigned from templates; fall back to bay_position. - raw = _raw_name_matchers(module) - raw_names = raw.names or {variables["bay_position"]} unrenamed = _collect_unrenamed(bases, rule, raw_names, force_reapply, raw.matchers, module) if not unrenamed: diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index cd3eba9..ac34008 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -121,6 +121,8 @@ def _flat_candidates(rule, variables, interfaces, templates): return [] by_name = {interface.name: interface for interface in interfaces if _is_plain_interface(interface)} + if not by_name: + return [] historical_by_template = { template.pk: _historical_bases(rule, variables, template, interfaces) for template in templates } @@ -133,7 +135,10 @@ def _flat_candidates(rule, variables, interfaces, templates): candidates = [] for template in templates: - target_names = _flat_names(rule, variables, template.resolved) + try: + target_names = _flat_names(rule, variables, template.resolved) + except (TypeError, ValueError): + continue historical_bases = tuple( base_name for base_name in historical_by_template[template.pk] @@ -141,7 +146,10 @@ def _flat_candidates(rule, variables, interfaces, templates): ) source_bases = (template.resolved, *historical_bases) for source_base in source_bases: - source_names = _flat_names(rule, variables, source_base) + try: + source_names = _flat_names(rule, variables, source_base) + except (TypeError, ValueError): + continue if len(set(source_names)) != len(source_names) or not all(name in by_name for name in source_names): continue members = tuple(by_name[name] for name in source_names) diff --git a/netbox_interface_name_rules/tests/test_channelization.py b/netbox_interface_name_rules/tests/test_channelization.py index 540609b..b542479 100644 --- a/netbox_interface_name_rules/tests/test_channelization.py +++ b/netbox_interface_name_rules/tests/test_channelization.py @@ -645,6 +645,11 @@ class ChannelizedBreakoutTemplateErrorTest(ChannelizationTestCase): def setUpTestData(cls): manufacturer, cls.device = _build_device("ChanErr", ["4"]) cls.module_type = _channelized_module_type(manufacturer, "ChanErr-QSFP") + InterfaceTemplate.objects.create( + module_type=cls.module_type, + name="mgmt-{module}", + type=PLAIN_TYPE, + ) # Valid for channel 0, divides by zero from channel 1 on. cls.rule = InterfaceNameRule.objects.create( module_type=cls.module_type, @@ -668,7 +673,7 @@ def test_template_failing_on_a_later_channel_renames_no_child(self): {FamilyStatus.FAILED}, ) self.assertEqual(renamed, 0) - self.assertEqual(self._names(module), ["4", "4:1", "4:2", "4:3", "4:4"]) + self.assertEqual(self._names(module), ["4", "4:1", "4:2", "4:3", "4:4", "mgmt-4"]) @skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index a374c47..bb9d9c6 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -40,6 +40,7 @@ ) from netbox_interface_name_rules.family import execution as family_execution from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.naming import evaluate_name_template CHANNEL_TYPE = getattr(InterfaceTypeChoices, "TYPE_CHANNEL", "channel") PARENT_TYPE = InterfaceTypeChoices.TYPE_40GE_QSFP_PLUS @@ -360,7 +361,7 @@ def _historical_family_plan(self): ) return module, plan_set - def _historical_family_state(self): + def _historical_family_state(self, name_template="brk-{base}:{channel}"): """Return a flat family installed at VC position 1 after moving to position 2.""" virtual_chassis = VirtualChassis.objects.create(name="family-plan-vc") self.device.virtual_chassis = virtual_chassis @@ -378,16 +379,16 @@ def _historical_family_state(self): ) rule = InterfaceNameRule.objects.create( module_type=token_type, - name_template="brk-{base}:{channel}", + name_template=name_template, channel_count=2, channel_start=0, ) module = Module.objects.create(device=self.device, module_bay=self.bay, module_type=token_type) apply_interface_name_rules(module, self.bay) - self.assertEqual( - sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), - ["brk-xe-1/0/7:0", "brk-xe-1/0/7:1"], - ) + expected = [ + evaluate_name_template(name_template, {"base": "xe-1/0/7", "channel": str(channel)}) for channel in range(2) + ] + self.assertEqual(sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), expected) self.device.vc_position = 2 self.device.save() module = Module.objects.select_related("device", "module_bay").get(pk=module.pk) @@ -434,7 +435,7 @@ def reject_interface_update(execute, sql, params, many, context): @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") def test_automatic_reapplication_uses_the_installed_family_executor(self): - module, _rule = self._historical_family_state() + module, _rule = self._historical_family_state("{base}:{channel}") with CaptureQueriesContext(connection) as queries: renamed = apply_interface_name_rules(module, module.module_bay, force_reapply=True) @@ -442,10 +443,37 @@ def test_automatic_reapplication_uses_the_installed_family_executor(self): self.assertEqual(renamed, 2) self.assertEqual( sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), - ["brk-xe-2/0/7:0", "brk-xe-2/0/7:1"], + ["xe-2/0/7:0", "xe-2/0/7:1"], ) self.assertTrue(any("FOR UPDATE" in query["sql"] for query in queries.captured_queries)) + @skipUnless(supports_vc_position_token(), "requires NetBox virtual-chassis position templates") + def test_forced_reapplication_preserves_a_wrapped_historical_family(self): + module, _rule = self._historical_family_state() + + renamed = apply_interface_name_rules(module, module.module_bay, force_reapply=True) + + self.assertEqual(renamed, 0) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["brk-xe-1/0/7:0", "brk-xe-1/0/7:1"], + ) + + @skipUnless( + supports_channelization() and supports_vc_position_token(), + "requires NetBox channelization and virtual-chassis position templates", + ) + def test_normal_reapplication_preserves_a_wrapped_historical_family(self): + module, _rule = self._historical_family_state() + + renamed = apply_interface_name_rules(module, module.module_bay) + + self.assertEqual(renamed, 0) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["brk-xe-1/0/7:0", "brk-xe-1/0/7:1"], + ) + def _two_historical_family_state(self): """Return two complete historical flat families and their current rule context.""" virtual_chassis = VirtualChassis.objects.create(name="family-plan-two-vc") From 0e62d3e99c05401354732f20fdd44c212094faba Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 13:16:20 +0200 Subject: [PATCH 16/74] fix: read leftover interfaces from the module database alias The installed-family planner resolved interfaces through the alias the module row came from, while the engine read the remaining interfaces with the default manager. On a module loaded from another alias the plan set and the leftover query then came from two databases, so the member exclusion no longer described the rows it filtered. Both paths now derive the alias from one helper, family.module_db_alias. Known gap, tracked separately: the leftover rename path itself is not alias-aware. Its collision pre-checks, channel creation and transaction block still run on the default alias, so a non-default module still splits reads from writes there. Making that path alias-aware means threading the alias through _apply_rule_with_family and its four branches, which is outside this change. Refs #77. --- netbox_interface_name_rules/engine.py | 3 +- .../family/__init__.py | 3 +- .../family/installed.py | 7 +- .../tests/test_installed_families.py | 81 ++++++++++++++++++- 4 files changed, 90 insertions(+), 4 deletions(-) diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index bc4fb65..2415026 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -321,7 +321,8 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=plans) family_outcome = family_ops.execute_installed_plan_set(plan_set) - interfaces = list(Interface.objects.filter(module=module).exclude(pk__in=plan_set.member_pks)) + remaining = Interface.objects.using(family_ops.module_db_alias(module)).filter(module=module) + interfaces = list(remaining.exclude(pk__in=plan_set.member_pks)) if not interfaces: return family_outcome.changed_count diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py index 7502673..731cd59 100644 --- a/netbox_interface_name_rules/family/__init__.py +++ b/netbox_interface_name_rules/family/__init__.py @@ -15,7 +15,7 @@ PlannedMember, ) from .execution import execute_installed_plan_set -from .installed import plan_installed_families +from .installed import module_db_alias, plan_installed_families __all__ = ( "FamilyOutcome", @@ -29,5 +29,6 @@ "MemberRole", "PlannedMember", "execute_installed_plan_set", + "module_db_alias", "plan_installed_families", ) diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index ac34008..8b11588 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -26,6 +26,11 @@ _BASE_SENTINEL = "InrBaseSentinelEnd" +def module_db_alias(module) -> str: + """Return the database alias that *module* was loaded from.""" + return module._state.db or DEFAULT_DB_ALIAS + + def _is_plain_interface(interface) -> bool: """Return whether *interface* can be a flat-family member.""" return ( @@ -280,7 +285,7 @@ def _channelized_plans(module, rule, variables, db_alias, interfaces, templates) def plan_installed_families(module, rule, variables) -> InstalledFamilyPlanSet: """Return immutable plans for the installed families owned by *module*.""" - db_alias = module._state.db or DEFAULT_DB_ALIAS + db_alias = module_db_alias(module) interfaces = list(Interface.objects.using(db_alias).filter(module_id=module.pk).order_by("pk")) templates = resolved_template_names(module) plans = _channelized_plans(module, rule, variables, db_alias, interfaces, templates) diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index bb9d9c6..4949783 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -21,7 +21,7 @@ Site, VirtualChassis, ) -from django.db import IntegrityError, connection +from django.db import DEFAULT_DB_ALIAS, IntegrityError, connection, connections from django.test import TestCase from django.test.utils import CaptureQueriesContext @@ -720,3 +720,82 @@ def test_blocked_child_leaves_only_that_child_unchanged(self): sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), ["6", "6:3", "xe-0/0/6:0"], ) + + +class InstalledFamilyDatabaseAliasTest(TestCase): + """Automatic renaming reads leftover interfaces from the alias the module row came from. + + A second alias onto the same test database gets its own connection, so it cannot see the rows + this test created inside its own open transaction. Binding the module to that alias therefore + leaves the leftover query with nothing to rename, unless the query still runs on the default + connection, which is the split the review found. + """ + + ALIAS = "family_alias" + + @classmethod + def setUpTestData(cls): + manufacturer = Manufacturer.objects.create(name="AliasMfg", slug="alias-mfg") + device_type = DeviceType.objects.create(manufacturer=manufacturer, model="ALIAS-DEV", slug="alias-dev") + ModuleBayTemplate.objects.create(device_type=device_type, name="Bay 7", position="7") + cls.module_type = ModuleType.objects.create( + manufacturer=manufacturer, + model="ALIAS-QSFP", + part_number="ALIAS-QSFP", + ) + InterfaceTemplate.objects.create(module_type=cls.module_type, name="{module}", type="100gbase-x-qsfp28") + role = DeviceRole.objects.create(name="AliasRole", slug="alias-role") + site = Site.objects.create(name="AliasSite", slug="alias-site") + cls.device = Device.objects.create( + name="alias-device-01", + device_type=device_type, + role=role, + site=site, + ) + cls.bay = ModuleBay.objects.get(device=cls.device, name="Bay 7") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{base}:{channel}", + channel_count=2, + channel_start=0, + ) + + def _use_second_alias(self): + """Point a second alias at the live test database and let this test reach it.""" + connections.settings[self.ALIAS] = dict(connections[DEFAULT_DB_ALIAS].settings_dict) + declared = type(self).databases + type(self).databases = frozenset({*declared, self.ALIAS}) + self.addCleanup(connections.settings.pop, self.ALIAS, None) + self.addCleanup(connections[self.ALIAS].close) + self.addCleanup(setattr, type(self), "databases", declared) + return self.ALIAS + + @staticmethod + def _names(module): + return sorted(Interface.objects.filter(module=module).values_list("name", flat=True)) + + def test_leftover_interfaces_are_read_from_the_module_alias(self): + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + module._state.db = self._use_second_alias() + + with CaptureQueriesContext(connections[self.ALIAS]) as aliased: + renamed = apply_interface_name_rules(module, self.bay) + + self.assertEqual(renamed, 0) + self.assertEqual(self._names(module), ["7"]) + self.assertTrue([query for query in aliased.captured_queries if 'FROM "dcim_interface"' in query["sql"]]) + + def test_the_same_module_on_the_default_alias_breaks_out_the_family(self): + """The control: only the alias makes the leftover pass find no interface to rename.""" + module = Module.objects.create( + device=self.device, + module_bay=self.bay, + module_type=self.module_type, + ) + + self.assertEqual(apply_interface_name_rules(module, self.bay), 2) + self.assertEqual(self._names(module), ["xe-0/0/7:0", "xe-0/0/7:1"]) From 3d0100deb7f945b900363d0db9b1d45f76a0e541 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 13:16:29 +0200 Subject: [PATCH 17/74] fix: bound the virtual-chassis position matchers A template name with two adjacent {vc_position} tokens produced a historical matcher holding back-to-back unbounded numeric runs, for example \d+\d+. A fullmatch that fails then backtracks over every way to split the digits, so a long interface name could hold the naming path for an unbounded time. Each token now matches at most ten digits, the width a vc_position value can have, and a template whose tokens are adjacent builds no matcher at all, because adjacent tokens cannot be told apart. The matcher is now rebuilt from the marker positions instead of by text replacement. A template name that itself spells a marker would shift those positions, so the builder checks the markers against the ones it inserted and returns no matcher when they differ, rather than raising IndexError. Refs #77. --- .../family/template_names.py | 22 +++++++-- .../tests/test_vc_drift.py | 49 +++++++++++++++++++ 2 files changed, 66 insertions(+), 5 deletions(-) diff --git a/netbox_interface_name_rules/family/template_names.py b/netbox_interface_name_rules/family/template_names.py index 18d88b1..3362695 100644 --- a/netbox_interface_name_rules/family/template_names.py +++ b/netbox_interface_name_rules/family/template_names.py @@ -24,6 +24,9 @@ ) _VC_SENTINEL = "InrVcPositionSentinel{}End" +_VC_SENTINEL_RE = re.compile(r"InrVcPositionSentinel(\d+)End") +# NetBox stores vc_position in a PositiveIntegerField, so ten digits cover every valid value. +_VC_POSITION_DIGITS = r"\d{1,10}" RawMatcher = namedtuple("RawMatcher", ("template_name", "resolved", "pattern")) RawNames = namedtuple("RawNames", ("names", "matchers")) @@ -54,8 +57,8 @@ def vc_position_re(): def _vc_position_alternatives(fallback): # pragma: no cover - requires virtual-chassis token support """Return every value represented by one virtual-chassis position token.""" if fallback is None: - return r"\d+" - return f"(?:\\d+|{re.escape(fallback)})" + return _VC_POSITION_DIGITS + return f"(?:{_VC_POSITION_DIGITS}|{re.escape(fallback)})" def _historical_pattern(template, module, token_re): # pragma: no cover - requires virtual-chassis token support @@ -71,9 +74,18 @@ def mark(match): return None stub = copy.copy(template) stub.name = marked - pattern = re.escape(stub.resolve_name(module)) - for index, fallback in enumerate(fallbacks): - pattern = pattern.replace(_VC_SENTINEL.format(index), _vc_position_alternatives(fallback)) + parts = _VC_SENTINEL_RE.split(re.escape(stub.resolve_name(module))) + literals = parts[0::2] + indexes = parts[1::2] + # A sentinel-shaped literal in the template name would shift these indexes; refuse to guess. + if indexes != [str(index) for index in range(len(fallbacks))]: + return None + # Adjacent tokens cannot be told apart, and their alternatives would backtrack without bound. + if any(not literal for literal in literals[1:-1]): + return None + pattern = literals[0] + for index, literal in zip(indexes, literals[1:], strict=True): + pattern += _vc_position_alternatives(fallbacks[int(index)]) + literal return _compile_pattern(pattern) diff --git a/netbox_interface_name_rules/tests/test_vc_drift.py b/netbox_interface_name_rules/tests/test_vc_drift.py index 8271883..80d3ab8 100644 --- a/netbox_interface_name_rules/tests/test_vc_drift.py +++ b/netbox_interface_name_rules/tests/test_vc_drift.py @@ -403,6 +403,55 @@ def test_two_token_templates_that_do_not_overlap_both_rename(self): self.assertEqual(self._names(module), ["et-xe-1/5/4", "et-xe-5/0/4"]) +class VcPositionAdjacentTokenTest(VcDriftTestCase): + """Tokens with nothing between them cannot be told apart, so the template builds no matcher. + + Back-to-back tokens expand to back-to-back numeric alternatives, which backtrack for an + unbounded time on a name that does not match. Every remaining token matches only as many + digits as ``vc_position`` can hold. + """ + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device( + "VcAdj", ["3", "4"], virtual_chassis=VirtualChassis.objects.create(name="vcadj-vc"), vc_position=1 + ) + cls.adjacent_type = _token_module_type(manufacturer, "VcAdj-QSFP", "xe-{vc_position}{vc_position}/0/{module}") + cls.separated_type = _token_module_type(manufacturer, "VcAdj-SFP", "xe-{vc_position}/{vc_position}/{module}") + # A template name may legally spell the marker the matcher builder inserts for itself. + cls.sentinel_type = _token_module_type( + manufacturer, "VcAdj-QSFP28", "xe-InrVcPositionSentinel1End-{vc_position}/{module}" + ) + + @skipUnless(supports_vc_position_token(), REQUIRES_VC_POSITION_TOKEN) + def test_adjacent_tokens_build_no_matcher_at_all(self): + module, _ = self._install_on(self.device, self.adjacent_type, "3") + + self.assertEqual(self._names(module), ["xe-11/0/3"]) + self.assertEqual(_raw_name_patterns(module), []) + + @skipUnless(supports_vc_position_token(), REQUIRES_VC_POSITION_TOKEN) + def test_a_separated_token_matches_only_a_storable_position(self): + module, _ = self._install_on(self.device, self.separated_type, "4") + self.assertEqual(self._names(module), ["xe-1/1/4"]) + + patterns = _raw_name_patterns(module) + + self.assertEqual(len(patterns), 1) + self.assertNotIn(r"\d+", patterns[0].pattern) + self.assertTrue(patterns[0].fullmatch("xe-1/1/4")) + self.assertTrue(patterns[0].fullmatch("xe-2147483647/0/4")) # the largest position NetBox stores + self.assertIsNone(patterns[0].fullmatch("xe-12345678901/0/4")) + + @skipUnless(supports_vc_position_token(), REQUIRES_VC_POSITION_TOKEN) + def test_a_sentinel_shaped_literal_builds_no_matcher_instead_of_raising(self): + module, bay = self._install_on(self.device, self.sentinel_type, "3") + + self.assertEqual(self._names(module), ["xe-InrVcPositionSentinel1End-1/3"]) + self.assertEqual(_raw_name_patterns(module), []) + self.assertEqual(apply_interface_name_rules(module, bay), 0) + + # --------------------------------------------------------------------------- # Controls: no token, and no token support # --------------------------------------------------------------------------- From 3119f2bd4d23d1b6401de1bcbbeeb32d7ba88eb9 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 13:16:41 +0200 Subject: [PATCH 18/74] refactor: split flat-family candidate discovery SonarCloud reported cognitive complexity 19 against a limit of 15 for _flat_candidates, and an unused base_name parameter on _flat_plan. The ambiguity computation, the per-template candidate construction and the single-claim filter each move into their own function, so _flat_candidates now only orchestrates them. The candidate dedupe stays in the caller and still runs against every candidate collected so far, so two templates that resolve to one name keep producing a single candidate. _flat_plan derives family_id from its first member, so it drops base_name. Refs #77. --- .../family/installed.py | 87 +++++++++++-------- 1 file changed, 53 insertions(+), 34 deletions(-) diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index 8b11588..312f5a3 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -120,6 +120,52 @@ def _historical_bases(rule, variables, template, interfaces): # pragma: no cove return tuple(sorted(bases)) +def _ambiguous_bases(historical_by_template): + """Return every historical base that more than one template could claim.""" + ambiguous = {base_name for bases in historical_by_template.values() if len(bases) > 1 for base_name in bases} + single_claims: dict[str, int] = {} + for bases in historical_by_template.values(): + if len(bases) == 1: # pragma: no cover - historical matchers require VC token support + single_claims[bases[0]] = single_claims.get(bases[0], 0) + 1 + ambiguous.update(base_name for base_name, count in single_claims.items() if count > 1) + return ambiguous + + +def _source_bases(template, historical_bases, ambiguous_bases): + """Return the template's own base and every historical base it alone claims.""" + unambiguous = tuple( + base_name for base_name in historical_bases if len(historical_bases) == 1 and base_name not in ambiguous_bases + ) + return (template.resolved, *unambiguous) + + +def _template_candidates(rule, variables, by_name, template, source_bases): + """Return every complete flat family that *template* recovers from *source_bases*.""" + try: + target_names = _flat_names(rule, variables, template.resolved) + except (TypeError, ValueError): + return [] + candidates = [] + for source_base in source_bases: + try: + source_names = _flat_names(rule, variables, source_base) + except (TypeError, ValueError): + continue + if len(set(source_names)) != len(source_names) or not all(name in by_name for name in source_names): + continue + candidates.append((template.resolved, target_names, tuple(by_name[name] for name in source_names))) + return candidates + + +def _singly_claimed(candidates): + """Return only the candidates whose members no other candidate also claims.""" + claims: dict[int, int] = {} + for _base_name, _names, members in candidates: + for member in members: + claims[member.pk] = claims.get(member.pk, 0) + 1 + return [candidate for candidate in candidates if all(claims[member.pk] == 1 for member in candidate[2])] + + def _flat_candidates(rule, variables, interfaces, templates): """Return complete, unambiguous flat-family candidates for *module*.""" if rule.channel_count <= 0 or rule.breakout_mode != BreakoutModeChoices.FLAT: @@ -131,45 +177,18 @@ def _flat_candidates(rule, variables, interfaces, templates): historical_by_template = { template.pk: _historical_bases(rule, variables, template, interfaces) for template in templates } - ambiguous_bases = {base_name for bases in historical_by_template.values() if len(bases) > 1 for base_name in bases} - single_claims: dict[str, int] = {} - for bases in historical_by_template.values(): - if len(bases) == 1: # pragma: no cover - historical matchers require VC token support - single_claims[bases[0]] = single_claims.get(bases[0], 0) + 1 - ambiguous_bases.update(base_name for base_name, count in single_claims.items() if count > 1) + ambiguous_bases = _ambiguous_bases(historical_by_template) candidates = [] for template in templates: - try: - target_names = _flat_names(rule, variables, template.resolved) - except (TypeError, ValueError): - continue - historical_bases = tuple( - base_name - for base_name in historical_by_template[template.pk] - if len(historical_by_template[template.pk]) == 1 and base_name not in ambiguous_bases - ) - source_bases = (template.resolved, *historical_bases) - for source_base in source_bases: - try: - source_names = _flat_names(rule, variables, source_base) - except (TypeError, ValueError): - continue - if len(set(source_names)) != len(source_names) or not all(name in by_name for name in source_names): - continue - members = tuple(by_name[name] for name in source_names) - candidate = (template.resolved, target_names, members) + source_bases = _source_bases(template, historical_by_template[template.pk], ambiguous_bases) + for candidate in _template_candidates(rule, variables, by_name, template, source_bases): if candidate not in candidates: # pragma: no branch - duplicates require historical matchers candidates.append(candidate) - - claims: dict[int, int] = {} - for _base_name, _names, members in candidates: - for member in members: - claims[member.pk] = claims.get(member.pk, 0) + 1 - return [candidate for candidate in candidates if all(claims[member.pk] == 1 for member in candidate[2])] + return _singly_claimed(candidates) -def _flat_plan(module, db_alias, base_name, target_names, interfaces): +def _flat_plan(module, db_alias, target_names, interfaces): """Build one immutable plan from a complete flat-family candidate.""" members = tuple( PlannedMember( @@ -290,8 +309,8 @@ def plan_installed_families(module, rule, variables) -> InstalledFamilyPlanSet: templates = resolved_template_names(module) plans = _channelized_plans(module, rule, variables, db_alias, interfaces, templates) plans.extend( - _flat_plan(module, db_alias, base_name, target_names, members) - for base_name, target_names, members in _flat_candidates(rule, variables, interfaces, templates) + _flat_plan(module, db_alias, target_names, members) + for _base_name, target_names, members in _flat_candidates(rule, variables, interfaces, templates) ) plans.sort(key=lambda plan: plan.member_pks[0]) return InstalledFamilyPlanSet(module_id=module.pk, plans=tuple(plans)) From 099f62b003f115971de520922d30714b77109dec Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 14:49:59 +0200 Subject: [PATCH 19/74] refactor: build channelized families through family plans Structural creation of a channelized family moves out of the engine into the family package, as an immutable plan plus an executor. family/capabilities.py owns the probe that decides whether the active NetBox data model can hold a channelized family. The engine keeps a delegating entry point, so callers and templates are unchanged. family/structural.py plans the parent, the declared channel capacity, the expected channels, their intended names and the base snapshot, then installs them in one transaction. It locks and revalidates the base row, runs NetBox model validation against the real rows, and rolls the whole family back on a collision, a validation failure, a stale base or a channel-creation failure. A release that cannot model channels now produces a FamilyStatus.UNSUPPORTED outcome instead of a version branch in the caller. A rule whose template cannot be evaluated produces a FamilyStatus.FAILED outcome, so a broken template no longer reaches the caller as an exception that could leave the family invisible to the collision bookkeeping and mislabel the rule as potentially deprecated. family/names.py holds the single implementation of the deferred parent-cascade reconciliation, together with the name-collision helpers both executors need. The engine's duplicate is gone; the legacy family rename now drives the same function. Callback registration stays inside the family package. Refs #78. --- ...nsupported-topology-as-a-family-outcome.md | 7 + netbox_interface_name_rules/engine.py | 222 ++-------- .../family/__init__.py | 18 + .../family/capabilities.py | 19 + netbox_interface_name_rules/family/domain.py | 34 ++ .../family/execution.py | 92 +---- netbox_interface_name_rules/family/names.py | 91 ++++ .../family/structural.py | 229 +++++++++++ .../tests/test_installed_families.py | 20 - .../tests/test_structural_families.py | 388 ++++++++++++++++++ 10 files changed, 826 insertions(+), 294 deletions(-) create mode 100644 docs/adr/0007-report-an-unsupported-topology-as-a-family-outcome.md create mode 100644 netbox_interface_name_rules/family/capabilities.py create mode 100644 netbox_interface_name_rules/family/names.py create mode 100644 netbox_interface_name_rules/family/structural.py create mode 100644 netbox_interface_name_rules/tests/test_structural_families.py diff --git a/docs/adr/0007-report-an-unsupported-topology-as-a-family-outcome.md b/docs/adr/0007-report-an-unsupported-topology-as-a-family-outcome.md new file mode 100644 index 0000000..745796d --- /dev/null +++ b/docs/adr/0007-report-an-unsupported-topology-as-a-family-outcome.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Report an unsupported topology as a family outcome + +The family package owns the probe that decides whether the active NetBox data model can hold a channelized family, and it probes the Interface model rather than comparing versions. A rule that describes a topology the release cannot hold produces a plan whose precondition is `unsupported` and an outcome that says so. Callers map that outcome to their own reporting; they never branch on the NetBox version and never fall back to a different topology. A caller-side version check would let one entry point build a flat family that another refuses, and silently give the operator a topology the rule did not ask for. diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 2415026..cdbaf48 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -16,6 +16,7 @@ from . import family as family_ops from . import naming, rule_selection from .choices import BreakoutModeChoices +from .family import names as family_names from .family import template_names as family_template_names from .rule_selection import _compile_pattern @@ -71,19 +72,8 @@ def _get_parent_module_type(module_bay): def supports_channelization(): - """Return True when this NetBox models channelized subinterfaces (NetBox 4.7+). - - Probed from the Interface model rather than a version comparison, so a backport or a - development build is detected by what it actually provides. - """ - from dcim.models import Interface - from django.core.exceptions import FieldDoesNotExist - - try: - Interface._meta.get_field("channel_id") - except FieldDoesNotExist: - return False - return True # pragma: no cover - only reachable on a NetBox that models channelization + """Delegate the channelization capability check while preserving the engine entry point.""" + return family_ops.supports_channelization() def _vc_position_re(): @@ -420,6 +410,12 @@ def _predicted_family_parent_name(rule, raw_name, variables, parents): # pragma return evaluate_name_template(rule.parent_name_template, {**variables, "base": raw_name}) +def _predicted_family_names(rule, raw_name, variables): # pragma: no cover - channelization only + """Return the parent and channel names a channelized rule would build on *raw_name*.""" + parent_name, channels = family_ops.channelized_family_names(rule, raw_name, variables) + return [parent_name, *(name for _, name in channels)] + + def _predicted_names(rule, raw_name, variables, parents, children, family_blocked=False): """Return the names *raw_name* predicts to under *rule*. @@ -438,8 +434,7 @@ def _predicted_names(rule, raw_name, variables, parents, children, family_blocke if rule.channel_count > 0 and _is_channelized_rule(rule): if family_blocked or not supports_channelization(): return [raw_name] # the apply path builds nothing here - parent_name, channels = _channelized_family_names(rule, raw_name, variables) # pragma: no cover - see above - return [parent_name, *(name for _, name in channels)] # pragma: no cover - see above + return _predicted_family_names(rule, raw_name, variables) # pragma: no cover - see above vars_copy = {**variables, "base": raw_name} if rule.channel_count > 0: return [ @@ -484,7 +479,7 @@ def predict_rule_output(module, module_bay, raw_names): rule.channel_count > 0 and _is_channelized_rule(rule) and supports_channelization() - and _has_flat_expansion(module) + and family_ops.has_flat_expansion(module) ) output = [] @@ -931,63 +926,6 @@ def _rename_for_family(iface, new_name, device, conflicts): # pragma: no cover return _RenameResult(new_name, _RENAMED, 1) if renamed else _RenameResult(new_name, _COLLISION, 0) -def _restore_deferred_channel_names(reconciliations, db_alias): # pragma: no cover - channelization only - """Restore plugin-owned names that NetBox's parent cascade changed after commit.""" - from dcim.models import Interface - - child_pks = [child_pk for child_pk, _final_name, _cascade_name in reconciliations] - with transaction.atomic(using=db_alias): - children = Interface.objects.using(db_alias).select_for_update().select_related("device").in_bulk(child_pks) - for child_pk, final_name, cascade_name in reconciliations: - child = children.get(child_pk) - if child is None or child.name == final_name: - continue - if child.name != cascade_name: - logger.warning( - "Channel interface %s changed to unexpected name %r before deferred reconciliation; " - "leaving it unchanged.", - child_pk, - child.name, - ) - continue - previous_name = child.name - try: - with transaction.atomic(using=db_alias): - child.name = final_name - child.full_clean() - child.save(using=db_alias) - except (ValueError, ValidationError, IntegrityError): - child.name = previous_name - logger.exception( - "Failed to restore channel interface %s from NetBox's deferred name %r to %r; skipping.", - child_pk, - cascade_name, - final_name, - ) - - -def _preserve_names_across_parent_cascade(parent, parent_before, final_names): # pragma: no cover - """Run after NetBox's deferred cascade when a rule intentionally keeps old-parent child names.""" - if parent.name == parent_before: - return - - reconciliations = [] - for child, final_name in final_names: - old_conventional_name = f"{parent_before}:{child.channel_id}" - cascade_name = f"{parent.name}:{child.channel_id}" - if final_name == old_conventional_name and final_name != cascade_name: - reconciliations.append((child.pk, final_name, cascade_name)) - if not reconciliations: - return - - reconciliations = tuple(reconciliations) - db_alias = parent._state.db - transaction.on_commit( - lambda: _restore_deferred_channel_names(reconciliations, db_alias), - using=db_alias, - ) - - def _rename_channel_children(parent, parent_before, children, module, conflicts): # pragma: no cover - see above """Carry the parent's new name onto its channel subinterfaces; return how many were renamed.""" count = 0 @@ -1079,7 +1017,12 @@ def _apply_breakout_rule_to_family(rule, parent, children, variables, module, co count += child_result.count final_name = new_name if child_result.outcome in (_RENAMED, _UNCHANGED) else previous_name final_names.append((child, final_name)) - _preserve_names_across_parent_cascade(parent, base_name, final_names) + family_names.reconcile_after_parent_cascade( + base_name, + parent.name, + tuple((child.pk, child.channel_id, final_name) for child, final_name in final_names), + family_ops.module_db_alias(module), + ) return count @@ -1088,129 +1031,20 @@ def _is_channelized_rule(rule): return rule.breakout_mode == BreakoutModeChoices.CHANNELIZED -def _channelized_family_names(rule, base_name, variables): # pragma: no cover - requires channelization support - """Return ``(parent_name, [(channel_id, name), ...])`` for the family *rule* builds on *base_name*. - - ``{base}`` is the base interface's current name for the parent and every channel; ``{channel}`` - is ``channel_start + channel_id - 1``. A blank parent template leaves the base's name alone. - Takes the name rather than the interface so prediction can reuse it without a row to point at. - """ - family_vars = {**variables, "base": base_name} - parent_name = base_name - if rule.parent_name_template: - parent_name = evaluate_name_template(rule.parent_name_template, family_vars) - channels = [ - ( - channel_id, - evaluate_name_template( - rule.name_template, {**family_vars, "channel": str(rule.channel_start + channel_id - 1)} - ), - ) - for channel_id in range(1, rule.channel_count + 1) - ] - return parent_name, channels - - -def _has_flat_expansion(module): # pragma: no cover - requires channelization support - """Return True when *module* carries more interfaces than its module type's templates describe. - - A flat breakout leaves N-1 rows beyond the templates, so the surplus is the structural mark of a - family an earlier apply installed. Counting templates rather than their resolved names keeps - two templates that resolve to the same string from reading as one. - """ - from dcim.models import Interface, InterfaceTemplate - - templates = InterfaceTemplate.objects.filter(module_type_id=module.module_type_id).count() - return Interface.objects.filter(module=module).count() > templates - - -def _first_taken_name(device, names, exclude_pk): # pragma: no cover - requires channelization support - """Return the first of *names* already used by another interface on *device*, or None.""" - for name in names: - if _name_exists_on_device(device, name, exclude_pk=exclude_pk): - return name - return None - - -def _build_channelized_family(rule, base, variables, module, conflicts): # pragma: no cover - see above - """Turn a plain base interface into a channelized family; return how many rows it changed. - - The whole family is preflighted before anything is written: a module that already carries a flat - family, or a single occupied name — the parent's or any channel's — leaves the base exactly as - it was instead of half converting it. - """ - from dcim.choices import InterfaceTypeChoices - from dcim.models import Interface - - device = module.device - base_name = base.name - parent_name, channels = _channelized_family_names(rule, base_name, variables) - if _has_flat_expansion(module): - # Converting one sibling into a parent would strand the others beside the new family. - logger.warning( - "Module %s already carries a flat breakout family; rule '%s' will not convert interface " - "%r into the channelized parent %r — converting an installed family is a separate, " - "explicit operation. Skipping.", - module, - rule, - base.name, - parent_name, - ) - _record_skip(conflicts, device, base.name, parent_name, base.pk) - return 0 - blocker = _first_taken_name(device, [parent_name, *(name for _, name in channels)], base.pk) - if blocker is not None: - logger.warning( - "Cannot build the channelized family for interface %r on device %s: %r is already taken; skipping.", - base.name, - device, - blocker, - ) - _record_skip(conflicts, device, base.name, blocker, base.pk) - return 0 - - count = 0 - with transaction.atomic(): - created_channels = [] - base.channels = rule.channel_count - if parent_name != base.name: - base.name = parent_name - count += 1 - base.full_clean() - base.save() - for channel_id, name in channels: - channel = Interface( - device=device, - module=module, - name=name, - type=InterfaceTypeChoices.TYPE_CHANNEL, - parent=base, - channel_id=channel_id, - enabled=base.enabled, - ) - channel.full_clean() - channel.save() - created_channels.append((channel, name)) - count += 1 - _preserve_names_across_parent_cascade(base, base_name, created_channels) - return count - - def _apply_channelized_rule(rule, base, variables, module, conflicts): """Build the channelized family *rule* describes on a plain base interface. - Returns None where NetBox cannot model channels: the rule describes a topology this release has - no rows for, and building a flat family instead would silently give the operator another one. + Returns the rows the family creation changed, 0 when a structural precondition blocked it, or + None where NetBox cannot model channels: the rule describes a topology this release has no rows + for, and building a flat family instead would silently give the operator another one. """ - if not supports_channelization(): - logger.warning( - "Rule '%s' builds a channelized family, which this NetBox release cannot model; " - "leaving interface %r unchanged.", - rule, - base.name, - ) + outcome = family_ops.install_channelized_family(module, rule, variables, base) + if outcome.status == family_ops.FamilyStatus.UNSUPPORTED: return None - return _build_channelized_family(rule, base, variables, module, conflicts) # pragma: no cover - see above + if outcome.status != family_ops.FamilyStatus.CHANGED: + _record_skip(conflicts, module.device, base.name, outcome.members[0].target_name, base.pk) + return 0 + return outcome.changed_count def _apply_rule_with_family(rule, iface, children, variables, module, conflicts): @@ -1454,7 +1288,7 @@ def _channelized_family_entry(rule, module, parent, children, variables) -> dict def _channelized_family_preview(rule, module, base, variables) -> dict | None: # pragma: no cover - see below """Describe the channelized family a rule would build on a plain base interface.""" try: - parent_name, channels = _channelized_family_names(rule, base.name, variables) + parent_name, channels = family_ops.channelized_family_names(rule, base.name, variables) except ValueError as exc: return _family_entry(module, base, [_name_detail(f"", "parent")], ()) details = [_name_detail(parent_name, "parent")] @@ -1470,7 +1304,7 @@ def _channelized_creation_entry(rule, module, bases, variables) -> dict | None: """ if not supports_channelization(): return None - if _has_flat_expansion(module): # pragma: no cover - requires channelization support + if family_ops.has_flat_expansion(module): # pragma: no cover - requires channelization support return None return _channelized_family_preview( # pragma: no cover - requires channelization support rule, module, _find_channel_base(rule, bases, variables), variables diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py index 731cd59..57bf2ed 100644 --- a/netbox_interface_name_rules/family/__init__.py +++ b/netbox_interface_name_rules/family/__init__.py @@ -2,6 +2,7 @@ # Copyright (C) 2025 Marcin Zieba """Plan and execute interface-family operations.""" +from .capabilities import supports_channelization from .domain import ( FamilyOutcome, FamilyStatus, @@ -12,10 +13,19 @@ InterfaceSnapshot, MemberOutcome, MemberRole, + PlannedChannel, PlannedMember, + StructuralFamilyPlan, ) from .execution import execute_installed_plan_set from .installed import module_db_alias, plan_installed_families +from .structural import ( + channelized_family_names, + execute_structural_family, + has_flat_expansion, + install_channelized_family, + plan_structural_family, +) __all__ = ( "FamilyOutcome", @@ -27,8 +37,16 @@ "InterfaceSnapshot", "MemberOutcome", "MemberRole", + "PlannedChannel", "PlannedMember", + "StructuralFamilyPlan", + "channelized_family_names", "execute_installed_plan_set", + "execute_structural_family", + "has_flat_expansion", + "install_channelized_family", "module_db_alias", "plan_installed_families", + "plan_structural_family", + "supports_channelization", ) diff --git a/netbox_interface_name_rules/family/capabilities.py b/netbox_interface_name_rules/family/capabilities.py new file mode 100644 index 0000000..c4738b6 --- /dev/null +++ b/netbox_interface_name_rules/family/capabilities.py @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Probe what the active NetBox data model can represent.""" + +from dcim.models import Interface +from django.core.exceptions import FieldDoesNotExist + + +def supports_channelization() -> bool: + """Return whether this NetBox models channelized subinterfaces (4.7+). + + Probed from the Interface model rather than a version comparison, so a backport or a + development build is detected by what it actually provides. + """ + try: + Interface._meta.get_field("channel_id") + except FieldDoesNotExist: + return False + return True # pragma: no cover - only reachable on a NetBox that models channelization diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py index cdba35b..a3ccb8e 100644 --- a/netbox_interface_name_rules/family/domain.py +++ b/netbox_interface_name_rules/family/domain.py @@ -101,6 +101,40 @@ def member_pks(self) -> frozenset[int]: return frozenset(pk for plan in self.plans for pk in plan.member_pks) +@dataclass(frozen=True, slots=True) +class PlannedChannel: + """One channel row a structural plan creates under its parent.""" + + channel_id: int + name: str + + +@dataclass(frozen=True, slots=True) +class StructuralFamilyPlan: + """An executable plan that turns one plain interface into a channelized family.""" + + family_id: str + device_id: int + module_id: int + db_alias: str + base: InterfaceSnapshot + parent_target_name: str + channel_count: int + channels: tuple[PlannedChannel, ...] + precondition_status: FamilyStatus | None = None + precondition_reason: str = "" + + @property + def topology(self) -> FamilyTopology: + """Return the topology this plan installs.""" + return FamilyTopology.CHANNELIZED + + @property + def target_names(self) -> tuple[str, ...]: + """Return the parent name and every channel name in creation order.""" + return (self.parent_target_name, *(channel.name for channel in self.channels)) + + @dataclass(frozen=True, slots=True) class MemberOutcome: """Result facts for one planned family member.""" diff --git a/netbox_interface_name_rules/family/execution.py b/netbox_interface_name_rules/family/execution.py index c58bf51..2a8030c 100644 --- a/netbox_interface_name_rules/family/execution.py +++ b/netbox_interface_name_rules/family/execution.py @@ -19,12 +19,11 @@ MemberOutcome, MemberRole, ) +from .names import COLLISION_REASON, is_name_collision, name_is_taken, reconcile_after_parent_cascade logger = logging.getLogger(__name__) STALE_REASON = "installed family changed after planning" -COLLISION_REASON = "target name is already in use" -INTERFACE_NAME_CONSTRAINT = "dcim_interface_unique_device_name" PARENT_BLOCKED_REASON = "family parent was blocked" @@ -56,23 +55,6 @@ def _member_outcome(member, status, reason=""): ) -def _name_is_taken(interface, target_name, db_alias): - """Return whether another interface on the device owns *target_name*.""" - return ( - Interface.objects.using(db_alias) - .filter(device_id=interface.device_id, name=target_name) - .exclude(pk=interface.pk) - .exists() - ) - - -def _is_name_collision(error: IntegrityError) -> bool: - """Return whether PostgreSQL identified NetBox's interface-name constraint.""" - cause = error.__cause__ - diagnostics = getattr(cause, "diag", None) - return getattr(diagnostics, "constraint_name", None) == INTERFACE_NAME_CONSTRAINT - - def _blocked_member(member, reason): """Return a blocked member outcome.""" return _member_outcome(member, FamilyStatus.BLOCKED, reason) @@ -89,7 +71,7 @@ def _rename_member(member, interface, db_alias): return _blocked_member(member, member.reason) if target_name == interface.name: return _member_outcome(member, FamilyStatus.UNCHANGED) - if _name_is_taken(interface, target_name, db_alias): + if name_is_taken(interface.device_id, target_name, db_alias, exclude_pk=interface.pk): logger.warning( "Interface name %r already exists on device %s; skipping rename of %r to %r.", target_name, @@ -111,7 +93,7 @@ def _rename_member(member, interface, db_alias): return _blocked_member(member, " ".join(error.messages)) except IntegrityError as error: interface.name = previous_name - if _is_name_collision(error): + if is_name_collision(error): logger.warning( "Interface name %r became occupied while renaming %r; skipping.", target_name, @@ -132,48 +114,6 @@ def _family_status(members): return FamilyStatus.UNCHANGED -def _restore_deferred_channel_names(reconciliations, db_alias): # pragma: no cover - channelization only - """Restore plugin-owned names that NetBox's parent cascade changed after commit.""" - child_pks = [child_pk for child_pk, _final_name, _cascade_name in reconciliations] - with transaction.atomic(using=db_alias): - children = Interface.objects.using(db_alias).select_for_update().in_bulk(child_pks) - for child_pk, final_name, cascade_name in reconciliations: - child = children.get(child_pk) - if child is None or child.name == final_name: - continue - if child.name != cascade_name: - logger.warning( - "Channel interface %s changed to unexpected name %r before deferred reconciliation; " - "leaving it unchanged.", - child_pk, - child.name, - ) - continue - previous_name = child.name - try: - with transaction.atomic(using=db_alias): - child.name = final_name - child.full_clean() - child.save(using=db_alias) - except ValidationError: - child.name = previous_name - logger.exception( - "Failed to restore channel interface %s from NetBox's deferred name %r to %r; skipping.", - child_pk, - cascade_name, - final_name, - ) - except IntegrityError as error: - child.name = previous_name - if not _is_name_collision(error): - raise - logger.warning( - "Channel interface %s could not reclaim name %r after NetBox's deferred rename; skipping.", - child_pk, - final_name, - ) - - def _preserve_names_across_parent_cascade(plan, member_outcomes): # pragma: no cover - channelization only """Schedule restoration of blocked conventional channel names after a parent cascade.""" if plan.parent_pk is None: @@ -182,27 +122,19 @@ def _preserve_names_across_parent_cascade(plan, member_outcomes): # pragma: no parent_outcome = next(outcome for outcome in member_outcomes if outcome.interface_pk == plan.parent_pk) if parent_outcome.status != FamilyStatus.CHANGED: return - final_parent_name = parent_member.target_name outcomes_by_pk = {outcome.interface_pk: outcome for outcome in member_outcomes} - reconciliations = [] - for member in plan.members: - if member.role != MemberRole.CHANNEL: - continue - channel_id = member.snapshot.channel_id - final_name = ( + channels = tuple( + ( + member.snapshot.pk, + member.snapshot.channel_id, member.target_name if outcomes_by_pk[member.snapshot.pk].status in (FamilyStatus.CHANGED, FamilyStatus.UNCHANGED) - else member.snapshot.name - ) - old_conventional_name = f"{parent_member.snapshot.name}:{channel_id}" - cascade_name = f"{final_parent_name}:{channel_id}" - if final_name == old_conventional_name and final_name != cascade_name: - reconciliations.append((member.snapshot.pk, final_name, cascade_name)) - if reconciliations: - transaction.on_commit( - lambda: _restore_deferred_channel_names(tuple(reconciliations), plan.db_alias), - using=plan.db_alias, + else member.snapshot.name, ) + for member in plan.members + if member.role == MemberRole.CHANNEL + ) + reconcile_after_parent_cascade(parent_member.snapshot.name, parent_member.target_name, channels, plan.db_alias) def _execute_channelized_members(plan, live_by_pk): # pragma: no cover - requires channelization support diff --git a/netbox_interface_name_rules/family/names.py b/netbox_interface_name_rules/family/names.py new file mode 100644 index 0000000..a83e1af --- /dev/null +++ b/netbox_interface_name_rules/family/names.py @@ -0,0 +1,91 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Shared live interface-name primitives for family execution.""" + +import logging + +from dcim.models import Interface +from django.core.exceptions import ValidationError +from django.db import IntegrityError, transaction + +logger = logging.getLogger(__name__) + +COLLISION_REASON = "target name is already in use" +INTERFACE_NAME_CONSTRAINT = "dcim_interface_unique_device_name" + + +def name_is_taken(device_id, target_name, db_alias, exclude_pk) -> bool: + """Return whether an interface other than *exclude_pk* already owns *target_name* on the device.""" + return ( + Interface.objects.using(db_alias).filter(device_id=device_id, name=target_name).exclude(pk=exclude_pk).exists() + ) + + +def is_name_collision(error: IntegrityError) -> bool: + """Return whether PostgreSQL identified NetBox's interface-name constraint.""" + cause = error.__cause__ + diagnostics = getattr(cause, "diag", None) + return getattr(diagnostics, "constraint_name", None) == INTERFACE_NAME_CONSTRAINT + + +def restore_deferred_channel_names(reconciliations, db_alias): + """Restore plugin-owned names that NetBox's parent cascade changed after commit.""" + child_pks = [child_pk for child_pk, _final_name, _cascade_name in reconciliations] + with transaction.atomic(using=db_alias): + children = Interface.objects.using(db_alias).select_for_update().select_related("device").in_bulk(child_pks) + for child_pk, final_name, cascade_name in reconciliations: + child = children.get(child_pk) + if child is None or child.name == final_name: + continue + if child.name != cascade_name: + logger.warning( + "Channel interface %s changed to unexpected name %r before deferred reconciliation; " + "leaving it unchanged.", + child_pk, + child.name, + ) + continue + previous_name = child.name + try: + with transaction.atomic(using=db_alias): + child.name = final_name + child.full_clean() + child.save(using=db_alias) + except ValidationError: + child.name = previous_name + logger.exception( + "Failed to restore channel interface %s from NetBox's deferred name %r to %r; skipping.", + child_pk, + cascade_name, + final_name, + ) + except IntegrityError as error: + child.name = previous_name + if not is_name_collision(error): + raise + logger.warning( + "Channel interface %s could not reclaim name %r after NetBox's deferred rename; skipping.", + child_pk, + final_name, + ) + + +def reconcile_after_parent_cascade(parent_before, parent_after, channels, db_alias): + """Schedule restoration of the channel names NetBox's deferred parent cascade will overwrite. + + *channels* carries ``(child_pk, channel_id, final_name)`` for every channel the caller settled. + Registration happens on the caller's open transaction so the callback runs after NetBox's own. + """ + if parent_after == parent_before: + return + reconciliations = tuple( + (child_pk, final_name, f"{parent_after}:{channel_id}") + for child_pk, channel_id, final_name in channels + if final_name == f"{parent_before}:{channel_id}" and final_name != f"{parent_after}:{channel_id}" + ) + if not reconciliations: + return + transaction.on_commit( + lambda: restore_deferred_channel_names(reconciliations, db_alias), + using=db_alias, + ) diff --git a/netbox_interface_name_rules/family/structural.py b/netbox_interface_name_rules/family/structural.py new file mode 100644 index 0000000..f05e26c --- /dev/null +++ b/netbox_interface_name_rules/family/structural.py @@ -0,0 +1,229 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Plan and execute the creation of channelized interface families.""" + +import logging + +from dcim.choices import InterfaceTypeChoices +from dcim.models import Interface, InterfaceTemplate +from django.core.exceptions import ValidationError +from django.db import IntegrityError, transaction + +from ..naming import evaluate_name_template +from .capabilities import supports_channelization +from .domain import ( + FamilyOutcome, + FamilyStatus, + FamilyTopology, + InterfaceSnapshot, + MemberOutcome, + PlannedChannel, + StructuralFamilyPlan, +) +from .installed import module_db_alias +from .names import COLLISION_REASON, is_name_collision, name_is_taken, reconcile_after_parent_cascade + +logger = logging.getLogger(__name__) + +UNSUPPORTED_REASON = "this NetBox release cannot model channelized interfaces" +STALE_REASON = "the base interface changed after planning" + + +def channelized_family_names(rule, base_name, variables): # pragma: no cover - channelization only + """Return ``(parent_name, ((channel_id, name), ...))`` for the family *rule* builds on *base_name*. + + ``{base}`` is the base interface's current name for the parent and every channel; ``{channel}`` + is ``channel_start + channel_id - 1``. A blank parent template leaves the base's name alone. + Takes the name rather than the interface so prediction can reuse it without a row to point at. + """ + family_variables = {**variables, "base": base_name} + parent_name = base_name + if rule.parent_name_template: + parent_name = evaluate_name_template(rule.parent_name_template, family_variables) + channels = tuple( + ( + channel_id, + evaluate_name_template( + rule.name_template, {**family_variables, "channel": str(rule.channel_start + channel_id - 1)} + ), + ) + for channel_id in range(1, rule.channel_count + 1) + ) + return parent_name, channels + + +def has_flat_expansion(module) -> bool: # pragma: no cover - requires channelization support + """Return whether *module* carries more interfaces than its module type's templates describe. + + A flat breakout leaves N-1 rows beyond the templates, so the surplus is the structural mark of a + family an earlier apply installed. Counting templates rather than their resolved names keeps + two templates that resolve to the same string from reading as one. + """ + db_alias = module_db_alias(module) + templates = InterfaceTemplate.objects.using(db_alias).filter(module_type_id=module.module_type_id).count() + return Interface.objects.using(db_alias).filter(module_id=module.pk).count() > templates + + +def _plan(module, db_alias, base, parent_target_name, channels, status=None, reason=""): + """Build one immutable structural plan for *base*.""" + return StructuralFamilyPlan( + family_id=f"structural:{base.pk}", + device_id=module.device_id, + module_id=module.pk, + db_alias=db_alias, + base=InterfaceSnapshot.from_interface(base), + parent_target_name=parent_target_name, + channel_count=len(channels), + channels=tuple(PlannedChannel(channel_id=channel_id, name=name) for channel_id, name in channels), + precondition_status=status, + precondition_reason=reason, + ) + + +def _modelled_plan(module, rule, variables, db_alias, base): # pragma: no cover - channelization only + """Return the plan for a NetBox release that can hold the family.""" + try: + parent_target_name, channels = channelized_family_names(rule, base.name, variables) + except (TypeError, ValueError) as error: + reason = f"failed to evaluate the family names: {error}" + return _plan(module, db_alias, base, base.name, (), FamilyStatus.FAILED, reason) + if has_flat_expansion(module): + # Converting one sibling into a parent would strand the others beside the new family. + reason = f"module {module} already carries a flat breakout family" + return _plan(module, db_alias, base, parent_target_name, channels, FamilyStatus.BLOCKED, reason) + return _plan(module, db_alias, base, parent_target_name, channels) + + +def plan_structural_family(module, rule, variables, base) -> StructuralFamilyPlan: + """Return the immutable plan for the channelized family *rule* builds on plain interface *base*.""" + db_alias = module_db_alias(module) + if not supports_channelization(): + return _plan(module, db_alias, base, base.name, (), FamilyStatus.UNSUPPORTED, UNSUPPORTED_REASON) + return _modelled_plan(module, rule, variables, db_alias, base) # pragma: no cover - see above + + +def _outcome(plan, status, members, reason=""): + """Build the immutable outcome of one structural family operation.""" + return FamilyOutcome( + family_id=plan.family_id, + topology=FamilyTopology.CHANNELIZED, + status=status, + members=members, + reason=reason, + ) + + +def _refused(plan, status, reason, target_name): + """Log why the family was not built and return an outcome that touched no row.""" + logger.warning("Cannot build a channelized family on interface %r: %s.", plan.base.name, reason) + member = MemberOutcome( + interface_pk=plan.base.pk, + current_name=plan.base.name, + target_name=target_name, + status=status, + reason=reason, + ) + return _outcome(plan, status, (member,), reason) + + +def _locked_base(plan): # pragma: no cover - requires channelization support + """Lock and return the live base row, or None when it is gone.""" + return ( + Interface.objects.using(plan.db_alias) + .select_for_update(of=("self",)) + .select_related("device", "module") + .filter(pk=plan.base.pk) + .first() + ) + + +def _first_taken_name(plan): # pragma: no cover - requires channelization support + """Return the first planned name another interface on the device already owns, or None.""" + for target_name in plan.target_names: + if name_is_taken(plan.device_id, target_name, plan.db_alias, exclude_pk=plan.base.pk): + return target_name + return None + + +def _create_channels(plan, parent): # pragma: no cover - requires channelization support + """Create every planned channel under *parent* and return their outcomes.""" + members = [] + for channel in plan.channels: + row = Interface( + device=parent.device, + module=parent.module, + name=channel.name, + type=InterfaceTypeChoices.TYPE_CHANNEL, + parent=parent, + channel_id=channel.channel_id, + enabled=parent.enabled, + ) + row.full_clean() + row.save(using=plan.db_alias) + members.append( + MemberOutcome( + interface_pk=row.pk, + current_name=channel.name, + target_name=channel.name, + status=FamilyStatus.CHANGED, + ) + ) + return members + + +def _create_family(plan, base): # pragma: no cover - requires channelization support + """Rewrite *base* into the family parent, create its channels, and return every member outcome.""" + parent_status = FamilyStatus.CHANGED if plan.parent_target_name != base.name else FamilyStatus.UNCHANGED + base.channels = plan.channel_count + base.name = plan.parent_target_name + base.full_clean() + base.save(using=plan.db_alias) + parent_member = MemberOutcome( + interface_pk=base.pk, + current_name=plan.base.name, + target_name=plan.parent_target_name, + status=parent_status, + ) + channel_members = _create_channels(plan, base) + reconcile_after_parent_cascade( + plan.base.name, + plan.parent_target_name, + tuple( + (member.interface_pk, channel.channel_id, channel.name) + for member, channel in zip(channel_members, plan.channels, strict=True) + ), + plan.db_alias, + ) + return (parent_member, *channel_members) + + +def _install_family(plan): # pragma: no cover - requires channelization support + """Create the whole family in one transaction, or write nothing at all.""" + try: + with transaction.atomic(using=plan.db_alias): + base = _locked_base(plan) + if base is None or InterfaceSnapshot.from_interface(base) != plan.base: + return _refused(plan, FamilyStatus.STALE, STALE_REASON, plan.parent_target_name) + taken = _first_taken_name(plan) + if taken is not None: + return _refused(plan, FamilyStatus.BLOCKED, f"{COLLISION_REASON}: {taken}", taken) + members = _create_family(plan, base) + except ValidationError as error: + return _refused(plan, FamilyStatus.BLOCKED, " ".join(error.messages), plan.parent_target_name) + except IntegrityError as error: + if not is_name_collision(error): + raise + return _refused(plan, FamilyStatus.BLOCKED, COLLISION_REASON, plan.parent_target_name) + return _outcome(plan, FamilyStatus.CHANGED, members) + + +def execute_structural_family(plan: StructuralFamilyPlan) -> FamilyOutcome: + """Create the planned channelized family, or leave every row exactly as it was.""" + if plan.precondition_status is not None: + return _refused(plan, plan.precondition_status, plan.precondition_reason, plan.parent_target_name) + return _install_family(plan) # pragma: no cover - requires channelization support + + +def install_channelized_family(module, rule, variables, base) -> FamilyOutcome: + """Build the channelized family *rule* describes on plain interface *base*.""" + return execute_structural_family(plan_structural_family(module, rule, variables, base)) diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index 4949783..4e0d262 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -38,7 +38,6 @@ execute_installed_plan_set, plan_installed_families, ) -from netbox_interface_name_rules.family import execution as family_execution from netbox_interface_name_rules.models import InterfaceNameRule from netbox_interface_name_rules.naming import evaluate_name_template @@ -267,25 +266,6 @@ def test_automatic_reapplication_propagates_planner_failures(self): ): apply_interface_name_rules(module, self.bay, force_reapply=True) - def test_deferred_reconciliation_propagates_unrelated_integrity_failures(self): - interface = Interface.objects.create( - device=self.device, - name="cascade-name", - type=PLAIN_TYPE, - ) - - def reject_interface_update(execute, sql, params, many, context): - if sql.lstrip().startswith('UPDATE "dcim_interface"'): - raise IntegrityError("injected deferred database failure") - return execute(sql, params, many, context) - - with connection.execute_wrapper(reject_interface_update): - with self.assertRaisesMessage(IntegrityError, "injected deferred database failure"): - family_execution._restore_deferred_channel_names( - ((interface.pk, "final-name", "cascade-name"),), - interface._state.db, - ) - def test_changed_member_makes_the_plan_stale_without_partial_execution(self): module = Module.objects.create( device=self.device, diff --git a/netbox_interface_name_rules/tests/test_structural_families.py b/netbox_interface_name_rules/tests/test_structural_families.py new file mode 100644 index 0000000..47f9e31 --- /dev/null +++ b/netbox_interface_name_rules/tests/test_structural_families.py @@ -0,0 +1,388 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Integration tests for structural (channelized) interface-family plans. + +A structural plan turns one plain port into the topology NetBox models: the base row becomes the +physical parent and N channel subinterfaces are created under it. The whole family is one unit — +it is installed completely or not at all — and the family module, not the engine, decides whether +the active NetBox release can hold it. +""" + +from unittest import skipIf, skipUnless + +from dcim.models import Device, DeviceRole, DeviceType, Interface, Manufacturer, Site +from django.db import IntegrityError, connection +from django.test import TestCase + +from netbox_interface_name_rules.engine import ( + apply_interface_name_rules, + build_variables, + supports_channelization, +) +from netbox_interface_name_rules.family import ( + FamilyStatus, + FamilyTopology, + execute_structural_family, + install_channelized_family, + plan_structural_family, +) +from netbox_interface_name_rules.family import names as family_names +from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.tests.test_breakout_mode import CHANNELIZED, _plain_module_type +from netbox_interface_name_rules.tests.test_channelization import ( + PLAIN_TYPE, + PLUGIN_LOGGER, + REQUIRES_CHANNELIZATION, + ChannelizationTestCase, + _build_device, +) + +REQUIRES_NO_CHANNELIZATION = "requires a NetBox that cannot model channelized interfaces (4.6 and older)" + + +class StructuralFamilyTestCase(ChannelizationTestCase): + """One device, one plain module type, and the channelized rule under test.""" + + NAME_TEMPLATE = "xe-0/0/{bay_position}:{channel}" + PREFIX = "Struct" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device(cls.PREFIX, ["3", "4"]) + cls.module_type = _plain_module_type(manufacturer, f"{cls.PREFIX}-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template=cls.NAME_TEMPLATE, + parent_name_template="et-0/0/{bay_position}", + breakout_mode=CHANNELIZED, + channel_count=4, + channel_start=0, + ) + + def _plan(self, position="3"): + """Install a raw-named module and return its module, bay and structural plan.""" + module, bay = self._install(self.module_type, position, run_rules=False) + base = Interface.objects.get(module=module) + plan = plan_structural_family(module, self.rule, build_variables(bay, device=self.device), base) + return module, bay, plan + + +@skipIf(supports_channelization(), REQUIRES_NO_CHANNELIZATION) +class StructuralFamilyWithoutChannelizationTest(StructuralFamilyTestCase): + """Where NetBox has no channel model the family module says so, in the outcome itself.""" + + PREFIX = "StructNoSup" + + def test_the_plan_reports_unsupported_and_describes_no_channels(self): + _module, _bay, plan = self._plan() + + self.assertEqual(plan.precondition_status, FamilyStatus.UNSUPPORTED) + self.assertEqual(plan.topology, FamilyTopology.CHANNELIZED) + self.assertEqual(plan.channels, ()) + self.assertEqual(plan.channel_count, 0) + self.assertEqual(plan.target_names, ("3",)) + self.assertEqual(plan.base.name, "3") + + def test_executing_an_unsupported_plan_creates_nothing(self): + module, _bay, plan = self._plan() + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + outcome = execute_structural_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.UNSUPPORTED) + self.assertEqual(outcome.changed_count, 0) + self.assertEqual(self._names(module), ["3"]) + self.assertEqual(len(logs.records), 1, logs.output) + self.assertIn("channelized", logs.output[0].lower()) + + def test_the_outcome_names_the_base_interface_it_left_alone(self): + module, _bay, plan = self._plan() + base = Interface.objects.get(module=module) + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING"): + outcome = execute_structural_family(plan) + + self.assertEqual(len(outcome.members), 1) + member = outcome.members[0] + self.assertEqual(member.interface_pk, base.pk) + self.assertEqual(member.current_name, "3") + self.assertEqual(member.status, FamilyStatus.UNSUPPORTED) + self.assertTrue(member.reason) + + def test_the_install_entry_point_reaches_the_same_outcome(self): + module, bay = self._install(self.module_type, "4", run_rules=False) + base = Interface.objects.get(module=module) + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING"): + outcome = install_channelized_family(module, self.rule, build_variables(bay, device=self.device), base) + + self.assertEqual(outcome.status, FamilyStatus.UNSUPPORTED) + self.assertEqual(self._names(module), ["4"]) + + +class DeferredChannelNameReconciliationTest(TestCase): + """The family module restores the channel names NetBox's deferred parent cascade overwrites. + + The reconciliation is plain name arithmetic over committed rows, so it is exercised here on + ordinary interfaces: no release-specific channel model is involved in the decision it makes. + """ + + @classmethod + def setUpTestData(cls): + manufacturer = Manufacturer.objects.create(name="ReconMfg", slug="recon-mfg") + device_type = DeviceType.objects.create(manufacturer=manufacturer, model="RECON-DEVICE", slug="recon-device") + role = DeviceRole.objects.create(name="ReconRole", slug="recon-role") + site = Site.objects.create(name="ReconSite", slug="recon-site") + cls.device = Device.objects.create(name="recon-device-01", device_type=device_type, role=role, site=site) + + def _interface(self, name): + """Create one plain interface on the shared device.""" + return Interface.objects.create(device=self.device, name=name, type=PLAIN_TYPE) + + def _cascade(self, child, name): + """Rename *child* the way NetBox's parent cascade does, without running the plugin.""" + Interface.objects.filter(pk=child.pk).update(name=name) + + def test_the_intended_name_is_restored_after_the_cascade(self): + child = self._interface("et-0/0/3:1") + + with self.captureOnCommitCallbacks(execute=True) as callbacks: + family_names.reconcile_after_parent_cascade( + "et-0/0/3", "xe-0/0/3", ((child.pk, 1, "et-0/0/3:1"),), child._state.db + ) + self._cascade(child, "xe-0/0/3:1") + + self.assertTrue(callbacks, "no deferred reconciliation was registered") + child.refresh_from_db() + self.assertEqual(child.name, "et-0/0/3:1") + + def test_a_parent_that_kept_its_name_registers_no_callback(self): + child = self._interface("et-0/0/3:1") + + with self.captureOnCommitCallbacks(execute=True) as callbacks: + family_names.reconcile_after_parent_cascade( + "et-0/0/3", "et-0/0/3", ((child.pk, 1, "et-0/0/3:1"),), child._state.db + ) + + self.assertEqual(callbacks, []) + + def test_a_channel_the_cascade_will_not_touch_registers_no_callback(self): + child = self._interface("ge-0/0/3-1") + + with self.captureOnCommitCallbacks(execute=True) as callbacks: + family_names.reconcile_after_parent_cascade( + "et-0/0/3", "xe-0/0/3", ((child.pk, 1, "ge-0/0/3-1"),), child._state.db + ) + + self.assertEqual(callbacks, []) + + def test_a_channel_the_cascade_left_alone_keeps_its_intended_name(self): + child = self._interface("et-0/0/3:1") + + with self.captureOnCommitCallbacks(execute=True): + family_names.reconcile_after_parent_cascade( + "et-0/0/3", "xe-0/0/3", ((child.pk, 1, "et-0/0/3:1"),), child._state.db + ) + + child.refresh_from_db() + self.assertEqual(child.name, "et-0/0/3:1") + + def test_a_channel_moved_to_an_unexpected_name_is_left_alone(self): + child = self._interface("et-0/0/3:1") + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + with self.captureOnCommitCallbacks(execute=True): + family_names.reconcile_after_parent_cascade( + "et-0/0/3", "xe-0/0/3", ((child.pk, 1, "et-0/0/3:1"),), child._state.db + ) + self._cascade(child, "someone-else-renamed-it") + + child.refresh_from_db() + self.assertEqual(child.name, "someone-else-renamed-it") + self.assertTrue(any("unexpected name" in line for line in logs.output), logs.output) + + def test_a_name_taken_since_the_cascade_is_not_reclaimed(self): + child = self._interface("et-0/0/3:1") + + with self.assertLogs(PLUGIN_LOGGER, level="ERROR"), self.captureOnCommitCallbacks(execute=True): + family_names.reconcile_after_parent_cascade( + "et-0/0/3", "xe-0/0/3", ((child.pk, 1, "et-0/0/3:1"),), child._state.db + ) + self._cascade(child, "xe-0/0/3:1") + occupant = self._interface("et-0/0/3:1") + + child.refresh_from_db() + occupant.refresh_from_db() + self.assertEqual(child.name, "xe-0/0/3:1") + self.assertEqual(occupant.name, "et-0/0/3:1") + + def test_an_unrelated_integrity_failure_propagates(self): + interface = self._interface("cascade-name") + + def reject_interface_update(execute, sql, params, many, context): + if sql.lstrip().startswith('UPDATE "dcim_interface"'): + raise IntegrityError("injected deferred database failure") + return execute(sql, params, many, context) + + with connection.execute_wrapper(reject_interface_update): + with self.assertRaisesMessage(IntegrityError, "injected deferred database failure"): + family_names.restore_deferred_channel_names( + ((interface.pk, "final-name", "cascade-name"),), + interface._state.db, + ) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class StructuralFamilyPlanTest(StructuralFamilyTestCase): + """The plan describes the whole family before a single row is written.""" + + PREFIX = "StructPlan" + + def test_the_plan_describes_the_parent_capacity_channels_and_snapshot(self): + module, _bay, plan = self._plan() + base = Interface.objects.get(module=module) + + self.assertIsNone(plan.precondition_status) + self.assertEqual(plan.topology, FamilyTopology.CHANNELIZED) + self.assertEqual(plan.module_id, module.pk) + self.assertEqual(plan.device_id, self.device.pk) + self.assertEqual(plan.parent_target_name, "et-0/0/3") + self.assertEqual(plan.channel_count, 4) + self.assertEqual([channel.channel_id for channel in plan.channels], [1, 2, 3, 4]) + self.assertEqual( + plan.target_names, + ("et-0/0/3", "xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:2", "xe-0/0/3:3"), + ) + self.assertEqual(plan.base.pk, base.pk) + self.assertEqual(plan.base.name, "3") + self.assertIsNone(plan.base.channels) + + def test_planning_writes_nothing(self): + module, _bay, _plan = self._plan() + + self.assertEqual(self._names(module), ["3"]) + + def test_execution_creates_the_complete_family(self): + module, _bay, plan = self._plan() + + outcome = execute_structural_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.CHANGED) + self.assertEqual(outcome.changed_count, 5) + self.assertEqual(sorted(self._names(module)), sorted(plan.target_names)) + parent = self._parent(module) + self.assertEqual(parent.pk, plan.base.pk) + self.assertEqual(parent.channels, 4) + self.assertEqual( + sorted( + Interface.objects.filter(parent=parent).values_list("channel_id", "name"), + ), + [(1, "xe-0/0/3:0"), (2, "xe-0/0/3:1"), (3, "xe-0/0/3:2"), (4, "xe-0/0/3:3")], + ) + + def test_a_base_that_changed_after_planning_is_stale_and_untouched(self): + module, _bay, plan = self._plan() + Interface.objects.filter(pk=plan.base.pk).update(name="renamed-by-someone-else") + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + outcome = execute_structural_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.STALE) + self.assertEqual(self._names(module), ["renamed-by-someone-else"]) + self.assertTrue(any("changed after planning" in line for line in logs.output), logs.output) + + def test_a_base_deleted_after_planning_is_stale(self): + module, _bay, plan = self._plan() + Interface.objects.filter(pk=plan.base.pk).delete() + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING"): + outcome = execute_structural_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.STALE) + self.assertEqual(self._names(module), []) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class StructuralFamilyRollbackTest(StructuralFamilyTestCase): + """A family that cannot be completed leaves the port exactly as NetBox instantiated it.""" + + PREFIX = "StructRoll" + # Every channel resolves to one name, so the second insert hits NetBox's own uniqueness index. + NAME_TEMPLATE = "xe-0/0/{bay_position}" + + def _assert_untouched(self, module): + """Assert the port is still one plain, raw-named row with no channel anywhere on it.""" + self.assertEqual(Interface.objects.filter(module=module).count(), 1) + base = Interface.objects.get(module=module) + self.assertEqual(base.name, "3") + self.assertIsNone(base.channels) + + def test_a_second_channel_with_the_same_name_rolls_the_family_back(self): + module, _bay, plan = self._plan() + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + outcome = execute_structural_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.BLOCKED) + self.assertEqual(outcome.changed_count, 0) + self.assertTrue(outcome.reason) + self._assert_untouched(module) + self.assertTrue(any("already exists" in line for line in logs.output), logs.output) + + def test_the_install_entry_point_reports_the_rollback(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING"): + built = apply_interface_name_rules(module, bay) + + self.assertEqual(built, 0) + self._assert_untouched(module) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class StructuralFamilyValidationTest(StructuralFamilyTestCase): + """NetBox's own validation runs against the real rows, inside the structural transaction.""" + + PREFIX = "StructVal" + # 64 characters is NetBox's interface-name limit, so every channel name here is rejected. + NAME_TEMPLATE = "xe-0/0/{bay_position}:{channel}" + "x" * 64 + + def test_a_channel_netbox_rejects_rolls_the_whole_family_back(self): + module, _bay, plan = self._plan() + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + outcome = execute_structural_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.BLOCKED) + self.assertEqual(outcome.changed_count, 0) + self.assertEqual(Interface.objects.filter(module=module).count(), 1) + base = Interface.objects.get(module=module) + self.assertEqual(base.name, "3") + self.assertIsNone(base.channels) + self.assertTrue(any("64 characters" in line for line in logs.output), logs.output) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class StructuralFamilyTemplateFailureTest(StructuralFamilyTestCase): + """A rule whose channel template cannot be evaluated builds nothing and says why.""" + + PREFIX = "StructTpl" + NAME_TEMPLATE = "xe-0/0/{bay_position}:{missing_variable}" + + def test_the_plan_carries_the_template_failure_instead_of_raising(self): + _module, _bay, plan = self._plan() + + self.assertEqual(plan.precondition_status, FamilyStatus.FAILED) + self.assertEqual(plan.channels, ()) + self.assertIn("missing_variable", plan.precondition_reason) + + def test_the_install_creates_nothing_and_does_not_read_the_rule_as_obsolete(self): + module, bay = self._install(self.module_type, "4", run_rules=False) + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + built = apply_interface_name_rules(module, bay) + + self.assertEqual(built, 0) + self.assertEqual(self._names(module), ["4"]) + self.assertFalse(self.rule.tags.filter(slug="potentially-deprecated").exists()) + self.assertTrue(any("missing_variable" in line for line in logs.output), logs.output) From 624c6797eb47f157f5146a614369da0ed42bd70c Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 15:13:08 +0200 Subject: [PATCH 20/74] fix: revalidate the module topology before building a family The structural executor revalidated only the base row, so an interface added to the module between planning and execution was not seen. The family was then built beside it, which is the stranded-sibling case the flat-expansion check exists to prevent. Execution now recounts the module's interfaces against its module type's templates inside the transaction, and rejects the plan as stale when the module gained rows after planning. The plan carries module_type_id so the check needs no second module fetch. Refs #78. --- netbox_interface_name_rules/family/domain.py | 1 + netbox_interface_name_rules/family/structural.py | 15 ++++++++++++--- .../tests/test_structural_families.py | 12 ++++++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py index a3ccb8e..d0e9bd5 100644 --- a/netbox_interface_name_rules/family/domain.py +++ b/netbox_interface_name_rules/family/domain.py @@ -116,6 +116,7 @@ class StructuralFamilyPlan: family_id: str device_id: int module_id: int + module_type_id: int db_alias: str base: InterfaceSnapshot parent_target_name: str diff --git a/netbox_interface_name_rules/family/structural.py b/netbox_interface_name_rules/family/structural.py index f05e26c..3915ac1 100644 --- a/netbox_interface_name_rules/family/structural.py +++ b/netbox_interface_name_rules/family/structural.py @@ -27,6 +27,7 @@ UNSUPPORTED_REASON = "this NetBox release cannot model channelized interfaces" STALE_REASON = "the base interface changed after planning" +MODULE_CHANGED_REASON = "the module's interfaces changed after planning" def channelized_family_names(rule, base_name, variables): # pragma: no cover - channelization only @@ -52,6 +53,12 @@ def channelized_family_names(rule, base_name, variables): # pragma: no cover - return parent_name, channels +def _flat_expansion(module_type_id, module_id, db_alias) -> bool: # pragma: no cover - channelization only + """Return whether the module carries more interfaces than its module type's templates describe.""" + templates = InterfaceTemplate.objects.using(db_alias).filter(module_type_id=module_type_id).count() + return Interface.objects.using(db_alias).filter(module_id=module_id).count() > templates + + def has_flat_expansion(module) -> bool: # pragma: no cover - requires channelization support """Return whether *module* carries more interfaces than its module type's templates describe. @@ -59,9 +66,7 @@ def has_flat_expansion(module) -> bool: # pragma: no cover - requires channeliz family an earlier apply installed. Counting templates rather than their resolved names keeps two templates that resolve to the same string from reading as one. """ - db_alias = module_db_alias(module) - templates = InterfaceTemplate.objects.using(db_alias).filter(module_type_id=module.module_type_id).count() - return Interface.objects.using(db_alias).filter(module_id=module.pk).count() > templates + return _flat_expansion(module.module_type_id, module.pk, module_db_alias(module)) def _plan(module, db_alias, base, parent_target_name, channels, status=None, reason=""): @@ -70,6 +75,7 @@ def _plan(module, db_alias, base, parent_target_name, channels, status=None, rea family_id=f"structural:{base.pk}", device_id=module.device_id, module_id=module.pk, + module_type_id=module.module_type_id, db_alias=db_alias, base=InterfaceSnapshot.from_interface(base), parent_target_name=parent_target_name, @@ -204,6 +210,9 @@ def _install_family(plan): # pragma: no cover - requires channelization support base = _locked_base(plan) if base is None or InterfaceSnapshot.from_interface(base) != plan.base: return _refused(plan, FamilyStatus.STALE, STALE_REASON, plan.parent_target_name) + # A sibling added since planning would be stranded beside the family this plan builds. + if _flat_expansion(plan.module_type_id, plan.module_id, plan.db_alias): + return _refused(plan, FamilyStatus.STALE, MODULE_CHANGED_REASON, plan.parent_target_name) taken = _first_taken_name(plan) if taken is not None: return _refused(plan, FamilyStatus.BLOCKED, f"{COLLISION_REASON}: {taken}", taken) diff --git a/netbox_interface_name_rules/tests/test_structural_families.py b/netbox_interface_name_rules/tests/test_structural_families.py index 47f9e31..229bb00 100644 --- a/netbox_interface_name_rules/tests/test_structural_families.py +++ b/netbox_interface_name_rules/tests/test_structural_families.py @@ -291,6 +291,18 @@ def test_a_base_that_changed_after_planning_is_stale_and_untouched(self): self.assertEqual(self._names(module), ["renamed-by-someone-else"]) self.assertTrue(any("changed after planning" in line for line in logs.output), logs.output) + def test_a_sibling_added_after_planning_is_stale(self): + """A row added after planning would be stranded beside the family, so the plan is refused.""" + module, _bay, plan = self._plan() + Interface.objects.create(device=self.device, module=module, name="added-after-planning", type=PLAIN_TYPE) + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + outcome = execute_structural_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.STALE) + self.assertEqual(self._names(module), ["3", "added-after-planning"]) + self.assertTrue(any("module's interfaces changed" in line for line in logs.output), logs.output) + def test_a_base_deleted_after_planning_is_stale(self): module, _bay, plan = self._plan() Interface.objects.filter(pk=plan.base.pk).delete() From 8463f6128c8a2912169a4e6ac2a9ac2402ad9c62 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 15:49:22 +0200 Subject: [PATCH 21/74] fix: lock only the interfaces the reconciliation restores The deferred reconciliation selected its children with select_for_update() and select_related("device"). Django applies FOR UPDATE to every joined table, so the query also locked the device row, and NetBox's natural interface ordering meant two overlapping reconciliations could take those locks in different orders. The lock is now restricted to the interface rows and taken in primary-key order, the order ADR 0005 already requires of family execution. Refs #78. --- netbox_interface_name_rules/family/names.py | 8 +++++++- .../tests/test_structural_families.py | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/netbox_interface_name_rules/family/names.py b/netbox_interface_name_rules/family/names.py index a83e1af..f98f1f3 100644 --- a/netbox_interface_name_rules/family/names.py +++ b/netbox_interface_name_rules/family/names.py @@ -32,7 +32,13 @@ def restore_deferred_channel_names(reconciliations, db_alias): """Restore plugin-owned names that NetBox's parent cascade changed after commit.""" child_pks = [child_pk for child_pk, _final_name, _cascade_name in reconciliations] with transaction.atomic(using=db_alias): - children = Interface.objects.using(db_alias).select_for_update().select_related("device").in_bulk(child_pks) + children = ( + Interface.objects.using(db_alias) + .select_for_update(of=("self",)) + .select_related("device") + .order_by("pk") + .in_bulk(child_pks) + ) for child_pk, final_name, cascade_name in reconciliations: child = children.get(child_pk) if child is None or child.name == final_name: diff --git a/netbox_interface_name_rules/tests/test_structural_families.py b/netbox_interface_name_rules/tests/test_structural_families.py index 229bb00..68538cc 100644 --- a/netbox_interface_name_rules/tests/test_structural_families.py +++ b/netbox_interface_name_rules/tests/test_structural_families.py @@ -13,6 +13,7 @@ from dcim.models import Device, DeviceRole, DeviceType, Interface, Manufacturer, Site from django.db import IntegrityError, connection from django.test import TestCase +from django.test.utils import CaptureQueriesContext from netbox_interface_name_rules.engine import ( apply_interface_name_rules, @@ -216,6 +217,22 @@ def test_a_name_taken_since_the_cascade_is_not_reclaimed(self): self.assertEqual(child.name, "xe-0/0/3:1") self.assertEqual(occupant.name, "et-0/0/3:1") + def test_the_reconciliation_locks_only_interfaces_in_primary_key_order(self): + """A joined device row must not be locked, and overlapping runs must agree on lock order.""" + children = [self._interface("et-0/0/3:1"), self._interface("et-0/0/3:2")] + reconciliations = tuple( + (child.pk, child.name, f"xe-0/0/3:{index}") for index, child in enumerate(children, start=1) + ) + + with CaptureQueriesContext(connection) as queries: + family_names.restore_deferred_channel_names(reconciliations, children[0]._state.db) + + locking = [query["sql"] for query in queries.captured_queries if "FOR UPDATE" in query["sql"]] + self.assertEqual(len(locking), 1, locking) + self.assertIn('FOR UPDATE OF "dcim_interface"', locking[0]) + self.assertNotIn("dcim_device", locking[0].split("FOR UPDATE")[1]) + self.assertIn('ORDER BY "dcim_interface"."id" ASC', locking[0]) + def test_an_unrelated_integrity_failure_propagates(self): interface = self._interface("cascade-name") From f625e3bc7dd4c227b3a578cf7760bdd708e0dddd Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 17:04:06 +0200 Subject: [PATCH 22/74] refactor: plan prediction and preview from prospective families Rowless prediction and the interactive preview each rebuilt the names a rule intends, beside the installed and structural planners that already computed them. Three copies of the same naming rules can drift, and the preview carried enough row detail to look like an executable snapshot. family/targets.py now owns every name a rule intends for a family: the flat sibling names, the channelized parent-and-channel names, and the targets for an installed family (breakout rename, lockstep rename, channel-count mismatch, template failure). The installed, structural and prospective planners all name families through it. family/prospective.py plans families for interfaces described by name alone. Three adapters feed it: describe_module_interfaces (a module's templates plus the caller's names), describe_template_interfaces (templates the caller already read) and describe_interfaces (live rows). It creates no row, and execute_installed_plan_set and execute_structural_family now refuse a plan that is not their own type before locking anything. predict_rule_output maps each raw name through the plan set, and find_interfaces_for_rule builds its entries from plans. The engine's own prediction and preview helpers are deleted. Entry keys, the batch limit and total_checked are unchanged. Three corners now say what apply actually does: - a channelized family whose template fails on one channel predicts the whole family unchanged, which is how apply already leaves it; - a channelized family whose intended names are already taken on the module predicts and previews unchanged, which is what the structural executor already refuses; - a family the preview cannot name reports one error placeholder instead of one per name. Verified on NetBox 4.6 (744 tests) and 4.7.0-beta1 (756 tests), coverage 97%. One failure is an unrelated pre-existing local environment issue; CI is unaffected. --- ...an-prediction-and-preview-prospectively.md | 7 + netbox_interface_name_rules/engine.py | 419 ++++---------- .../family/__init__.py | 23 +- netbox_interface_name_rules/family/domain.py | 55 ++ .../family/execution.py | 8 +- .../family/installed.py | 118 +--- .../family/prospective.py | 289 ++++++++++ .../family/structural.py | 33 +- netbox_interface_name_rules/family/targets.py | 174 ++++++ .../tests/test_engine_advanced.py | 110 ++-- .../tests/test_prospective_families.py | 519 ++++++++++++++++++ 11 files changed, 1224 insertions(+), 531 deletions(-) create mode 100644 docs/adr/0008-plan-prediction-and-preview-prospectively.md create mode 100644 netbox_interface_name_rules/family/prospective.py create mode 100644 netbox_interface_name_rules/family/targets.py create mode 100644 netbox_interface_name_rules/tests/test_prospective_families.py diff --git a/docs/adr/0008-plan-prediction-and-preview-prospectively.md b/docs/adr/0008-plan-prediction-and-preview-prospectively.md new file mode 100644 index 0000000..a5203b7 --- /dev/null +++ b/docs/adr/0008-plan-prediction-and-preview-prospectively.md @@ -0,0 +1,7 @@ +--- +status: accepted +--- + +# Plan prediction and preview prospectively + +Rowless prediction and the interactive preview build prospective family plans through the same naming rules installed execution follows. One shared target module names every family, so an installed plan, a prospective plan and a structural plan cannot spell the same family differently. A prospective plan carries names rather than row snapshots and the executors reject one by type, so a preview can never become an executable snapshot and prediction can describe a family NetBox has not created yet. Interactive apply ignores the preview object and plans again from live rows, so a change between the two is replanned rather than written over. A plan the live topology blocks previews and predicts no change, because the apply path would build nothing there either. diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index cdbaf48..c9090e7 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -17,6 +17,7 @@ from . import naming, rule_selection from .choices import BreakoutModeChoices from .family import names as family_names +from .family import targets as family_targets from .family import template_names as family_template_names from .rule_selection import _compile_pattern @@ -128,21 +129,6 @@ def _partition_families(interfaces): return bases, children -def _child_name_suffix(child_name, parent_name): # pragma: no cover - requires channelization support - """Return the suffix *child_name* adds to *parent_name*, or None when it adds none. - - The first character must be non-alphanumeric so ``et0``/``et01`` is never mistaken for a - family; the punctuation itself is free-form (``:``, ``-``, ``_`` and ``@`` all occur in the - wild), so it is not restricted to a fixed separator. - """ - if not parent_name or not child_name.startswith(parent_name): - return None - suffix = child_name[len(parent_name) :] - if not suffix or suffix[0].isalnum(): - return None - return suffix - - def _unambiguous_claims(candidates, matchers, module): # pragma: no cover - requires vc_position token support """Return the labels of *candidates* that exactly one drifted ``{vc_position}`` template claims. @@ -383,84 +369,17 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): return renamed -def _predicted_channel_name(rule, raw_name, variables, parents, children): # pragma: no cover - channelized only - """Return the name the channel template named *raw_name* takes under *rule*.""" - parent_name, channel_id = children[raw_name] - if rule.channel_count > 0: - if parents.get(parent_name) != rule.channel_count: - return raw_name # channel-count mismatch: the apply path skips the whole family - channel = str(rule.channel_start + channel_id - 1) - return evaluate_name_template(rule.name_template, {**variables, "base": parent_name, "channel": channel}) - # Simple rule: the channel follows its parent, keeping the suffix it adds to the parent's name. - parent_target = evaluate_name_template(rule.name_template, {**variables, "base": parent_name}) - suffix = _child_name_suffix(raw_name, parent_name) - return raw_name if suffix is None else parent_target + suffix - - -def _predicted_family_parent_name(rule, raw_name, variables, parents): # pragma: no cover - channelized only - """Return the name the parent template named *raw_name* takes under *rule*. - - Only a channelized rule that names its parent renames it, and only when the family's channel - count is the one the rule describes — the same two conditions the apply path applies. - """ - if not (_is_channelized_rule(rule) and rule.parent_name_template): - return raw_name - if parents.get(raw_name) != rule.channel_count: - return raw_name # channel-count mismatch: the apply path skips the whole family - return evaluate_name_template(rule.parent_name_template, {**variables, "base": raw_name}) - - -def _predicted_family_names(rule, raw_name, variables): # pragma: no cover - channelization only - """Return the parent and channel names a channelized rule would build on *raw_name*.""" - parent_name, channels = family_ops.channelized_family_names(rule, raw_name, variables) - return [parent_name, *(name for _, name in channels)] - - -def _predicted_names(rule, raw_name, variables, parents, children, family_blocked=False): - """Return the names *raw_name* predicts to under *rule*. - - A name the module type's templates describe as a channelized parent or channel follows its - family; a channelized rule on a plain name predicts the family it would build there, unless - *family_blocked* says the apply path refuses to build it; anything else keeps the per-name - prediction, expanding once per channel for a breakout rule and once for a simple one. - """ - if raw_name in parents: # pragma: no cover - requires a NetBox that models channelization - if rule.channel_count > 0: - # The rule renames the family's existing channels; only a parent template moves the parent. - return [_predicted_family_parent_name(rule, raw_name, variables, parents)] - return [evaluate_name_template(rule.name_template, {**variables, "base": raw_name})] - if raw_name in children: # pragma: no cover - requires a NetBox that models channelization - return [_predicted_channel_name(rule, raw_name, variables, parents, children)] - if rule.channel_count > 0 and _is_channelized_rule(rule): - if family_blocked or not supports_channelization(): - return [raw_name] # the apply path builds nothing here - return _predicted_family_names(rule, raw_name, variables) # pragma: no cover - see above - vars_copy = {**variables, "base": raw_name} - if rule.channel_count > 0: - return [ - evaluate_name_template(rule.name_template, {**vars_copy, "channel": str(rule.channel_start + ch)}) - for ch in range(rule.channel_count) - ] - return [evaluate_name_template(rule.name_template, vars_copy)] - - def predict_rule_output(module, module_bay, raw_names): """Predict the names apply_interface_name_rules would produce for raw_names. - Read-only — saves and mutates nothing. A channelized rule additionally counts the module's - interfaces, because the apply path refuses to convert a module that already carries a flat - breakout family and the prediction has to say the same. Used by external integrations (e.g., + Read-only — saves and mutates nothing. Used by external integrations (e.g. netbox-librenms-plugin) that need to know the post-rename names without applying any rule. - For breakout rules (channel_count > 0), each raw name expands to - channel_count predicted names. For simple renames, one name in → one name - out. Returns raw_names unchanged when no rule matches or evaluation fails. - - A name the module type's interface templates describe as part of a channelized family is - predicted as the apply path treats it instead: the family's channels are renamed in place, so a - breakout rule leaves the parent's name alone and maps each channel through its ``channel_id`` - rather than expanding one name into a flat set. Names no template claims keep the per-name - prediction, so a module type without channelized templates is unaffected. + The names are planned by the family module from the module type's templates, so prediction + describes the same families installed execution builds: a breakout rule expands one plain name + into the family it creates, a name the templates describe as part of a channelized family + follows that family instead, and a family the apply path refuses to touch predicts unchanged. + Returns raw_names unchanged when no rule matches. Precondition: *raw_names* are resolved by the caller at call time. A name captured before the device's virtual-chassis position changed is predicted from itself, not corrected to the name @@ -472,26 +391,13 @@ def predict_rule_output(module, module_bay, raw_names): if not rule: return list(raw_names) - variables = build_variables(module_bay, device=module.device) - parents, children = _template_families(module) - # Costs one count pair, and only where a channelized rule could otherwise predict a family. - family_blocked = ( - rule.channel_count > 0 - and _is_channelized_rule(rule) - and supports_channelization() - and family_ops.has_flat_expansion(module) + plan_set = family_ops.plan_prospective_families( + module, + rule, + build_variables(module_bay, device=module.device), + family_ops.describe_module_interfaces(module, raw_names), ) - - output = [] - for raw_name in raw_names: - try: - output.extend(_predicted_names(rule, raw_name, variables, parents, children, family_blocked)) - except (ValueError, TypeError, re.error): - # Template eval failed; apply path would also fail and leave the - # interface alone, so the predicted name is the raw name. - output.append(raw_name) - - return output + return [name for raw_name in raw_names for name in plan_set.predicted_names(raw_name)] def _try_rename_device_interface(rule, iface, vc_position, device, renamed_pks, conflicts=None): @@ -708,62 +614,6 @@ def _raw_names_by_module(modules): # pragma: no cover - only the conversion sca return family_template_names.raw_names_by_module(modules) -def _template_families(module): - """Return ``(parents, children)`` describing *module*'s channelized interface templates. - - *parents* maps a channelized parent template's resolved name to its channel count; *children* - maps each channel template's resolved name to ``(parent_name, channel_id)``. Both are empty - where nothing can be channelized, so callers keep their pre-channelization behaviour without - paying for a template scan. - """ - if not supports_channelization(): - return {}, {} - return _resolve_template_families(module) # pragma: no cover - requires channelization support - - -def _resolve_template_families(module): # pragma: no cover - requires a NetBox that models channelization - """Resolve *module*'s interface templates into the channelized families they describe. - - Pairing through ``InterfaceTemplate.parent`` (rather than matching against the flat set of raw - names) keeps ambiguous prefixes like ``xe``/``xe-0`` apart, and a channel template whose parent - declares no channel count is not a family at all. - """ - from dcim.models import InterfaceTemplate - - module_fresh = _module_with_bay_chain(module) - templates = list(InterfaceTemplate.objects.filter(module_type=module_fresh.module_type)) - resolved = {tmpl.pk: tmpl.resolve_name(module_fresh) for tmpl in templates} - parents_by_pk = { - tmpl.pk: (resolved[tmpl.pk], tmpl.channels) for tmpl in templates if getattr(tmpl, "channels", None) is not None - } - children = {} - for tmpl in templates: - channel_id = getattr(tmpl, "channel_id", None) - parent = parents_by_pk.get(getattr(tmpl, "parent_id", None)) - if channel_id is None or parent is None: - continue - parent_name, _channels = parent - children[resolved[tmpl.pk]] = (parent_name, channel_id) - return dict(parents_by_pk.values()), children - - -def _template_channel_suffixes(module): # pragma: no cover - requires a NetBox that models channelization - """Map ``channel_id`` → the set of name suffixes *module*'s interface templates give that channel. - - The suffix comes from the template family itself — each channel template's resolved name minus - its parent template's resolved name — so a child that lost its parent's prefix in an earlier - partial rename can still be repaired. A module type with several families may spell the same - channel differently in each (``et0:2`` vs ``sw0.2``), so the suffixes are collected per channel - rather than overwritten: the recovery only uses one when every family agrees on it. - """ - suffixes = defaultdict(set) - for child_name, (parent_name, channel_id) in _template_families(module)[1].items(): - suffix = _child_name_suffix(child_name, parent_name) - if suffix is not None: - suffixes[channel_id].add(suffix) - return suffixes - - def _recovered_suffix(child, suffixes): # pragma: no cover - requires channelization support """Return the template suffix for *child*'s channel, or None when it is not unambiguous. @@ -796,10 +646,10 @@ def _child_target_names(children, parent_before, parent_after, module): suffixes = None targets = [] for child in children: # pragma: no cover - requires channelization support - suffix = _child_name_suffix(child.name, parent_before) + suffix = family_targets.child_name_suffix(child.name, parent_before) if suffix is None and module is not None: if suffixes is None: - suffixes = _template_channel_suffixes(module) + suffixes = family_ops.template_channel_suffixes(family_ops.resolved_template_names(module)) suffix = _recovered_suffix(child, suffixes) targets.append((child, None if suffix is None else parent_after + suffix)) return targets @@ -1212,153 +1062,105 @@ def _name_detail(name, role, channel_id=None) -> dict: return {"name": name, "role": role, "channel_id": channel_id} -def _family_entry(module, parent, details, children) -> dict | None: - """Build a family preview entry from per-name *details*, or None when nothing would change. - - The entry stays keyed on the parent — the PK the Apply view submits — and lists the family's - names in ``new_names``, so the existing template loop keeps working unchanged. - """ - if [detail["name"] for detail in details] == [parent.name, *(child.name for child in children)]: - return None - return { - "module": module, - "interface": parent, - "current_name": parent.name, - "new_names": [detail["name"] for detail in details], - "name_details": details, - } +_PREVIEW_ROLES = { + family_ops.MemberRole.PARENT: "parent", + family_ops.MemberRole.CHANNEL: "channel", +} -def _evaluate_plain_interface(rule, module, iface, variables, children=()) -> dict | None: - """Return a result dict if *iface* or one of its channels would be renamed by *rule*, else None. +def _member_detail(plan, member) -> dict: + """Describe one planned member so the UI can render a family as a family. - A channelized parent is previewed together with its channels, so the Apply page shows the whole - family behind the one PK it submits. + A flat family's members are the channels a breakout rule spells out; a plan that holds only + one of them is a plain rename, not a family. """ - vars_copy = {**variables, "base": iface.name} - try: - new_name = evaluate_name_template(rule.name_template, vars_copy) - except ValueError as exc: - new_name = f"" - if children: # pragma: no cover - requires channelization support - return _family_entry(module, iface, _lockstep_details(new_name, iface, children, module), children) - return _family_entry(module, iface, [_name_detail(new_name, "interface")], ()) + role = _PREVIEW_ROLES.get(member.role) or ("channel" if len(plan.members) > 1 else "interface") + return _name_detail(member.target_name, role, member.channel_id) -def _lockstep_details(new_name, parent, children, module) -> list: # pragma: no cover - see above - """Per-name preview details for a family renamed in lockstep with its parent. +def _plan_details(plan) -> list: + """Describe every name the plan intends, or the error that stopped it from naming them.""" + if plan.precondition_status != family_ops.FamilyStatus.FAILED: + return [_member_detail(plan, member) for member in plan.members] + root = _member_detail(plan, plan.members[0]) + return [_name_detail(f"", root["role"], root["channel_id"])] - A channel whose suffix cannot be derived previews as unchanged — the same thing the apply path - does with it. - """ - details = [_name_detail(new_name, "parent")] - for child, target in _child_target_names(children, parent.name, new_name, module): - details.append(_name_detail(child.name if target is None else target, "channel", child.channel_id)) - return details +def _plan_changes_names(plan, existing_names) -> bool: + """Return whether the planned family would rename or create anything. -def _channelized_family_entry(rule, module, parent, children, variables) -> dict | None: # pragma: no cover - """Preview a breakout rule against an already-channelized family. - - Nothing is created — only the existing channels are renamed, plus the parent when the rule - names one — so a family whose channel count disagrees with the rule previews as no change at - all. + A plan that renames members compares intent with the names they carry now. A plan that builds + a family out of one base compares intent with the names the module already holds, so a family + an earlier apply already installed previews as no change. """ - if getattr(parent, "channels", None) != rule.channel_count: - return None - parent_name = parent.name - if _is_channelized_rule(rule) and rule.parent_name_template: - try: - parent_name = evaluate_name_template(rule.parent_name_template, {**variables, "base": parent.name}) - except ValueError as exc: - parent_name = f"" - details = [_name_detail(parent_name, "parent")] - for child in children: - channel = str(rule.channel_start + child.channel_id - 1) - try: - new_name = evaluate_name_template( - rule.name_template, {**variables, "base": parent.name, "channel": channel} - ) - except ValueError as exc: - new_name = f"" - details.append(_name_detail(new_name, "channel", child.channel_id)) - return _family_entry(module, parent, details, children) - - -def _channelized_family_preview(rule, module, base, variables) -> dict | None: # pragma: no cover - see below - """Describe the channelized family a rule would build on a plain base interface.""" - try: - parent_name, channels = family_ops.channelized_family_names(rule, base.name, variables) - except ValueError as exc: - return _family_entry(module, base, [_name_detail(f"", "parent")], ()) - details = [_name_detail(parent_name, "parent")] - details.extend(_name_detail(name, "channel", channel_id) for channel_id, name in channels) - return _family_entry(module, base, details, ()) + if plan.base_name is None: # pragma: no cover - requires channelization support + return plan.target_names != plan.source_names + return plan.target_names[0] != plan.base_name or any( + target_name not in existing_names for target_name in plan.target_names + ) -def _channelized_creation_entry(rule, module, bases, variables) -> dict | None: - """Return the preview entry for the family a channelized rule would build, or None for none. +def _plan_entry(module, plan, interface, existing_names) -> dict | None: + """Build the preview entry for one family plan, or None when it would change nothing. - A release that cannot model channels previews nothing, because the apply path builds nothing - there either; neither does a module whose flat family the apply path refuses to convert. + The entry stays keyed on the interface the Apply view submits, and lists the family's names in + ``new_names``, so the existing template loop keeps working unchanged. A plan the live topology + blocks previews nothing, because the apply path would build nothing either. """ - if not supports_channelization(): + failed = plan.precondition_status == family_ops.FamilyStatus.FAILED + if plan.precondition_status is not None and not failed: return None - if family_ops.has_flat_expansion(module): # pragma: no cover - requires channelization support + if not failed and not _plan_changes_names(plan, existing_names): return None - return _channelized_family_preview( # pragma: no cover - requires channelization support - rule, module, _find_channel_base(rule, bases, variables), variables - ) + details = _plan_details(plan) + return { + "module": module, + "interface": interface, + "current_name": interface.name, + "new_names": [detail["name"] for detail in details], + "name_details": details, + } + +def _plan_root_name(plan) -> str: + """Return the name of the interface a plan is submitted through.""" + return plan.base_name if plan.base_name is not None else plan.members[0].source_name -def _channel_rule_entries(rule, module, bases, children_by_parent, variables) -> list: - """Return the preview entries a channel rule produces for one module. - A module whose base is already channelized previews per family (renames only); a channelized - rule on a plain base previews the family it would build; anything else keeps the flat breakout - preview of one entry per module. +def _preview_plans(rule, plan_set, rows_by_name, variables) -> list: + """Return the plans this preview reports. + + A breakout rule is applied once per module through one base interface, so a module that carries + no channelized family previews only the family that base would gain. Every other rule previews + each family it names. """ - families = [base for base in bases if _is_channelized_parent(base)] - if families: # pragma: no cover - requires a NetBox that models channelization - entries = [ - _channelized_family_entry(rule, module, parent, children_by_parent.get(parent.pk, ()), variables) - for parent in families - ] - return [entry for entry in entries if entry] - if _is_channelized_rule(rule): - entry = _channelized_creation_entry(rule, module, bases, variables) - return [entry] if entry else [] - entry = _channel_rule_entry(rule, module, bases, variables) - return [entry] if entry else [] - - -def _channel_rule_entry(rule, module, ifaces, variables) -> dict | None: - """Return a result dict if the channel rule would change any name for this module, else None.""" - base_iface = _find_channel_base(rule, ifaces, variables) - if base_iface is None: - return None - vars_copy = {**variables, "base": base_iface.name} - expected_names = [] - try: - for ch in range(rule.channel_count): - expected_names.append( - evaluate_name_template(rule.name_template, {**vars_copy, "channel": str(rule.channel_start + ch)}) - ) - except ValueError as exc: - expected_names = [f""] - existing_names = {i.name for i in ifaces} - # Report if any channel name is missing or the base itself needs renaming - if any(n not in existing_names for n in expected_names) or ( - expected_names and expected_names[0] != base_iface.name - ): - return { - "module": module, - "interface": base_iface, - "current_name": base_iface.name, - "new_names": expected_names, - "name_details": [_name_detail(name, "channel") for name in expected_names], - } - return None + if rule.channel_count <= 0: + return list(plan_set.plans) + installed = [plan for plan in plan_set.plans if plan.base_name is None] + if installed: # pragma: no cover - requires a NetBox that models channelization + return installed + # Every plan here builds a family out of one base, so the module always has one to choose. + bases = [rows_by_name[plan.base_name] for plan in plan_set.plans if plan.base_name is not None] + base = _find_channel_base(rule, bases, variables) + return [plan for plan in plan_set.plans if plan.base_name == base.name] + + +def _process_module(rule, module, ifaces, variables, limit, results, module_qs, processed_pks): + """Preview one module from its family plans. Returns (checked_count, should_stop).""" + plan_set = family_ops.plan_prospective_families(module, rule, variables, family_ops.describe_interfaces(ifaces)) + checked = len(plan_set.plans) + if not checked: + return 0, False + rows_by_name = {iface.name: iface for iface in ifaces} + existing_names = frozenset(rows_by_name) + for plan in _preview_plans(rule, plan_set, rows_by_name, variables): + entry = _plan_entry(module, plan, rows_by_name[_plan_root_name(plan)], existing_names) + if entry is None: + continue + results.append(entry) + if limit is not None and len(results) >= limit: + return checked + _count_remaining_interfaces(module_qs, processed_pks), True + return checked, False def _count_remaining_interfaces(module_qs, processed_pks) -> int: @@ -1371,35 +1173,6 @@ def _count_remaining_interfaces(module_qs, processed_pks) -> int: return qs.count() -def _process_channel_module(rule, module, ifaces, variables, limit, results, module_qs, processed_pks): - """Process one module for a channel rule. Returns (checked_count, should_stop).""" - bases, children_by_parent = _partition_families(ifaces) - checked = len(bases) - if not bases: - return checked, False - for entry in _channel_rule_entries(rule, module, bases, children_by_parent, variables): - results.append(entry) - if limit is not None and len(results) >= limit: - return checked + _count_remaining_interfaces(module_qs, processed_pks), True - return checked, False - - -def _process_plain_module(rule, module, ifaces, variables, limit, results, module_qs, processed_pks): - """Process one module for a plain (non-channel) rule. Returns (checked_count, should_stop).""" - bases, children_by_parent = _partition_families(ifaces) - checked = 0 - for iface_idx, iface in enumerate(bases): - checked += 1 - entry = _evaluate_plain_interface(rule, module, iface, variables, children_by_parent.get(iface.pk, ())) - if entry: - results.append(entry) - if limit is not None and len(results) >= limit: - checked += len(bases) - (iface_idx + 1) - checked += _count_remaining_interfaces(module_qs, processed_pks) - return checked, True - return checked, False - - def find_interfaces_for_rule(rule, limit=None): """Find interfaces that would be renamed by applying the given rule retroactively. @@ -1433,8 +1206,6 @@ def find_interfaces_for_rule(rule, limit=None): "module_bay", "module_bay__parent", ) - process_fn = _process_channel_module if rule.channel_count > 0 else _process_plain_module - # Batch-load all interfaces for matching modules to avoid N+1 queries. ifaces_by_module = defaultdict(list) for iface in Interface.objects.filter(module__in=module_qs).order_by("module_id", "name"): @@ -1447,7 +1218,7 @@ def find_interfaces_for_rule(rule, limit=None): processed_pks.add(module.pk) variables = build_variables(module.module_bay, device=module.device) ifaces = ifaces_by_module.get(module.pk, []) - checked, stop = process_fn(rule, module, ifaces, variables, limit, results, module_qs, processed_pks) + checked, stop = _process_module(rule, module, ifaces, variables, limit, results, module_qs, processed_pks) total_checked += checked if stop: return results, total_checked diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py index 57bf2ed..be69125 100644 --- a/netbox_interface_name_rules/family/__init__.py +++ b/netbox_interface_name_rules/family/__init__.py @@ -15,17 +15,28 @@ MemberRole, PlannedChannel, PlannedMember, + ProspectiveFamilyPlan, + ProspectiveFamilyPlanSet, + ProspectiveMember, StructuralFamilyPlan, ) from .execution import execute_installed_plan_set from .installed import module_db_alias, plan_installed_families +from .prospective import ( + ProspectiveInterface, + describe_interfaces, + describe_module_interfaces, + describe_template_interfaces, + plan_prospective_families, +) from .structural import ( - channelized_family_names, execute_structural_family, has_flat_expansion, install_channelized_family, plan_structural_family, ) +from .targets import channelized_family_names, template_channel_suffixes +from .template_names import resolved_template_names __all__ = ( "FamilyOutcome", @@ -39,14 +50,24 @@ "MemberRole", "PlannedChannel", "PlannedMember", + "ProspectiveFamilyPlan", + "ProspectiveFamilyPlanSet", + "ProspectiveInterface", + "ProspectiveMember", "StructuralFamilyPlan", "channelized_family_names", + "describe_interfaces", + "describe_module_interfaces", + "describe_template_interfaces", "execute_installed_plan_set", "execute_structural_family", "has_flat_expansion", "install_channelized_family", "module_db_alias", "plan_installed_families", + "plan_prospective_families", "plan_structural_family", + "resolved_template_names", "supports_channelization", + "template_channel_suffixes", ) diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py index d0e9bd5..5d43648 100644 --- a/netbox_interface_name_rules/family/domain.py +++ b/netbox_interface_name_rules/family/domain.py @@ -136,6 +136,61 @@ def target_names(self) -> tuple[str, ...]: return (self.parent_target_name, *(channel.name for channel in self.channels)) +@dataclass(frozen=True, slots=True) +class ProspectiveMember: + """One member of a family planned from names alone.""" + + source_name: str | None + target_name: str + role: MemberRole + channel_id: int | None = None + reason: str = "" + + +@dataclass(frozen=True, slots=True) +class ProspectiveFamilyPlan: + """What a rule intends for one family of named interfaces. + + A plan whose *base_name* is set describes a family the rule builds out of that one name, so the + name expands to every target. A plan without one renames members that already exist. + """ + + family_id: str + topology: FamilyTopology + base_name: str | None + members: tuple[ProspectiveMember, ...] + precondition_status: FamilyStatus | None = None + precondition_reason: str = "" + + @property + def source_names(self) -> tuple[str, ...]: + """Return the name of every member that already exists, in plan order.""" + return tuple(member.source_name for member in self.members if member.source_name is not None) + + @property + def target_names(self) -> tuple[str, ...]: + """Return every intended name, in plan order.""" + return tuple(member.target_name for member in self.members) + + +@dataclass(frozen=True, slots=True) +class ProspectiveFamilyPlanSet: + """Exactly one prospective plan for each family the rule intends on a module.""" + + module_id: int + plans: tuple[ProspectiveFamilyPlan, ...] + + def predicted_names(self, source_name: str) -> tuple[str, ...]: + """Return the names *source_name* becomes, or the name itself when no plan claims it.""" + for plan in self.plans: + if plan.base_name == source_name: + return plan.target_names + for member in plan.members: + if member.source_name == source_name: + return (member.target_name,) + return (source_name,) + + @dataclass(frozen=True, slots=True) class MemberOutcome: """Result facts for one planned family member.""" diff --git a/netbox_interface_name_rules/family/execution.py b/netbox_interface_name_rules/family/execution.py index 2a8030c..ac7310e 100644 --- a/netbox_interface_name_rules/family/execution.py +++ b/netbox_interface_name_rules/family/execution.py @@ -213,5 +213,11 @@ def _execute_plan(plan: InstalledFamilyPlan) -> FamilyOutcome: def execute_installed_plan_set(plan_set: InstalledFamilyPlanSet) -> InstalledPlanSetOutcome: - """Execute each installed family in a separate transaction.""" + """Execute each installed family in a separate transaction. + + Only an installed plan set carries the row snapshots execution revalidates, so anything else + (a prospective plan set above all) is refused before a single row is locked. + """ + if not isinstance(plan_set, InstalledFamilyPlanSet): + raise TypeError(f"{type(plan_set).__name__} is not an executable plan set") return InstalledPlanSetOutcome(families=tuple(_execute_plan(plan) for plan in plan_set.plans)) diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index 312f5a3..fe882c5 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -11,7 +11,6 @@ from ..choices import BreakoutModeChoices from ..naming import evaluate_name_template from .domain import ( - FamilyStatus, FamilyTopology, InstalledFamilyPlan, InstalledFamilyPlanSet, @@ -19,6 +18,7 @@ MemberRole, PlannedMember, ) +from .targets import channelized_family_targets, flat_family_names, template_channel_suffixes from .template_names import resolved_template_names logger = logging.getLogger(__name__) @@ -50,53 +50,6 @@ def _is_channel(interface) -> bool: # pragma: no cover - requires channelizatio return getattr(interface, "channel_id", None) is not None -def _child_name_suffix(child_name, parent_name): # pragma: no cover - requires channelization support - """Return the non-alphanumeric suffix that *child_name* adds to its parent.""" - if not parent_name or not child_name.startswith(parent_name): - return None - suffix = child_name[len(parent_name) :] - if not suffix or suffix[0].isalnum(): - return None - return suffix - - -def _template_channel_suffixes(templates): # pragma: no cover - requires channelization support - """Return the possible resolved suffixes for each template channel.""" - parents = {template.pk: template.resolved for template in templates if template.channels is not None} - suffixes: dict[int, set[str]] = {} - for template in templates: - if template.channel_id is None or template.parent_id not in parents: - continue - suffix = _child_name_suffix(template.resolved, parents[template.parent_id]) - if suffix is not None: - suffixes.setdefault(template.channel_id, set()).add(suffix) - return suffixes - - -def _simple_child_target(child, parent_name, parent_target, suffixes): # pragma: no cover - channelization only - """Return a simple rule's child target or the reason it cannot be derived.""" - suffix = _child_name_suffix(child.name, parent_name) - if suffix is None: - candidates = suffixes.get(child.channel_id, set()) - if len(candidates) == 1: - suffix = next(iter(candidates)) - if suffix is None: - return None, "channel suffix is ambiguous or unavailable" - return parent_target + suffix, "" - - -def _flat_names(rule, variables, base_name): - """Return the names of the flat family that *rule* defines on *base_name*.""" - family_variables = {**variables, "base": base_name} - return tuple( - evaluate_name_template( - rule.name_template, - {**family_variables, "channel": str(rule.channel_start + offset)}, - ) - for offset in range(rule.channel_count) - ) - - def _historical_bases(rule, variables, template, interfaces): # pragma: no cover - requires VC token support """Return every historical base claimed by *template*.""" if template.historical_pattern is None: @@ -142,13 +95,13 @@ def _source_bases(template, historical_bases, ambiguous_bases): def _template_candidates(rule, variables, by_name, template, source_bases): """Return every complete flat family that *template* recovers from *source_bases*.""" try: - target_names = _flat_names(rule, variables, template.resolved) + target_names = flat_family_names(rule, variables, template.resolved) except (TypeError, ValueError): return [] candidates = [] for source_base in source_bases: try: - source_names = _flat_names(rule, variables, source_base) + source_names = flat_family_names(rule, variables, source_base) except (TypeError, ValueError): continue if len(set(source_names)) != len(source_names) or not all(name in by_name for name in source_names): @@ -210,57 +163,18 @@ def _flat_plan(module, db_alias, target_names, interfaces): def _channelized_plan(module, rule, variables, db_alias, parent, children, suffixes): # pragma: no cover """Build one plan for an existing channelized family.""" - precondition_status = None - precondition_reason = "" - parent_target = parent.name - child_targets = [] - if rule.channel_count > 0: - if parent.channels != rule.channel_count: - precondition_status = FamilyStatus.BLOCKED - precondition_reason = ( - f"installed parent declares {parent.channels} channels but the rule defines {rule.channel_count}" - ) - child_targets = [(child.name, precondition_reason) for child in children] - else: - try: - if rule.breakout_mode == BreakoutModeChoices.CHANNELIZED and rule.parent_name_template: - parent_target = evaluate_name_template( - rule.parent_name_template, - {**variables, "base": parent.name}, - ) - child_targets = [ - ( - evaluate_name_template( - rule.name_template, - { - **variables, - "base": parent.name, - "channel": str(rule.channel_start + child.channel_id - 1), - }, - ), - "", - ) - for child in children - ] - except (TypeError, ValueError) as error: - precondition_status = FamilyStatus.FAILED - precondition_reason = f"failed to evaluate family targets: {error}" - parent_target = parent.name - child_targets = [(child.name, precondition_reason) for child in children] - else: - try: - parent_target = evaluate_name_template(rule.name_template, {**variables, "base": parent.name}) - child_targets = [_simple_child_target(child, parent.name, parent_target, suffixes) for child in children] - except (TypeError, ValueError) as error: - precondition_status = FamilyStatus.FAILED - precondition_reason = f"failed to evaluate family targets: {error}" - parent_target = parent.name - child_targets = [(child.name, precondition_reason) for child in children] - + targets = channelized_family_targets( + rule, + variables, + parent.name, + parent.channels, + tuple((child.name, child.channel_id) for child in children), + suffixes, + ) members = [ PlannedMember( snapshot=InterfaceSnapshot.from_interface(parent), - target_name=parent_target, + target_name=targets.parent_name, role=MemberRole.PARENT, ) ] @@ -271,7 +185,7 @@ def _channelized_plan(module, rule, variables, db_alias, parent, children, suffi role=MemberRole.CHANNEL, reason=reason, ) - for child, (target, reason) in zip(children, child_targets, strict=True) + for child, (target, reason) in zip(children, targets.channels, strict=True) ) return InstalledFamilyPlan( family_id=f"channelized:{parent.pk}", @@ -281,8 +195,8 @@ def _channelized_plan(module, rule, variables, db_alias, parent, children, suffi db_alias=db_alias, members=tuple(members), parent_pk=parent.pk, - precondition_status=precondition_status, - precondition_reason=precondition_reason, + precondition_status=targets.status, + precondition_reason=targets.reason, ) @@ -293,7 +207,7 @@ def _channelized_plans(module, rule, variables, db_alias, interfaces, templates) for interface in interfaces: if _is_channel(interface) and interface.parent_id is not None: children_by_parent.setdefault(interface.parent_id, []).append(interface) - suffixes = _template_channel_suffixes(templates) + suffixes = template_channel_suffixes(templates) plans = [] for parent in parents: children = children_by_parent.get(parent.pk, []) diff --git a/netbox_interface_name_rules/family/prospective.py b/netbox_interface_name_rules/family/prospective.py new file mode 100644 index 0000000..345e0d4 --- /dev/null +++ b/netbox_interface_name_rules/family/prospective.py @@ -0,0 +1,289 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Plan interface families for interfaces described by name alone. + +A prospective plan says what a rule intends, using the same naming rules installed execution +follows. It carries no row snapshot, so it can describe a family NetBox has not created yet and +the executors refuse to take one. +""" + +import logging +from dataclasses import dataclass + +from ..choices import BreakoutModeChoices +from ..naming import evaluate_name_template +from .capabilities import supports_channelization +from .domain import ( + FamilyStatus, + FamilyTopology, + MemberRole, + ProspectiveFamilyPlan, + ProspectiveFamilyPlanSet, + ProspectiveMember, +) +from .names import COLLISION_REASON +from .structural import UNSUPPORTED_REASON, has_flat_expansion +from .targets import channelized_family_names, channelized_family_targets, flat_family_names, template_channel_suffixes +from .template_names import resolved_template_names + +logger = logging.getLogger(__name__) + +FLAT_EXPANSION_REASON = "the module already carries a flat breakout family" + + +@dataclass(frozen=True, slots=True) +class ProspectiveInterface: + """One interface a prospective plan reasons about, described without a row.""" + + name: str + parent_name: str | None = None + channel_id: int | None = None + channels: int | None = None + + +def describe_interfaces(interfaces) -> tuple[ProspectiveInterface, ...]: + """Describe live interface rows for prospective planning.""" + names_by_pk = {interface.pk: interface.name for interface in interfaces} + return tuple( + ProspectiveInterface( + name=interface.name, + parent_name=names_by_pk.get(getattr(interface, "parent_id", None)), + channel_id=getattr(interface, "channel_id", None), + channels=getattr(interface, "channels", None), + ) + for interface in interfaces + ) + + +def describe_template_interfaces(templates, names=()) -> tuple[ProspectiveInterface, ...]: + """Describe the interfaces a module type's templates produce, plus any extra *names*. + + The templates carry the family structure, so a channel keeps its parent and channel identifier + even where no row exists yet. A name no template resolves to is described as a plain interface. + """ + parents = {template.pk: template for template in templates if template.channels is not None} + described = {} + for template in templates: + parent = parents.get(template.parent_id) if template.channel_id is not None else None + described[template.resolved] = ProspectiveInterface( + name=template.resolved, + parent_name=None if parent is None else parent.resolved, + channel_id=None if parent is None else template.channel_id, + channels=template.channels, + ) + described.update( + {name: ProspectiveInterface(name=name) for name in names if name not in described}, + ) + return tuple(described.values()) + + +def describe_module_interfaces(module, names=()) -> tuple[ProspectiveInterface, ...]: + """Describe the interfaces *module*'s templates produce, plus any extra *names*. + + A release that cannot model channelized families describes the names alone: its templates carry + no family structure, so reading them would buy nothing. + """ + if not supports_channelization(): + return tuple(ProspectiveInterface(name=name) for name in names) + return describe_template_interfaces( # pragma: no cover - requires channelization support + resolved_template_names(module), names + ) + + +def _partition(interfaces): + """Split described interfaces into ``(parents, children_by_parent, plain)``.""" + parents = {interface.name: interface for interface in interfaces if interface.channels is not None} + children: dict[str, list] = {name: [] for name in parents} + plain = [] + for interface in interfaces: + if interface.name in parents: + continue # pragma: no cover - requires channelization support + family = children.get(interface.parent_name) if interface.channel_id is not None else None + if family is None: + plain.append(interface) + else: + family.append(interface) # pragma: no cover - requires channelization support + return parents, children, plain + + +def _rename_plan(rule, variables, parent, children, suffixes): # pragma: no cover - channelization only + """Plan the rename of a family the templates or rows already describe.""" + children = sorted(children, key=lambda child: child.channel_id) + targets = channelized_family_targets( + rule, + variables, + parent.name, + parent.channels, + tuple((child.name, child.channel_id) for child in children), + suffixes, + ) + members = [ProspectiveMember(source_name=parent.name, target_name=targets.parent_name, role=MemberRole.PARENT)] + members.extend( + ProspectiveMember( + # A channel whose target cannot be derived keeps the name it has. + source_name=child.name, + target_name=child.name if target is None else target, + role=MemberRole.CHANNEL, + channel_id=child.channel_id, + reason=reason, + ) + for child, (target, reason) in zip(children, targets.channels, strict=True) + ) + return ProspectiveFamilyPlan( + family_id=f"channelized:{parent.name}", + topology=FamilyTopology.CHANNELIZED, + base_name=None, + members=tuple(members), + precondition_status=targets.status, + precondition_reason=targets.reason, + ) + + +def _refused_creation(base_name, topology, role, status, reason): + """Plan a family that will not be built, so the base keeps the name it has.""" + return ProspectiveFamilyPlan( + family_id=f"{topology}:{base_name}", + topology=topology, + base_name=base_name, + members=(ProspectiveMember(source_name=base_name, target_name=base_name, role=role),), + precondition_status=status, + precondition_reason=reason, + ) + + +def _simple_plan(rule, variables, base_name): + """Plan the rename of one interface that owns no family.""" + try: + target_name = evaluate_name_template(rule.name_template, {**variables, "base": base_name}) + except (TypeError, ValueError) as error: + return _refused_creation( + base_name, FamilyTopology.FLAT, MemberRole.FLAT_MEMBER, FamilyStatus.FAILED, str(error) + ) + return ProspectiveFamilyPlan( + family_id=f"flat:{base_name}", + topology=FamilyTopology.FLAT, + base_name=base_name, + members=(ProspectiveMember(source_name=base_name, target_name=target_name, role=MemberRole.FLAT_MEMBER),), + ) + + +def _flat_creation_plan(rule, variables, base_name): + """Plan the flat sibling family a breakout rule creates on one plain interface.""" + try: + target_names = flat_family_names(rule, variables, base_name) + except (TypeError, ValueError) as error: + return _refused_creation( + base_name, FamilyTopology.FLAT, MemberRole.FLAT_MEMBER, FamilyStatus.FAILED, str(error) + ) + members = tuple( + ProspectiveMember( + source_name=base_name if offset == 0 else None, + target_name=target_name, + role=MemberRole.FLAT_MEMBER, + ) + for offset, target_name in enumerate(target_names) + ) + return ProspectiveFamilyPlan( + family_id=f"flat:{base_name}", + topology=FamilyTopology.FLAT, + base_name=base_name, + members=members, + ) + + +def _structural_refusal(base_name, flat_expansion, taken_names, target_names): # pragma: no cover - see below + """Return why the planned family cannot be built here, or None when nothing refuses it.""" + if flat_expansion: + # Converting one sibling into a parent would strand the others beside the new family. + return FLAT_EXPANSION_REASON + collisions = [name for name in target_names if name != base_name and name in taken_names] + if collisions: + return f"{COLLISION_REASON}: {collisions[0]}" + return None + + +def _modelled_structural_plan(rule, variables, base_name, context): # pragma: no cover - see below + """Plan the channelized family for a NetBox release that can hold it.""" + try: + parent_name, channels = channelized_family_names(rule, base_name, variables) + except (TypeError, ValueError) as error: + return _refused_creation( + base_name, FamilyTopology.CHANNELIZED, MemberRole.PARENT, FamilyStatus.FAILED, str(error) + ) + target_names = (parent_name, *(name for _channel_id, name in channels)) + refusal = _structural_refusal(base_name, context.flat_expansion, context.taken_names, target_names) + if refusal is not None: + return _refused_creation( + base_name, FamilyTopology.CHANNELIZED, MemberRole.PARENT, FamilyStatus.BLOCKED, refusal + ) + members = ( + ProspectiveMember(source_name=base_name, target_name=parent_name, role=MemberRole.PARENT), + *( + ProspectiveMember(source_name=None, target_name=name, role=MemberRole.CHANNEL, channel_id=channel_id) + for channel_id, name in channels + ), + ) + return ProspectiveFamilyPlan( + family_id=f"channelized:{base_name}", + topology=FamilyTopology.CHANNELIZED, + base_name=base_name, + members=members, + ) + + +def _structural_plan(rule, variables, base_name, context): + """Plan the channelized family a rule builds on one plain interface.""" + if not supports_channelization(): + return _refused_creation( + base_name, FamilyTopology.CHANNELIZED, MemberRole.PARENT, FamilyStatus.UNSUPPORTED, UNSUPPORTED_REASON + ) + return _modelled_structural_plan(rule, variables, base_name, context) # pragma: no cover - see above + + +def _plain_plan(rule, variables, base_name, context): + """Plan the family *rule* intends on one plain interface.""" + if rule.channel_count <= 0: + return _simple_plan(rule, variables, base_name) + if rule.breakout_mode == BreakoutModeChoices.CHANNELIZED: + return _structural_plan(rule, variables, base_name, context) + return _flat_creation_plan(rule, variables, base_name) + + +@dataclass(frozen=True, slots=True) +class _CreationContext: + """The module-wide facts every creation plan on one module shares.""" + + taken_names: frozenset + flat_expansion: bool + + +def _creation_context(module, rule, interfaces, plain): + """Read the module-wide facts once, and only where a creation plan can use them.""" + builds_channels = rule.channel_count > 0 and rule.breakout_mode == BreakoutModeChoices.CHANNELIZED + flat_expansion = bool(plain) and builds_channels and supports_channelization() and has_flat_expansion(module) + return _CreationContext( + taken_names=frozenset(interface.name for interface in interfaces), + flat_expansion=flat_expansion, + ) + + +def _channel_suffixes(module, rule, children): + """Return the template channel suffixes, reading the templates only where a plan needs them.""" + if rule.channel_count > 0 or not any(children.values()): + return {} + return template_channel_suffixes(resolved_template_names(module)) # pragma: no cover - channelization only + + +def plan_prospective_families(module, rule, variables, interfaces) -> ProspectiveFamilyPlanSet: + """Return one plan for each family *rule* intends on the described *interfaces*. + + *interfaces* are ``ProspectiveInterface`` values, so a name NetBox has not created yet is + planned exactly like one it has and no row is written. Collision checking covers the names + described here, because a prospective plan knows only the interfaces it was given. + """ + parents, children, plain = _partition(interfaces) + suffixes = _channel_suffixes(module, rule, children) + context = _creation_context(module, rule, interfaces, plain) + plans = [_rename_plan(rule, variables, parent, children[name], suffixes) for name, parent in parents.items()] + plans.extend(_plain_plan(rule, variables, interface.name, context) for interface in plain) + return ProspectiveFamilyPlanSet(module_id=module.pk, plans=tuple(plans)) diff --git a/netbox_interface_name_rules/family/structural.py b/netbox_interface_name_rules/family/structural.py index 3915ac1..89c41b7 100644 --- a/netbox_interface_name_rules/family/structural.py +++ b/netbox_interface_name_rules/family/structural.py @@ -9,7 +9,6 @@ from django.core.exceptions import ValidationError from django.db import IntegrityError, transaction -from ..naming import evaluate_name_template from .capabilities import supports_channelization from .domain import ( FamilyOutcome, @@ -22,6 +21,7 @@ ) from .installed import module_db_alias from .names import COLLISION_REASON, is_name_collision, name_is_taken, reconcile_after_parent_cascade +from .targets import channelized_family_names logger = logging.getLogger(__name__) @@ -30,29 +30,6 @@ MODULE_CHANGED_REASON = "the module's interfaces changed after planning" -def channelized_family_names(rule, base_name, variables): # pragma: no cover - channelization only - """Return ``(parent_name, ((channel_id, name), ...))`` for the family *rule* builds on *base_name*. - - ``{base}`` is the base interface's current name for the parent and every channel; ``{channel}`` - is ``channel_start + channel_id - 1``. A blank parent template leaves the base's name alone. - Takes the name rather than the interface so prediction can reuse it without a row to point at. - """ - family_variables = {**variables, "base": base_name} - parent_name = base_name - if rule.parent_name_template: - parent_name = evaluate_name_template(rule.parent_name_template, family_variables) - channels = tuple( - ( - channel_id, - evaluate_name_template( - rule.name_template, {**family_variables, "channel": str(rule.channel_start + channel_id - 1)} - ), - ) - for channel_id in range(1, rule.channel_count + 1) - ) - return parent_name, channels - - def _flat_expansion(module_type_id, module_id, db_alias) -> bool: # pragma: no cover - channelization only """Return whether the module carries more interfaces than its module type's templates describe.""" templates = InterfaceTemplate.objects.using(db_alias).filter(module_type_id=module_type_id).count() @@ -227,7 +204,13 @@ def _install_family(plan): # pragma: no cover - requires channelization support def execute_structural_family(plan: StructuralFamilyPlan) -> FamilyOutcome: - """Create the planned channelized family, or leave every row exactly as it was.""" + """Create the planned channelized family, or leave every row exactly as it was. + + Only a structural plan names the base row to rewrite, so anything else (a prospective plan + above all) is refused before a single row is locked. + """ + if not isinstance(plan, StructuralFamilyPlan): + raise TypeError(f"{type(plan).__name__} is not an executable family plan") if plan.precondition_status is not None: return _refused(plan, plan.precondition_status, plan.precondition_reason, plan.parent_target_name) return _install_family(plan) # pragma: no cover - requires channelization support diff --git a/netbox_interface_name_rules/family/targets.py b/netbox_interface_name_rules/family/targets.py new file mode 100644 index 0000000..d35d578 --- /dev/null +++ b/netbox_interface_name_rules/family/targets.py @@ -0,0 +1,174 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Compute the names a rule intends for one interface family. + +Every planner names a family through this module, so an installed plan, a prospective plan and a +structural plan cannot spell the same family differently. Nothing here reads or writes a row: the +inputs are names, channel identifiers and the rule. +""" + +from dataclasses import dataclass + +from ..choices import BreakoutModeChoices +from ..naming import evaluate_name_template +from .domain import FamilyStatus + +AMBIGUOUS_SUFFIX_REASON = "channel suffix is ambiguous or unavailable" + + +@dataclass(frozen=True, slots=True) +class FamilyTargets: + """The names a rule intends for one channelized family, and why it may refuse.""" + + parent_name: str + channels: tuple[tuple[str, str], ...] + status: FamilyStatus | None = None + reason: str = "" + + +def child_name_suffix(child_name, parent_name): # pragma: no cover - requires channelization support + """Return the suffix *child_name* adds to *parent_name*, or None when it adds none. + + The first character must be non-alphanumeric so ``et0``/``et01`` is never mistaken for a + family; the punctuation itself is free-form (``:``, ``-``, ``_`` and ``@`` all occur in the + wild), so it is not restricted to a fixed separator. + """ + if not parent_name or not child_name.startswith(parent_name): + return None + suffix = child_name[len(parent_name) :] + if not suffix or suffix[0].isalnum(): + return None + return suffix + + +def template_channel_suffixes(templates): # pragma: no cover - requires channelization support + """Map each channel identifier to the name suffixes the module type's templates give it. + + The suffix comes from the template family itself, so a child that lost its parent's prefix in + an earlier partial rename can still be repaired. A module type with several families may spell + the same channel differently in each (``et0:2`` vs ``sw0.2``), so the suffixes are collected per + channel rather than overwritten: recovery only uses one when every family agrees on it. + """ + parents = {template.pk: template.resolved for template in templates if template.channels is not None} + suffixes: dict[int, set[str]] = {} + for template in templates: + if template.channel_id is None or template.parent_id not in parents: + continue + suffix = child_name_suffix(template.resolved, parents[template.parent_id]) + if suffix is not None: + suffixes.setdefault(template.channel_id, set()).add(suffix) + return suffixes + + +def flat_family_names(rule, variables, base_name): + """Return the names of the flat sibling family that *rule* defines on *base_name*.""" + family_variables = {**variables, "base": base_name} + return tuple( + evaluate_name_template( + rule.name_template, + {**family_variables, "channel": str(rule.channel_start + offset)}, + ) + for offset in range(rule.channel_count) + ) + + +def channelized_family_names(rule, base_name, variables): # pragma: no cover - channelization only + """Return ``(parent_name, ((channel_id, name), ...))`` for the family *rule* builds on *base_name*. + + ``{base}`` is the base interface's current name for the parent and every channel; ``{channel}`` + is ``channel_start + channel_id - 1``. A blank parent template leaves the base's name alone. + Takes the name rather than the interface so prediction can reuse it without a row to point at. + """ + family_variables = {**variables, "base": base_name} + parent_name = base_name + if rule.parent_name_template: + parent_name = evaluate_name_template(rule.parent_name_template, family_variables) + channels = tuple( + ( + channel_id, + evaluate_name_template( + rule.name_template, {**family_variables, "channel": str(rule.channel_start + channel_id - 1)} + ), + ) + for channel_id in range(1, rule.channel_count + 1) + ) + return parent_name, channels + + +def _simple_child_target(child_name, channel_id, parent_name, parent_target, suffixes): # pragma: no cover + """Return a simple rule's child target, or None plus the reason it cannot be derived.""" + suffix = child_name_suffix(child_name, parent_name) + if suffix is None: + candidates = suffixes.get(channel_id, set()) + if len(candidates) == 1: + suffix = next(iter(candidates)) + if suffix is None: + return None, AMBIGUOUS_SUFFIX_REASON + return parent_target + suffix, "" + + +def _failed(parent_name, children, error): # pragma: no cover - requires channelization support + """Return targets that leave the whole family alone because a template could not be evaluated.""" + reason = f"failed to evaluate family targets: {error}" + return FamilyTargets( + parent_name=parent_name, + channels=tuple((child_name, reason) for child_name, _channel_id in children), + status=FamilyStatus.FAILED, + reason=reason, + ) + + +def _breakout_targets(rule, variables, parent_name, parent_channels, children): # pragma: no cover + """Return the names a breakout rule intends for an existing channelized family.""" + if parent_channels != rule.channel_count: + reason = f"installed parent declares {parent_channels} channels but the rule defines {rule.channel_count}" + return FamilyTargets( + parent_name=parent_name, + channels=tuple((child_name, reason) for child_name, _channel_id in children), + status=FamilyStatus.BLOCKED, + reason=reason, + ) + try: + parent_target = parent_name + if rule.breakout_mode == BreakoutModeChoices.CHANNELIZED and rule.parent_name_template: + parent_target = evaluate_name_template(rule.parent_name_template, {**variables, "base": parent_name}) + channels = tuple( + ( + evaluate_name_template( + rule.name_template, + {**variables, "base": parent_name, "channel": str(rule.channel_start + channel_id - 1)}, + ), + "", + ) + for _child_name, channel_id in children + ) + except (TypeError, ValueError) as error: + return _failed(parent_name, children, error) + return FamilyTargets(parent_name=parent_target, channels=channels) + + +def _lockstep_targets(rule, variables, parent_name, children, suffixes): # pragma: no cover + """Return the names a simple rule intends for a family renamed in lockstep with its parent.""" + try: + parent_target = evaluate_name_template(rule.name_template, {**variables, "base": parent_name}) + except (TypeError, ValueError) as error: + return _failed(parent_name, children, error) + channels = tuple( + _simple_child_target(child_name, channel_id, parent_name, parent_target, suffixes) + for child_name, channel_id in children + ) + return FamilyTargets(parent_name=parent_target, channels=channels) + + +def channelized_family_targets( # pragma: no cover - requires channelization support + rule, variables, parent_name, parent_channels, children, suffixes +) -> FamilyTargets: + """Return the names *rule* intends for the channelized family named *parent_name*. + + *children* pairs each channel's current name with its channel identifier, in channel order. + A breakout rule renames the channels it describes; any other rule carries the family along with + its parent, keeping each channel's own suffix. + """ + if rule.channel_count > 0: + return _breakout_targets(rule, variables, parent_name, parent_channels, children) + return _lockstep_targets(rule, variables, parent_name, children, suffixes) diff --git a/netbox_interface_name_rules/tests/test_engine_advanced.py b/netbox_interface_name_rules/tests/test_engine_advanced.py index c48a66e..53b5c66 100644 --- a/netbox_interface_name_rules/tests/test_engine_advanced.py +++ b/netbox_interface_name_rules/tests/test_engine_advanced.py @@ -1003,12 +1003,12 @@ def test_full_clean_exception_skips_interface(self): # --------------------------------------------------------------------------- -# engine.py — _channel_rule_entry ValueError path (lines 618-619) +# engine.py — preview of a breakout rule whose template cannot be evaluated # --------------------------------------------------------------------------- -class EngineChannelRuleEntryValueErrorTest(TestCase): - """Test _channel_rule_entry handles ValueError from template evaluation (lines 618-619).""" +class PreviewTemplateErrorTest(TestCase): + """A breakout rule the preview cannot evaluate reports the error instead of a name.""" @classmethod def setUpTestData(cls): @@ -1023,42 +1023,32 @@ def setUpTestData(cls): cls.device = Device.objects.create(name="chrulex-dev-01", device_type=device_type, role=role, site=site) cls.bay = ModuleBay.objects.get(device=cls.device, name="CRBay 0") - def test_valueerror_in_template_sets_error_name(self): - """_channel_rule_entry stores an ```` placeholder when the template can't be evaluated. - - A template referencing an undefined variable raises ValueError in - evaluate_name_template for real (no mock), so the loop that builds - expected_names catches it and collapses to a single error-placeholder - entry (lines 618-619). The result dict is returned because the - placeholder is not in existing_names. - """ - from netbox_interface_name_rules.engine import _channel_rule_entry - - rule = InterfaceNameRule( + def test_an_unevaluable_template_previews_one_error_placeholder(self): + """An undefined variable raises for real, so the family previews as a single placeholder.""" + rule = InterfaceNameRule.objects.create( module_type=self.module_type, name_template="{base}:{channel}:{undefined_var}", # undefined_var → real ValueError on eval channel_count=2, channel_start=0, ) module = Module.objects.create(device=self.device, module_bay=self.bay, module_type=self.module_type) - iface = Interface.objects.create(device=self.device, module=module, name="Eth0", type="100gbase-x-qsfp28") - variables = {"bay_position": "0", "slot": "0", "sfp_slot": "0"} + Interface.objects.create(device=self.device, module=module, name="Eth0", type="100gbase-x-qsfp28") - result = _channel_rule_entry(rule, module, [iface], variables) + results, total = find_interfaces_for_rule(rule) - # The ValueError collapses expected_names to one "" placeholder. - self.assertIsNotNone(result) - self.assertEqual(len(result["new_names"]), 1) - self.assertTrue(result["new_names"][0].startswith(" +"""Integration tests for prospective (rowless) interface-family plans. + +A prospective plan says what a rule intends for interfaces described by name alone. It is the +planner behind rowless prediction and the interactive preview, and it is never executable: the +same planning rules that installed execution follows, without a row to mutate. +""" + +from unittest import skipIf, skipUnless + +from dcim.models import Interface, InterfaceTemplate, Module +from django.test import SimpleTestCase + +from netbox_interface_name_rules.choices import BreakoutModeChoices +from netbox_interface_name_rules.engine import build_variables, predict_rule_output, supports_channelization +from netbox_interface_name_rules.family import ( + FamilyStatus, + FamilyTopology, + MemberRole, + ProspectiveFamilyPlan, + ProspectiveFamilyPlanSet, + ProspectiveMember, + describe_interfaces, + describe_template_interfaces, + execute_installed_plan_set, + execute_structural_family, + plan_installed_families, + plan_prospective_families, + resolved_template_names, +) +from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.tests.test_breakout_mode import CHANNELIZED, _plain_module_type +from netbox_interface_name_rules.tests.test_channelization import ( + PLAIN_TYPE, + REQUIRES_CHANNELIZATION, + ChannelizationTestCase, + _build_device, + _channelized_module_type, +) + +REQUIRES_NO_CHANNELIZATION = "requires a NetBox that cannot model channelized interfaces (4.6 and older)" + + +def _projection(plan): + """Reduce one plan to the facts installed and prospective planning must agree on.""" + return ( + plan.topology, + tuple(member.target_name for member in plan.members), + plan.precondition_status, + plan.precondition_reason, + ) + + +def _installed_projection(plan): + """Reduce one installed plan to the same facts, reading targets from its snapshots.""" + return ( + plan.topology, + tuple(member.target_name or member.snapshot.name for member in plan.members), + plan.precondition_status, + plan.precondition_reason, + ) + + +class ProspectivePlanSetLookupTest(SimpleTestCase): + """The plan set answers for a name with what its family plan intends for that name.""" + + PLAN = ProspectiveFamilyPlan( + family_id="channelized:et0", + topology=FamilyTopology.CHANNELIZED, + base_name=None, + members=( + ProspectiveMember(source_name="et0", target_name="xe0", role=MemberRole.PARENT), + ProspectiveMember(source_name="et0:1", target_name="xe0:1", role=MemberRole.CHANNEL, channel_id=1), + ), + ) + + def test_a_member_of_an_existing_family_maps_to_its_own_target(self): + plan_set = ProspectiveFamilyPlanSet(module_id=1, plans=(self.PLAN,)) + + self.assertEqual(plan_set.predicted_names("et0"), ("xe0",)) + self.assertEqual(plan_set.predicted_names("et0:1"), ("xe0:1",)) + self.assertEqual(plan_set.predicted_names("et0:2"), ("et0:2",)) + + def test_the_plan_lists_the_names_its_members_carry_now(self): + self.assertEqual(self.PLAN.source_names, ("et0", "et0:1")) + self.assertEqual(self.PLAN.target_names, ("xe0", "xe0:1")) + + +class ProspectivePlanTestCase(ChannelizationTestCase): + """Plan the families a rule intends for a module, from its templates alone.""" + + def _prospective(self, module, bay, rule, names=()): + """Plan the families *rule* intends for the template names of *module*.""" + templates = resolved_template_names(module) + return plan_prospective_families( + module, + rule, + build_variables(bay, device=self.device), + describe_template_interfaces(templates, names), + ) + + +class ProspectiveFlatPlanTest(ProspectivePlanTestCase): + """A flat breakout rule expands one plain name into the sibling family it creates.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspFlat", ["3", "4"]) + cls.module_type = _plain_module_type(manufacturer, "ProspFlat-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{bay_position}:{channel}", + channel_count=4, + channel_start=0, + ) + + def test_a_plain_name_plans_the_flat_family_the_rule_creates(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + + plan_set = self._prospective(module, bay, self.rule) + + self.assertEqual(len(plan_set.plans), 1) + plan = plan_set.plans[0] + self.assertEqual(plan.topology, FamilyTopology.FLAT) + self.assertEqual(plan.base_name, "3") + self.assertEqual( + plan.target_names, + ("xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:2", "xe-0/0/3:3"), + ) + self.assertEqual({member.role for member in plan.members}, {MemberRole.FLAT_MEMBER}) + self.assertEqual(plan_set.predicted_names("3"), plan.target_names) + + def test_a_simple_rule_plans_one_member(self): + rule = InterfaceNameRule(module_type=self.module_type, name_template="et-0/0/{bay_position}") + module, bay = self._install(self.module_type, "4", run_rules=False) + + plan_set = self._prospective(module, bay, rule) + + self.assertEqual([plan.target_names for plan in plan_set.plans], [("et-0/0/4",)]) + self.assertEqual(plan_set.predicted_names("4"), ("et-0/0/4",)) + + def test_an_unevaluable_template_fails_the_plan_and_keeps_the_name(self): + rule = InterfaceNameRule( + module_type=self.module_type, + name_template="xe-{vc_position}/0/{bay_position}", + ) + module, bay = self._install(self.module_type, "4", run_rules=False) + + plan_set = self._prospective(module, bay, rule) + + plan = plan_set.plans[0] + self.assertEqual(plan.precondition_status, FamilyStatus.FAILED) + self.assertEqual(plan.target_names, ("4",)) + self.assertEqual(plan_set.predicted_names("4"), ("4",)) + + def test_a_name_no_plan_claims_predicts_to_itself(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + + plan_set = self._prospective(module, bay, self.rule) + + self.assertEqual(plan_set.predicted_names("unclaimed"), ("unclaimed",)) + + +@skipIf(supports_channelization(), REQUIRES_NO_CHANNELIZATION) +class ProspectiveUnsupportedTopologyTest(ProspectivePlanTestCase): + """A release that cannot model channels plans an explicit unsupported family.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspUnsup", ["3"]) + cls.module_type = _plain_module_type(manufacturer, "ProspUnsup-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{bay_position}:{channel}", + parent_name_template="et-0/0/{bay_position}", + breakout_mode=CHANNELIZED, + channel_count=4, + channel_start=0, + ) + + def test_the_plan_reports_unsupported_and_the_name_is_unchanged(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + + plan_set = self._prospective(module, bay, self.rule) + + plan = plan_set.plans[0] + self.assertEqual(plan.topology, FamilyTopology.CHANNELIZED) + self.assertEqual(plan.precondition_status, FamilyStatus.UNSUPPORTED) + self.assertEqual(plan.target_names, ("3",)) + self.assertEqual(plan_set.predicted_names("3"), ("3",)) + + def test_prediction_leaves_the_name_alone(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + + self.assertEqual(predict_rule_output(module, bay, ["3"]), ["3"]) + + +class ProspectivePlansAreNotExecutableTest(ProspectivePlanTestCase): + """A prospective plan describes intent; the executors refuse to take one.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspExec", ["3"]) + cls.module_type = _plain_module_type(manufacturer, "ProspExec-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{bay_position}:{channel}", + channel_count=2, + channel_start=0, + ) + + def test_the_installed_executor_refuses_a_prospective_plan_set(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + plan_set = self._prospective(module, bay, self.rule) + + with self.assertRaises(TypeError): + execute_installed_plan_set(plan_set) + + self.assertEqual(self._names(module), ["3"]) + + def test_the_structural_executor_refuses_a_prospective_plan(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + plan = self._prospective(module, bay, self.rule).plans[0] + + with self.assertRaises(TypeError): + execute_structural_family(plan) + + self.assertEqual(self._names(module), ["3"]) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class ProspectiveChannelizedPlanTest(ProspectivePlanTestCase): + """A rule on a channelized module type plans the family the templates already describe.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspChan", ["3", "5", "8", "9"]) + cls.breakout_type = _channelized_module_type(manufacturer, "ProspChan-BRK") + cls.incomplete_type = _channelized_module_type(manufacturer, "ProspChan-INC", child_channel_ids=(1, 2, 3)) + cls.mismatch_type = _channelized_module_type(manufacturer, "ProspChan-MM", channels=8) + cls.simple_type = _channelized_module_type( + manufacturer, + "ProspChan-SMP", + child_names={1: "{module}:1", 2: "{module}:2", 3: "{module}:3", 4: "mgmt-chan"}, + ) + for module_type in (cls.breakout_type, cls.incomplete_type, cls.mismatch_type): + InterfaceNameRule.objects.create( + module_type=module_type, + name_template="xe-0/0/{bay_position}:{channel}", + channel_count=4, + channel_start=0, + ) + InterfaceNameRule.objects.create(module_type=cls.simple_type, name_template="et-0/0/{bay_position}") + + def _rule(self, module_type): + return InterfaceNameRule.objects.get(module_type=module_type) + + def test_an_existing_family_is_renamed_in_place(self): + module, bay = self._install(self.breakout_type, "3", run_rules=False) + + plan_set = self._prospective(module, bay, self._rule(self.breakout_type)) + + self.assertEqual(len(plan_set.plans), 1) + plan = plan_set.plans[0] + self.assertEqual(plan.topology, FamilyTopology.CHANNELIZED) + self.assertIsNone(plan.base_name) + self.assertEqual( + plan.target_names, + ("3", "xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:2", "xe-0/0/3:3"), + ) + self.assertEqual(plan_set.predicted_names("3"), ("3",)) + self.assertEqual(plan_set.predicted_names("3:2"), ("xe-0/0/3:1",)) + + def test_an_incomplete_family_stays_channelized(self): + module, bay = self._install(self.incomplete_type, "5", run_rules=False) + + plan_set = self._prospective(module, bay, self._rule(self.incomplete_type)) + + plan = plan_set.plans[0] + self.assertEqual(plan.topology, FamilyTopology.CHANNELIZED) + self.assertIsNone(plan.precondition_status) + self.assertEqual(plan.target_names, ("5", "xe-0/0/5:0", "xe-0/0/5:1", "xe-0/0/5:2")) + + def test_a_channel_count_mismatch_blocks_the_family(self): + module, bay = self._install(self.mismatch_type, "8", run_rules=False) + + plan_set = self._prospective(module, bay, self._rule(self.mismatch_type)) + + plan = plan_set.plans[0] + self.assertEqual(plan.precondition_status, FamilyStatus.BLOCKED) + self.assertIn("8 channels", plan.precondition_reason) + self.assertEqual(plan.target_names, ("8", "8:1", "8:2", "8:3", "8:4")) + + def test_an_ambiguous_channel_suffix_leaves_that_member_alone(self): + module, bay = self._install(self.simple_type, "9", run_rules=False) + + plan_set = self._prospective(module, bay, self._rule(self.simple_type)) + + plan = plan_set.plans[0] + self.assertEqual( + plan.target_names, + ("et-0/0/9", "et-0/0/9:1", "et-0/0/9:2", "et-0/0/9:3", "mgmt-chan"), + ) + stranded = [member for member in plan.members if member.source_name == "mgmt-chan"] + self.assertEqual(stranded[0].reason, "channel suffix is ambiguous or unavailable") + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class ProspectiveStructuralPlanTest(ProspectivePlanTestCase): + """A channelized rule on a plain name plans the family it would build there.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspStruct", ["3", "4"]) + cls.module_type = _plain_module_type(manufacturer, "ProspStruct-QSFP") + cls.collision_type = _plain_module_type(manufacturer, "ProspStruct-COL") + InterfaceTemplate.objects.create(module_type=cls.collision_type, name="et-0/0/{module}", type=PLAIN_TYPE) + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{bay_position}:{channel}", + parent_name_template="et-0/0/{bay_position}", + breakout_mode=CHANNELIZED, + channel_count=4, + channel_start=0, + ) + cls.collision_rule = InterfaceNameRule.objects.create( + module_type=cls.collision_type, + name_template="xe-0/0/{bay_position}:{channel}", + parent_name_template="et-0/0/{bay_position}", + breakout_mode=CHANNELIZED, + channel_count=4, + channel_start=0, + ) + + def test_a_plain_name_plans_the_parent_and_every_channel(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + + plan_set = self._prospective(module, bay, self.rule) + + plan = plan_set.plans[0] + self.assertEqual(plan.topology, FamilyTopology.CHANNELIZED) + self.assertEqual(plan.base_name, "3") + self.assertEqual( + plan.target_names, + ("et-0/0/3", "xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:2", "xe-0/0/3:3"), + ) + self.assertEqual([member.role for member in plan.members][0], MemberRole.PARENT) + self.assertEqual(plan_set.predicted_names("3"), plan.target_names) + + def test_a_planned_name_another_interface_owns_blocks_the_family(self): + """The structural executor refuses a family whose names are taken, so the plan says so first.""" + module, bay = self._install(self.collision_type, "4", run_rules=False) + + plan_set = self._prospective(module, bay, self.collision_rule) + + blocked = [plan for plan in plan_set.plans if plan.base_name == "4"] + self.assertEqual(blocked[0].precondition_status, FamilyStatus.BLOCKED) + self.assertIn("et-0/0/4", blocked[0].precondition_reason) + self.assertEqual(plan_set.predicted_names("4"), ("4",)) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class ProspectiveMatchesInstalledPlanningTest(ProspectivePlanTestCase): + """Equivalent installed and prospective inputs describe the same intended family.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspSame", ["3", "5"]) + cls.breakout_type = _channelized_module_type(manufacturer, "ProspSame-BRK") + cls.mismatch_type = _channelized_module_type(manufacturer, "ProspSame-MM", channels=8) + for module_type in (cls.breakout_type, cls.mismatch_type): + InterfaceNameRule.objects.create( + module_type=module_type, + name_template="xe-0/0/{bay_position}:{channel}", + channel_count=4, + channel_start=0, + ) + + def _compare(self, module_type, position): + """Plan the same module twice, from live rows and from its templates alone.""" + module, bay = self._install(module_type, position, run_rules=False) + rule = InterfaceNameRule.objects.get(module_type=module_type) + variables = build_variables(bay, device=self.device) + installed = plan_installed_families(module, rule, variables) + interfaces = list(Interface.objects.filter(module=module).order_by("pk")) + prospective = plan_prospective_families(module, rule, variables, describe_interfaces(interfaces)) + return installed, prospective + + def test_a_channelized_family_plans_the_same_names_either_way(self): + installed, prospective = self._compare(self.breakout_type, "3") + + self.assertEqual( + [_installed_projection(plan) for plan in installed.plans], + [_projection(plan) for plan in prospective.plans], + ) + + def test_a_blocked_family_gives_the_same_reason_either_way(self): + installed, prospective = self._compare(self.mismatch_type, "5") + + self.assertEqual( + [_installed_projection(plan) for plan in installed.plans], + [_projection(plan) for plan in prospective.plans], + ) + self.assertEqual(prospective.plans[0].precondition_status, FamilyStatus.BLOCKED) + + +class ProspectivePreviewIsNotAppliedTest(ChannelizationTestCase): + """Interactive apply replans from live rows instead of executing an earlier preview.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspReplan", ["3"]) + cls.module_type = _plain_module_type(manufacturer, "ProspReplan-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="et-0/0/{bay_position}", + ) + + def test_a_rename_between_preview_and_apply_is_replanned(self): + from netbox_interface_name_rules.engine import apply_rule_to_existing, find_interfaces_for_rule + + module, _bay = self._install(self.module_type, "3", run_rules=False) + preview, _checked = find_interfaces_for_rule(self.rule) + self.assertEqual(preview[0]["current_name"], "3") + + interface = Interface.objects.get(module=module) + interface.name = "renamed-by-someone-else" + interface.save() + + self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[interface.pk]), 1) + interface.refresh_from_db() + self.assertEqual(interface.name, "et-0/0/3") + + def test_a_previewed_interface_that_disappeared_is_not_recreated(self): + from netbox_interface_name_rules.engine import apply_rule_to_existing, find_interfaces_for_rule + + module, _bay = self._install(self.module_type, "3", run_rules=False) + preview, _checked = find_interfaces_for_rule(self.rule) + previewed_pk = preview[0]["interface"].pk + + Interface.objects.filter(pk=previewed_pk).delete() + + self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[previewed_pk]), 0) + self.assertEqual(Interface.objects.filter(module=module).count(), 0) + + +class ProspectivePlanningIsReadOnlyTest(ChannelizationTestCase): + """Planning a prospective family never writes a row.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspRead", ["3"]) + cls.module_type = _plain_module_type(manufacturer, "ProspRead-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{bay_position}:{channel}", + breakout_mode=BreakoutModeChoices.FLAT, + channel_count=4, + channel_start=0, + ) + + def test_planning_leaves_every_interface_exactly_as_it_was(self): + module, bay = self._install(self.module_type, "3", run_rules=False) + before = list(Interface.objects.filter(module=module).values_list("pk", "name")) + + plan_prospective_families( + module, + self.rule, + build_variables(bay, device=self.device), + describe_template_interfaces(resolved_template_names(module), ["3"]), + ) + + self.assertEqual(list(Interface.objects.filter(module=module).values_list("pk", "name")), before) + self.assertEqual(Module.objects.filter(pk=module.pk).count(), 1) + + +class PreviewComesFromTheFamilyPlanTest(ChannelizationTestCase): + """The interactive preview reports the plan's intended names and writes nothing.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspPrev", ["3"]) + cls.module_type = _plain_module_type(manufacturer, "ProspPrev-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="xe-0/0/{bay_position}:{channel}", + breakout_mode=BreakoutModeChoices.FLAT, + channel_count=4, + channel_start=0, + ) + + def test_the_preview_names_are_the_planned_names(self): + from netbox_interface_name_rules.engine import find_interfaces_for_rule + + module, bay = self._install(self.module_type, "3", run_rules=False) + interfaces = list(Interface.objects.filter(module=module).order_by("pk")) + plan = plan_prospective_families( + module, + self.rule, + build_variables(bay, device=self.device), + describe_interfaces(interfaces), + ).plans[0] + + preview, checked = find_interfaces_for_rule(self.rule) + + self.assertEqual(checked, 1) + self.assertEqual(preview[0]["new_names"], list(plan.target_names)) + self.assertEqual([detail["role"] for detail in preview[0]["name_details"]], ["channel"] * 4) + + def test_the_preview_changes_no_interface(self): + from netbox_interface_name_rules.engine import find_interfaces_for_rule + + module, _bay = self._install(self.module_type, "3", run_rules=False) + before = list(Interface.objects.filter(module=module).values_list("pk", "name")) + + find_interfaces_for_rule(self.rule) + + self.assertEqual(list(Interface.objects.filter(module=module).values_list("pk", "name")), before) From b56981151069288e7410185a565142c5ad2c3cc0 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 17:28:44 +0200 Subject: [PATCH 23/74] fix: classify a prospective channel the way the apply path does The prospective partition treated a channel as a family member only when its parent declared a channel count, so a row carrying a channel_id under a parent that declares none became an independent preview candidate. The apply path classifies purely on channel_id and never processes such a row on its own, so the preview offered a rename for a primary key apply ignores. A channel now belongs to whatever interface it names as its parent, and one whose parent is not described is planned by nothing. Family versus plain is decided by rule shape: a breakout rule renames only a family NetBox models with a channel count, and any other rule carries whatever channels the interface has along with it. The template channel suffixes are also read lazily again. A simple rule over a channelized family loaded them for every module, while the path they replaced read them only when a channel's own name could not yield its suffix, which added two queries per module to the preview scan. Both tests fail against the unfixed code. --- .../family/prospective.py | 78 +++++++++++++------ .../tests/test_prospective_families.py | 76 ++++++++++++++++++ 2 files changed, 129 insertions(+), 25 deletions(-) diff --git a/netbox_interface_name_rules/family/prospective.py b/netbox_interface_name_rules/family/prospective.py index 345e0d4..3ecdd64 100644 --- a/netbox_interface_name_rules/family/prospective.py +++ b/netbox_interface_name_rules/family/prospective.py @@ -58,8 +58,9 @@ def describe_interfaces(interfaces) -> tuple[ProspectiveInterface, ...]: def describe_template_interfaces(templates, names=()) -> tuple[ProspectiveInterface, ...]: """Describe the interfaces a module type's templates produce, plus any extra *names*. - The templates carry the family structure, so a channel keeps its parent and channel identifier - even where no row exists yet. A name no template resolves to is described as a plain interface. + A channel is paired with its parent only where that parent declares a channel count, because a + template family is what the parent's capacity defines. A name no template resolves to is + described as a plain interface. """ parents = {template.pk: template for template in templates if template.channels is not None} described = {} @@ -91,19 +92,32 @@ def describe_module_interfaces(module, names=()) -> tuple[ProspectiveInterface, def _partition(interfaces): - """Split described interfaces into ``(parents, children_by_parent, plain)``.""" - parents = {interface.name: interface for interface in interfaces if interface.channels is not None} - children: dict[str, list] = {name: [] for name in parents} - plain = [] + """Split described interfaces into ``(roots, children_by_parent_name)``. + + A channel is never an independent candidate: it belongs to the interface it names as its + parent, and one whose parent is not described here is planned by nothing at all. + """ + described = {interface.name for interface in interfaces} + roots = [] + children: dict[str, list] = {} for interface in interfaces: - if interface.name in parents: - continue # pragma: no cover - requires channelization support - family = children.get(interface.parent_name) if interface.channel_id is not None else None - if family is None: - plain.append(interface) - else: - family.append(interface) # pragma: no cover - requires channelization support - return parents, children, plain + if interface.channel_id is None: + roots.append(interface) + elif interface.parent_name in described: # pragma: no cover - requires channelization support + children.setdefault(interface.parent_name, []).append(interface) + return roots, children + + +def _is_family_root(rule, interface, children): + """Return whether *interface* owns a family the rule renames as a unit. + + A breakout rule renames only a family NetBox models with a channel count; on anything else it + builds a new family from the interface itself. Any other rule carries whatever channels the + interface has along with it. + """ + if rule.channel_count > 0: + return interface.channels is not None + return bool(children) def _rename_plan(rule, variables, parent, children, suffixes): # pragma: no cover - channelization only @@ -267,11 +281,18 @@ def _creation_context(module, rule, interfaces, plain): ) -def _channel_suffixes(module, rule, children): - """Return the template channel suffixes, reading the templates only where a plan needs them.""" - if rule.channel_count > 0 or not any(children.values()): - return {} - return template_channel_suffixes(resolved_template_names(module)) # pragma: no cover - channelization only +class _TemplateSuffixes: + """The module type's per-channel name suffixes, read only if a channel name needs recovering.""" + + def __init__(self, module): + self._module = module + self._suffixes = None + + def get(self, channel_id, default=None): # pragma: no cover - requires channelization support + """Return the suffixes the templates give *channel_id*, reading them on first use.""" + if self._suffixes is None: + self._suffixes = template_channel_suffixes(resolved_template_names(self._module)) + return self._suffixes.get(channel_id, default) def plan_prospective_families(module, rule, variables, interfaces) -> ProspectiveFamilyPlanSet: @@ -281,9 +302,16 @@ def plan_prospective_families(module, rule, variables, interfaces) -> Prospectiv planned exactly like one it has and no row is written. Collision checking covers the names described here, because a prospective plan knows only the interfaces it was given. """ - parents, children, plain = _partition(interfaces) - suffixes = _channel_suffixes(module, rule, children) - context = _creation_context(module, rule, interfaces, plain) - plans = [_rename_plan(rule, variables, parent, children[name], suffixes) for name, parent in parents.items()] - plans.extend(_plain_plan(rule, variables, interface.name, context) for interface in plain) - return ProspectiveFamilyPlanSet(module_id=module.pk, plans=tuple(plans)) + roots, children = _partition(interfaces) + families = [(root, children.get(root.name, ())) for root in roots] + context = _creation_context( + module, rule, interfaces, [root for root, family in families if not _is_family_root(rule, root, family)] + ) + suffixes = _TemplateSuffixes(module) + plans = tuple( + _rename_plan(rule, variables, root, family, suffixes) + if _is_family_root(rule, root, family) + else _plain_plan(rule, variables, root.name, context) + for root, family in families + ) + return ProspectiveFamilyPlanSet(module_id=module.pk, plans=plans) diff --git a/netbox_interface_name_rules/tests/test_prospective_families.py b/netbox_interface_name_rules/tests/test_prospective_families.py index 4e0375f..0001baf 100644 --- a/netbox_interface_name_rules/tests/test_prospective_families.py +++ b/netbox_interface_name_rules/tests/test_prospective_families.py @@ -32,6 +32,7 @@ from netbox_interface_name_rules.models import InterfaceNameRule from netbox_interface_name_rules.tests.test_breakout_mode import CHANNELIZED, _plain_module_type from netbox_interface_name_rules.tests.test_channelization import ( + CHANNEL_TYPE, PLAIN_TYPE, REQUIRES_CHANNELIZATION, ChannelizationTestCase, @@ -517,3 +518,78 @@ def test_the_preview_changes_no_interface(self): find_interfaces_for_rule(self.rule) self.assertEqual(list(Interface.objects.filter(module=module).values_list("pk", "name")), before) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class PreviewFollowsTheApplyClassificationTest(ChannelizationTestCase): + """A channel row is never an independent candidate, however its parent is modelled.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspClass", ["3"]) + cls.module_type = _plain_module_type(manufacturer, "ProspClass-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="et-0/0/{bay_position}", + ) + + def _family(self): + """Install a module and bind a channel to a parent that declares no channel count.""" + module, _bay = self._install(self.module_type, "3", run_rules=False) + parent = Interface.objects.get(module=module) + child = Interface.objects.create( + device=self.device, module=module, name="3:1", type=CHANNEL_TYPE, parent=parent, channel_id=1 + ) + return module, parent, child + + def test_such_a_channel_is_previewed_with_its_parent_and_never_on_its_own(self): + """The apply path carries such a child along with its parent, so the preview must too.""" + from netbox_interface_name_rules.engine import find_interfaces_for_rule + + _module, parent, _child = self._family() + + preview, checked = find_interfaces_for_rule(self.rule) + + self.assertEqual(checked, 1) + self.assertEqual([entry["interface"].pk for entry in preview], [parent.pk]) + self.assertEqual(preview[0]["new_names"], ["et-0/0/3", "et-0/0/3:1"]) + + def test_applying_to_the_channel_alone_changes_nothing(self): + """A previewed name always belongs to a parent, so selecting the channel is not a candidate.""" + from netbox_interface_name_rules.engine import apply_rule_to_existing + + module, _parent, child = self._family() + + self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[child.pk]), 0) + self.assertEqual(self._names(module), ["3", "3:1"]) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class PreviewReadsNoTemplatesForDerivableSuffixesTest(ChannelizationTestCase): + """A channel whose own name carries its parent's prefix needs no template lookup.""" + + @classmethod + def setUpTestData(cls): + manufacturer, cls.device = _build_device("ProspQuery", ["3"]) + cls.module_type = _channelized_module_type(manufacturer, "ProspQuery-QSFP") + cls.rule = InterfaceNameRule.objects.create( + module_type=cls.module_type, + name_template="et-0/0/{bay_position}", + ) + + def test_previewing_a_channelized_family_reads_no_interface_templates(self): + from django.db import connection + from django.test.utils import CaptureQueriesContext + + from netbox_interface_name_rules.engine import find_interfaces_for_rule + + self._install(self.module_type, "3", run_rules=False) + + with CaptureQueriesContext(connection) as queries: + preview, _checked = find_interfaces_for_rule(self.rule) + + self.assertEqual(len(preview), 1) + template_reads = [ + query["sql"] for query in queries.captured_queries if "dcim_interfacetemplate" in query["sql"] + ] + self.assertEqual(template_reads, []) From 556475b22c715410b18e60e00c938c4d423c420f Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 18:49:01 +0200 Subject: [PATCH 24/74] refactor: apply a rule batch family by family Retroactive apply and virtual-chassis reapplication now plan every family a rule intends on each module and execute each family on its own, through the same locked and revalidated executors installed renaming already uses. `apply_rule_to_existing` returns a `BatchOutcome` and no longer takes a `conflicts` list. The Apply view and the background job read the renamed count and the skipped interfaces from that outcome. A blocked, stale or unnamable family costs the batch only itself. Two new plan kinds complete the executable set the bulk path needs: a `FlatCreationPlan` that expands one plain interface into its sibling family, and a one-member installed plan for a rule that renames an interface which belongs to no family. `family/batch.py` composes them: a module's installed families claim their members first, and each leftover interface is planned as the family the rule would build there, so no interface belongs to two plans. Deliberate behaviour changes: - A module type with several ports and a breakout rule builds and previews one family per port. Before, `_find_channel_base` picked one base per module and the other ports were left out. Two bases that intend the same names still build that family once, through the base the family already names, so completing a half-built family is unchanged. Preview and apply share that choice in `one_family_per_name_set`. - Bulk apply recovers an installed flat family from the module type's templates, so a family whose template name changed is renamed as a family instead of being renamed from its current channel-0 name. - A blocked channelized family reports every member it left unchanged, so the skipped count covers the family rather than only its parent. One batch shares what its modules share: the module rows carry the relations template resolution dereferences, their interfaces are read in one query, and `pinned_template_cache` reads one module type's interface templates once however many modules carry it. `raw_name_matchers` now derives its names from `resolved_template_names`, so the two callers no longer resolve the same templates twice. Measured on the same fixtures before and after (statements per operation): flat breakout first apply 78 to 76 for one module and 76.8 to 73.5 per further module, flat breakout re-apply over eight modules 42 to 27, virtual-chassis reapplication over eight modules 245 to 230. A simple rename costs three more statements per module (a savepoint pair and the row lock) because it now goes through the family executor, which gains it stale-plan rejection and per-family isolation. --- ...009-apply-a-rule-batch-family-by-family.md | 9 + netbox_interface_name_rules/engine.py | 220 ++---- .../family/__init__.py | 23 +- netbox_interface_name_rules/family/batch.py | 185 +++++ netbox_interface_name_rules/family/domain.py | 14 + .../family/execution.py | 4 +- .../family/installed.py | 66 +- .../family/structural.py | 164 ++++- netbox_interface_name_rules/family/targets.py | 36 + .../family/template_names.py | 116 +++- netbox_interface_name_rules/jobs.py | 11 +- netbox_interface_name_rules/signals.py | 33 +- .../tests/test_breakout_mode.py | 2 +- .../tests/test_bulk_families.py | 650 ++++++++++++++++++ .../tests/test_channelization.py | 15 +- .../tests/test_channelized_mode.py | 26 +- .../tests/test_conversion.py | 2 +- .../tests/test_engine_advanced.py | 215 +++--- .../tests/test_prospective_families.py | 6 +- .../tests/test_vc_drift.py | 2 +- netbox_interface_name_rules/views.py | 11 +- 21 files changed, 1415 insertions(+), 395 deletions(-) create mode 100644 docs/adr/0009-apply-a-rule-batch-family-by-family.md create mode 100644 netbox_interface_name_rules/family/batch.py create mode 100644 netbox_interface_name_rules/tests/test_bulk_families.py diff --git a/docs/adr/0009-apply-a-rule-batch-family-by-family.md b/docs/adr/0009-apply-a-rule-batch-family-by-family.md new file mode 100644 index 0000000..355b10d --- /dev/null +++ b/docs/adr/0009-apply-a-rule-batch-family-by-family.md @@ -0,0 +1,9 @@ +--- +status: accepted +--- + +# Apply a rule batch family by family + +Retroactive apply and virtual-chassis reapplication plan every family a rule intends on each module and execute each family on its own. A module's installed families claim their members first; what is left over is planned as the family the rule would build there, so no interface belongs to two plans and two bases that intend one family's names build it once. Execution returns one explicit family result per family, and the Apply view and the background job read their counts and their skips from those results instead of a mutable conflict list. A family that is blocked, stale or unnamable costs the batch only itself: the batch keeps planning and executing the families after it. + +One batch shares what its modules share. The module rows come with the relations template resolution dereferences, their interfaces are read in one query, and one module type's interface templates are read once however many modules carry it. Every rename therefore goes through the locked, revalidated family executor, which costs a savepoint pair and a row lock per family; that price buys stale-plan rejection and per-family isolation on the paths that previously had neither. diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index c9090e7..a2c3b9a 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -506,6 +506,41 @@ def _try_rename_device_family(rule, iface, children, vc_position, device, rename return count +def reapply_module_rules(device): + """Re-apply module rules to every module on *device* after its virtual-chassis position changed. + + The whole device is one batch: its modules match against one enabled-rule snapshot, and one + module type's interface templates are read once however many modules carry it. A module that + fails is logged and left behind, so the rest of the device still follows the new position. + + Returns the number of interfaces renamed across the device's modules. + """ + from dcim.models import Module + + modules = list( + Module.objects.filter(device=device).select_related( + "module_type", + "device__device_type", + "device__platform", + *family_template_names.BAY_CHAIN_RELATIONS, + ) + ) + total = 0 + with pinned_rule_cache(), family_ops.pinned_template_cache(modules): + for module in modules: + if not module.module_bay: + continue + try: + total += apply_interface_name_rules(module, module.module_bay, force_reapply=True) or 0 + except Exception: + logger.exception( + "Failed to re-apply rules for %s in %s after a virtual-chassis change", + module.module_type, + module.module_bay.name, + ) + return total + + def apply_device_interface_rules(device): """Rename device-level interfaces (module=None) when a device joins/changes position in a VC. @@ -589,11 +624,6 @@ def _module_with_bay_chain(module): return family_template_names.module_with_bay_chain(module) -def _raw_matchers(templates, module): - """Delegate raw template resolution while preserving the engine helper.""" - return family_template_names.raw_matchers(templates, module) - - def _raw_name_matchers(module): """Delegate current and historical raw name resolution.""" return family_template_names.raw_name_matchers(module) @@ -971,33 +1001,6 @@ def _apply_rule_to_interface(rule, iface, variables, module, conflicts=None): return count -def _find_channel_base(rule, ifaces, variables): - """Find the best 'base' interface for a channel rule on a single module. - - Prefers an interface whose current name already equals the expected ch=0 name - (i.e. it has already been renamed to channel 0 and is safe to re-process). - Falls back to the first interface (alphabetically) so that on first apply, - the template-created base interface becomes channel 0. - - This ensures apply_rule_to_existing / find_interfaces_for_rule call - _apply_rule_to_interface exactly ONCE per module for channel rules, preventing - duplicate-name IntegrityErrors when channels already exist. - """ - if not ifaces: - return None - for iface in ifaces: - vars_copy = dict(variables) - vars_copy["base"] = iface.name - vars_copy["channel"] = str(rule.channel_start) # ch=0 - try: - ch0_name = evaluate_name_template(rule.name_template, vars_copy) - if iface.name == ch0_name: - return iface - except ValueError: - pass - return ifaces[0] - - def _matching_moduletype_pks(module_type_pattern): """Return PKs of ModuleTypes whose model name matches the given regex pattern. @@ -1127,22 +1130,22 @@ def _plan_root_name(plan) -> str: return plan.base_name if plan.base_name is not None else plan.members[0].source_name -def _preview_plans(rule, plan_set, rows_by_name, variables) -> list: +def _preview_plans(rule, plan_set) -> list: """Return the plans this preview reports. - A breakout rule is applied once per module through one base interface, so a module that carries - no channelized family previews only the family that base would gain. Every other rule previews - each family it names. + A breakout rule on a module that already models channelized families renames those families and + adds none beside them. Anywhere else it builds one family per base, and two bases that intend + the same names are the one family an earlier apply already started, so it is offered once: the + same family the apply path would build. """ if rule.channel_count <= 0: return list(plan_set.plans) installed = [plan for plan in plan_set.plans if plan.base_name is None] if installed: # pragma: no cover - requires a NetBox that models channelization return installed - # Every plan here builds a family out of one base, so the module always has one to choose. - bases = [rows_by_name[plan.base_name] for plan in plan_set.plans if plan.base_name is not None] - base = _find_channel_base(rule, bases, variables) - return [plan for plan in plan_set.plans if plan.base_name == base.name] + creations = [plan for plan in plan_set.plans if plan.base_name is not None] + kept = family_targets.one_family_per_name_set([(plan.base_name, plan.target_names) for plan in creations]) + return [creations[index] for index in kept] def _process_module(rule, module, ifaces, variables, limit, results, module_qs, processed_pks): @@ -1153,7 +1156,7 @@ def _process_module(rule, module, ifaces, variables, limit, results, module_qs, return 0, False rows_by_name = {iface.name: iface for iface in ifaces} existing_names = frozenset(rows_by_name) - for plan in _preview_plans(rule, plan_set, rows_by_name, variables): + for plan in _preview_plans(rule, plan_set): entry = _plan_entry(module, plan, rows_by_name[_plan_root_name(plan)], existing_names) if entry is None: continue @@ -1226,128 +1229,37 @@ def find_interfaces_for_rule(rule, limit=None): return results, total_checked -def _apply_channel_rule_to_module(rule, module, ifaces, variables, id_set, conflicts): - """Apply a channel rule to one module via its base interface; return the rename count. - - On a module whose base is already channelized the rule renames the existing channels, once per - family. Otherwise the rule is processed ONCE per module (not per interface) so existing - channel names are not re-created. An unexpected failure (e.g. a save race) is logged and - skipped so it never aborts the surrounding batch. - """ - bases, children_by_parent = _partition_families(ifaces) - if not bases: - return 0 - families = [base for base in bases if _is_channelized_parent(base)] - if families: # pragma: no cover - requires a NetBox that models channelization - count = 0 - for parent in families: - if id_set is not None and parent.pk not in id_set: - continue - count += _apply_family(rule, parent, children_by_parent.get(parent.pk, ()), variables, module, conflicts) - return count - base_iface = _find_channel_base(rule, bases, variables) - if id_set is not None and base_iface.pk not in id_set: - return 0 - vars_copy = dict(variables) - vars_copy["base"] = base_iface.name - try: - if _is_channelized_rule(rule): - return _apply_channelized_rule(rule, base_iface, variables, module, conflicts) or 0 - return _apply_rule_to_interface(rule, base_iface, vars_copy, module, conflicts=conflicts) - except (ValueError, ValidationError, IntegrityError): - logger.exception( - "Failed to apply channel rule '%s' to module '%s' (id=%s); skipping.", - rule, - module, - module.pk, - ) - return 0 - - -def _apply_family(rule, iface, children, variables, module, conflicts): - """Apply *rule* to one base interface and its channels, logging (never raising) on failure.""" - try: - return _apply_rule_with_family(rule, iface, children, variables, module, conflicts) or 0 - except (ValueError, ValidationError, IntegrityError): - logger.exception( - "Failed to apply rule '%s' to interface '%s' (id=%s); skipping.", - rule, - iface.name, - iface.pk, +def _batch_modules(rule): + """Return the rule's modules with every relation planning and template resolution dereference.""" + return list( + _build_module_qs(rule).select_related( + "module_type", + "device__device_type", + "device__platform", + *family_template_names.BAY_CHAIN_RELATIONS, ) - return 0 - - -def _apply_plain_rule_to_module(rule, module, ifaces, variables, id_set, conflicts): - """Apply a non-channel rule to each selected interface on one module; return the rename count. - - Each base interface is independent: an unexpected failure on one is logged and skipped so the - rest of the module (and batch) still process. Channel subinterfaces are not selectable on - their own — they are renamed only as part of the family whose parent was selected. - """ - bases, children_by_parent = _partition_families(ifaces) - count = 0 - for iface in bases: - if id_set is not None and iface.pk not in id_set: - continue - count += _apply_family(rule, iface, children_by_parent.get(iface.pk, ()), variables, module, conflicts) - return count + ) -def apply_rule_to_existing(rule, limit=None, interface_ids=None, conflicts=None): +def apply_rule_to_existing(rule, limit=None, interface_ids=None) -> family_ops.BatchOutcome: """Apply a rule retroactively to all matching installed modules. - Unlike apply_interface_name_rules(), this does not skip already-renamed - interfaces — it re-evaluates every interface on each matching module. - - For channel rules (channel_count > 0), each module is processed as a single - unit using _find_channel_base() to pick the base interface. Calling - _apply_rule_to_interface for every interface in the module would produce - duplicate-name IntegrityErrors when channel interfaces already exist. + Unlike apply_interface_name_rules(), this does not skip already-renamed interfaces: it plans + every family each matching module carries or would gain, and executes each in its own + transaction, so one blocked family costs the batch only that family. - If *interface_ids* is provided (list/set of Interface PKs), only those - interfaces are processed; all others are skipped. For channel rules the - base interface PK is used as the selector. An empty *interface_ids* - collection returns 0 immediately without touching the database. Selecting a - channelized parent brings its channel subinterfaces along; selecting a channel - subinterface on its own does nothing, because it is not an independent candidate. + If *interface_ids* is provided (list/set of Interface PKs), only the families those interfaces + reach are applied; an empty collection touches the database not at all. Selecting a + channelized parent brings its channel subinterfaces along; selecting a channel subinterface on + its own does nothing, because it is not an independent candidate. If *limit* is set the batch + stops after the module that reached that many changed interfaces. - If *conflicts* is a list, each interface skipped because its target name is - already taken on the device is appended to it (and logged) — letting the - caller report how many renames were dropped. Collisions never raise. - - Returns the number of interfaces renamed/created. + Returns the batch outcome: one explicit family result per family it planned. """ - from dcim.models import Interface - id_set = frozenset(interface_ids) if interface_ids is not None else None - if id_set is not None and not id_set: - return 0 - - if not rule.enabled: - return 0 - - module_qs = _build_module_qs(rule) - - # Batch-load interfaces to avoid N+1 queries in the module loop. - ifaces_by_module = defaultdict(list) - for iface in Interface.objects.filter(module__in=module_qs).order_by("module_id", "name"): - ifaces_by_module[iface.module_id].append(iface) - - count = 0 - for module in module_qs.select_related("module_bay", "module_type", "device", "device__virtual_chassis"): - variables = build_variables(module.module_bay, device=module.device) - ifaces = ifaces_by_module.get(module.pk, []) - - if rule.channel_count > 0: - count += _apply_channel_rule_to_module(rule, module, ifaces, variables, id_set, conflicts) - else: - count += _apply_plain_rule_to_module(rule, module, ifaces, variables, id_set, conflicts) - - if limit is not None and count >= limit: - return count - - return count + if not rule.enabled or (id_set is not None and not id_set): + return family_ops.BatchOutcome(families=()) + return family_ops.apply_rule_to_modules(rule, _batch_modules(rule), selected_pks=id_set, limit=limit) # --------------------------------------------------------------------------- diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py index be69125..57155b5 100644 --- a/netbox_interface_name_rules/family/__init__.py +++ b/netbox_interface_name_rules/family/__init__.py @@ -2,11 +2,13 @@ # Copyright (C) 2025 Marcin Zieba """Plan and execute interface-family operations.""" +from .batch import BatchOutcome, apply_rule_to_modules, execute_family_plan, plan_module_families from .capabilities import supports_channelization from .domain import ( FamilyOutcome, FamilyStatus, FamilyTopology, + FlatCreationPlan, InstalledFamilyPlan, InstalledFamilyPlanSet, InstalledPlanSetOutcome, @@ -20,8 +22,8 @@ ProspectiveMember, StructuralFamilyPlan, ) -from .execution import execute_installed_plan_set -from .installed import module_db_alias, plan_installed_families +from .execution import execute_installed_plan, execute_installed_plan_set +from .installed import module_db_alias, plan_installed_families, plan_interface_rename from .prospective import ( ProspectiveInterface, describe_interfaces, @@ -30,18 +32,22 @@ plan_prospective_families, ) from .structural import ( + execute_flat_family, execute_structural_family, has_flat_expansion, install_channelized_family, + plan_flat_family, plan_structural_family, ) -from .targets import channelized_family_names, template_channel_suffixes -from .template_names import resolved_template_names +from .targets import channelized_family_names, one_family_per_name_set, template_channel_suffixes +from .template_names import pinned_template_cache, resolved_template_names __all__ = ( + "BatchOutcome", "FamilyOutcome", "FamilyStatus", "FamilyTopology", + "FlatCreationPlan", "InstalledFamilyPlan", "InstalledFamilyPlanSet", "InstalledPlanSetOutcome", @@ -55,16 +61,25 @@ "ProspectiveInterface", "ProspectiveMember", "StructuralFamilyPlan", + "apply_rule_to_modules", "channelized_family_names", "describe_interfaces", "describe_module_interfaces", "describe_template_interfaces", + "execute_family_plan", + "execute_flat_family", + "execute_installed_plan", "execute_installed_plan_set", "execute_structural_family", "has_flat_expansion", "install_channelized_family", "module_db_alias", + "one_family_per_name_set", + "pinned_template_cache", + "plan_flat_family", "plan_installed_families", + "plan_interface_rename", + "plan_module_families", "plan_prospective_families", "plan_structural_family", "resolved_template_names", diff --git a/netbox_interface_name_rules/family/batch.py b/netbox_interface_name_rules/family/batch.py new file mode 100644 index 0000000..b4f3c40 --- /dev/null +++ b/netbox_interface_name_rules/family/batch.py @@ -0,0 +1,185 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Apply one rule to a batch of installed modules through family plans. + +Every module in the batch is planned family by family and executed family by family, so a module +that cannot take its names costs the batch only that family. The module rows, their interfaces and +each module type's templates are read once for the whole batch. +""" + +import logging +from dataclasses import dataclass + +from dcim.models import Interface +from django.core.exceptions import ValidationError +from django.db import IntegrityError + +from ..naming import build_variables +from .domain import ( + FamilyOutcome, + FamilyStatus, + FamilyTopology, + FlatCreationPlan, + InstalledFamilyPlan, + MemberOutcome, + StructuralFamilyPlan, +) +from .execution import execute_installed_plan +from .installed import module_db_alias, plan_installed_families, plan_interface_rename +from .structural import execute_flat_family, execute_structural_family, plan_flat_family, plan_structural_family +from .targets import builds_channelized_family, intended_family_names, one_family_per_name_set +from .template_names import pinned_template_cache + +logger = logging.getLogger(__name__) + +# A member left with the name it had for a reason the operator can act on. An unsupported topology +# is not one of them: the release cannot hold the family, so nothing was dropped by this batch. +_SKIPPED_STATUSES = (FamilyStatus.BLOCKED, FamilyStatus.STALE, FamilyStatus.FAILED) + +_EXECUTORS = { + InstalledFamilyPlan: execute_installed_plan, + StructuralFamilyPlan: execute_structural_family, + FlatCreationPlan: execute_flat_family, +} + + +@dataclass(frozen=True, slots=True) +class BatchOutcome: + """Every family one batch operation planned, and what happened to it.""" + + families: tuple[FamilyOutcome, ...] + + @property + def changed_count(self) -> int: + """Return the number of interfaces the batch renamed or created.""" + return sum(family.changed_count for family in self.families) + + @property + def skipped_members(self) -> tuple[MemberOutcome, ...]: + """Return every member a collision, a stale plan or a failure left as it was.""" + return tuple( + member for family in self.families for member in family.members if member.status in _SKIPPED_STATUSES + ) + + +def execute_family_plan(plan) -> FamilyOutcome: + """Execute one planned family through the executor its plan kind owns. + + A plan carrying no live rows (a prospective plan above all) has no executor, so a preview + object is refused here rather than locking anything. + """ + executor = _EXECUTORS.get(type(plan)) + if executor is None: + raise TypeError(f"{type(plan).__name__} is not an executable family plan") + return executor(plan) + + +def _is_channel(interface) -> bool: + """Return whether *interface* is bound to a parent channel.""" + return getattr(interface, "channel_id", None) is not None + + +def _creation_plan(module, rule, variables, base): + """Return the plan that builds the family *rule* describes on one plain interface.""" + if builds_channelized_family(rule): + return plan_structural_family(module, rule, variables, base) + return plan_flat_family(module, rule, variables, base) + + +def _creation_plans(module, rule, variables, plain): + """Return one creation plan per family, so two bases of one family never build it twice.""" + candidates = [(base, intended_family_names(rule, variables, base.name)) for base in plain] + kept = one_family_per_name_set([(base.name, target_names) for base, target_names in candidates]) + return [_creation_plan(module, rule, variables, candidates[index][0]) for index in kept] + + +def plan_module_families(module, rule, variables, interfaces): + """Return one executable plan for every family *rule* intends on *module*. + + Every interface belongs to at most one plan: an installed family claims its members first, and + what is left over is planned as the family the rule would build on it. + """ + installed = plan_installed_families(module, rule, variables, interfaces=interfaces) + plans = list(installed.plans) + claimed = installed.member_pks + plain = [interface for interface in interfaces if interface.pk not in claimed and not _is_channel(interface)] + if rule.channel_count <= 0: + plans.extend(plan_interface_rename(module, rule, variables, interface) for interface in plain) + return tuple(plans) + if any(plan.topology == FamilyTopology.CHANNELIZED for plan in installed.plans): + # A breakout rule renames the families the module already models; it never adds one beside them. + return tuple(plans) # pragma: no cover - requires channelization support + plans.extend(_creation_plans(module, rule, variables, plain)) + return tuple(plans) + + +def _selection_pks(plan): + """Return the interface primary keys a selection reaches this family through. + + A channelized family is submitted through its parent alone, because a channel is not an + independent candidate on any path. + """ + if isinstance(plan, InstalledFamilyPlan): + if plan.parent_pk is None: + return plan.member_pks + return (plan.parent_pk,) # pragma: no cover - requires channelization support + return (plan.base.pk,) + + +def _selected(plans, selected_pks): + """Return the plans the operator's interface selection reaches.""" + if selected_pks is None: + return plans + return [plan for plan in plans if selected_pks.intersection(_selection_pks(plan))] + + +def _execute(rule, module, plan): + """Execute one family, logging (never raising) so the batch keeps its later families.""" + try: + return execute_family_plan(plan) + except (ValueError, ValidationError, IntegrityError): + logger.exception( + "Failed to apply rule '%s' to a family on module '%s' (id=%s); skipping.", rule, module, module.pk + ) + return None + + +def _apply_module(rule, module, interfaces, selected_pks): + """Plan and execute every selected family on one module.""" + variables = build_variables(module.module_bay, device=module.device) + plans = _selected(plan_module_families(module, rule, variables, interfaces), selected_pks) + return [outcome for plan in plans if (outcome := _execute(rule, module, plan)) is not None] + + +def _interfaces_by_module(modules): + """Load every interface of the batch in one query, in stable per-module order.""" + by_module: dict[int, list] = {module.pk: [] for module in modules} + rows = ( + Interface.objects.using(module_db_alias(modules[0])) + .filter(module_id__in=list(by_module)) + .order_by("module_id", "name") + ) + for interface in rows: + by_module[interface.module_id].append(interface) + return by_module + + +def apply_rule_to_modules(rule, modules, selected_pks=None, limit=None) -> BatchOutcome: + """Apply *rule* to every module in *modules*, one family at a time. + + *selected_pks* limits the batch to the families those interfaces reach; *limit* stops it after + the module that reached that many changed interfaces. + """ + if not modules: + return BatchOutcome(families=()) + interfaces_by_module = _interfaces_by_module(modules) + families: list[FamilyOutcome] = [] + changed = 0 + with pinned_template_cache(modules): + for module in modules: + outcomes = _apply_module(rule, module, interfaces_by_module[module.pk], selected_pks) + families.extend(outcomes) + changed += sum(outcome.changed_count for outcome in outcomes) + if limit is not None and changed >= limit: + break + return BatchOutcome(families=tuple(families)) diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py index 5d43648..91ebe3a 100644 --- a/netbox_interface_name_rules/family/domain.py +++ b/netbox_interface_name_rules/family/domain.py @@ -136,6 +136,20 @@ def target_names(self) -> tuple[str, ...]: return (self.parent_target_name, *(channel.name for channel in self.channels)) +@dataclass(frozen=True, slots=True) +class FlatCreationPlan: + """An executable plan that expands one plain interface into a flat breakout family.""" + + family_id: str + device_id: int + module_id: int + db_alias: str + base: InterfaceSnapshot + target_names: tuple[str, ...] + precondition_status: FamilyStatus | None = None + precondition_reason: str = "" + + @dataclass(frozen=True, slots=True) class ProspectiveMember: """One member of a family planned from names alone.""" diff --git a/netbox_interface_name_rules/family/execution.py b/netbox_interface_name_rules/family/execution.py index ac7310e..28e2607 100644 --- a/netbox_interface_name_rules/family/execution.py +++ b/netbox_interface_name_rules/family/execution.py @@ -178,7 +178,7 @@ def _stale_outcome(plan: InstalledFamilyPlan) -> FamilyOutcome: ) -def _execute_plan(plan: InstalledFamilyPlan) -> FamilyOutcome: +def execute_installed_plan(plan: InstalledFamilyPlan) -> FamilyOutcome: """Execute one family plan in its own transaction.""" with transaction.atomic(using=plan.db_alias): interfaces = _lock_family(plan) @@ -220,4 +220,4 @@ def execute_installed_plan_set(plan_set: InstalledFamilyPlanSet) -> InstalledPla """ if not isinstance(plan_set, InstalledFamilyPlanSet): raise TypeError(f"{type(plan_set).__name__} is not an executable plan set") - return InstalledPlanSetOutcome(families=tuple(_execute_plan(plan) for plan in plan_set.plans)) + return InstalledPlanSetOutcome(families=tuple(execute_installed_plan(plan) for plan in plan_set.plans)) diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index fe882c5..3a46745 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -11,6 +11,7 @@ from ..choices import BreakoutModeChoices from ..naming import evaluate_name_template from .domain import ( + FamilyStatus, FamilyTopology, InstalledFamilyPlan, InstalledFamilyPlanSet, @@ -119,7 +120,7 @@ def _singly_claimed(candidates): return [candidate for candidate in candidates if all(claims[member.pk] == 1 for member in candidate[2])] -def _flat_candidates(rule, variables, interfaces, templates): +def _flat_candidates(rule, variables, interfaces, catalog): """Return complete, unambiguous flat-family candidates for *module*.""" if rule.channel_count <= 0 or rule.breakout_mode != BreakoutModeChoices.FLAT: return [] @@ -127,6 +128,7 @@ def _flat_candidates(rule, variables, interfaces, templates): by_name = {interface.name: interface for interface in interfaces if _is_plain_interface(interface)} if not by_name: return [] + templates = catalog.get() historical_by_template = { template.pk: _historical_bases(rule, variables, template, interfaces) for template in templates } @@ -200,14 +202,16 @@ def _channelized_plan(module, rule, variables, db_alias, parent, children, suffi ) -def _channelized_plans(module, rule, variables, db_alias, interfaces, templates): # pragma: no cover +def _channelized_plans(module, rule, variables, db_alias, interfaces, catalog): # pragma: no cover """Return one plan for every structurally discovered channelized family.""" parents = [interface for interface in interfaces if _is_channelized_parent(interface)] + if not parents: + return [] children_by_parent: dict[int, list] = {} for interface in interfaces: if _is_channel(interface) and interface.parent_id is not None: children_by_parent.setdefault(interface.parent_id, []).append(interface) - suffixes = template_channel_suffixes(templates) + suffixes = template_channel_suffixes(catalog.get()) plans = [] for parent in parents: children = children_by_parent.get(parent.pk, []) @@ -216,15 +220,59 @@ def _channelized_plans(module, rule, variables, db_alias, interfaces, templates) return plans -def plan_installed_families(module, rule, variables) -> InstalledFamilyPlanSet: - """Return immutable plans for the installed families owned by *module*.""" +class _TemplateNames: + """The module type's resolved template names, read only where a plan needs them.""" + + def __init__(self, module): + self._module = module + self._templates = None + + def get(self): + """Return every resolved template name for the module, loading them once.""" + if self._templates is None: + self._templates = resolved_template_names(self._module) + return self._templates + + +def plan_interface_rename(module, rule, variables, interface) -> InstalledFamilyPlan: + """Return the plan that renames one interface which belongs to no family.""" + status, reason, target_name = None, "", interface.name + try: + target_name = evaluate_name_template(rule.name_template, {**variables, "base": interface.name}) + except (TypeError, ValueError) as error: + status, reason = FamilyStatus.FAILED, f"failed to evaluate the interface name: {error}" + return InstalledFamilyPlan( + family_id=f"flat:{interface.pk}", + topology=FamilyTopology.FLAT, + device_id=module.device_id, + module_id=module.pk, + db_alias=module_db_alias(module), + members=( + PlannedMember( + snapshot=InterfaceSnapshot.from_interface(interface), + target_name=target_name, + role=MemberRole.FLAT_MEMBER, + ), + ), + precondition_status=status, + precondition_reason=reason, + ) + + +def plan_installed_families(module, rule, variables, interfaces=None) -> InstalledFamilyPlanSet: + """Return immutable plans for the installed families owned by *module*. + + A batch that already holds the module's interface rows passes them in, so planning a fleet + reads them once rather than once per module. + """ db_alias = module_db_alias(module) - interfaces = list(Interface.objects.using(db_alias).filter(module_id=module.pk).order_by("pk")) - templates = resolved_template_names(module) - plans = _channelized_plans(module, rule, variables, db_alias, interfaces, templates) + if interfaces is None: + interfaces = list(Interface.objects.using(db_alias).filter(module_id=module.pk).order_by("pk")) + catalog = _TemplateNames(module) + plans = _channelized_plans(module, rule, variables, db_alias, interfaces, catalog) plans.extend( _flat_plan(module, db_alias, target_names, members) - for _base_name, target_names, members in _flat_candidates(rule, variables, interfaces, templates) + for _base_name, target_names, members in _flat_candidates(rule, variables, interfaces, catalog) ) plans.sort(key=lambda plan: plan.member_pks[0]) return InstalledFamilyPlanSet(module_id=module.pk, plans=tuple(plans)) diff --git a/netbox_interface_name_rules/family/structural.py b/netbox_interface_name_rules/family/structural.py index 89c41b7..8dab6fa 100644 --- a/netbox_interface_name_rules/family/structural.py +++ b/netbox_interface_name_rules/family/structural.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright (C) 2025 Marcin Zieba -"""Plan and execute the creation of channelized interface families.""" +"""Plan and execute the creation of interface families.""" import logging @@ -14,6 +14,7 @@ FamilyOutcome, FamilyStatus, FamilyTopology, + FlatCreationPlan, InterfaceSnapshot, MemberOutcome, PlannedChannel, @@ -21,7 +22,7 @@ ) from .installed import module_db_alias from .names import COLLISION_REASON, is_name_collision, name_is_taken, reconcile_after_parent_cascade -from .targets import channelized_family_names +from .targets import channelized_family_names, flat_family_names logger = logging.getLogger(__name__) @@ -109,7 +110,7 @@ def _refused(plan, status, reason, target_name): return _outcome(plan, status, (member,), reason) -def _locked_base(plan): # pragma: no cover - requires channelization support +def _locked_base(plan): """Lock and return the live base row, or None when it is gone.""" return ( Interface.objects.using(plan.db_alias) @@ -219,3 +220,160 @@ def execute_structural_family(plan: StructuralFamilyPlan) -> FamilyOutcome: def install_channelized_family(module, rule, variables, base) -> FamilyOutcome: """Build the channelized family *rule* describes on plain interface *base*.""" return execute_structural_family(plan_structural_family(module, rule, variables, base)) + + +# --------------------------------------------------------------------------- +# Flat breakout families +# --------------------------------------------------------------------------- +# A flat family is N sibling interfaces on one module: the base takes the first name and the rest +# are new rows. Unlike a channelized family there is no parent to cascade from, so a sibling whose +# name is taken is skipped on its own while the family keeps the names it could take. + + +def _flat_creation_plan(module, db_alias, base, target_names, status=None, reason=""): + """Build one immutable flat-creation plan for *base*.""" + return FlatCreationPlan( + family_id=f"flat:{base.pk}", + device_id=module.device_id, + module_id=module.pk, + db_alias=db_alias, + base=InterfaceSnapshot.from_interface(base), + target_names=target_names, + precondition_status=status, + precondition_reason=reason, + ) + + +def plan_flat_family(module, rule, variables, base) -> FlatCreationPlan: + """Return the immutable plan for the flat breakout family *rule* builds on plain interface *base*.""" + db_alias = module_db_alias(module) + try: + target_names = flat_family_names(rule, variables, base.name) + except (TypeError, ValueError) as error: + reason = f"failed to evaluate the family names: {error}" + return _flat_creation_plan(module, db_alias, base, (base.name,), FamilyStatus.FAILED, reason) + return _flat_creation_plan(module, db_alias, base, target_names) + + +def _flat_outcome(plan, status, members, reason=""): + """Build the immutable outcome of one flat family operation.""" + return FamilyOutcome( + family_id=plan.family_id, + topology=FamilyTopology.FLAT, + status=status, + members=members, + reason=reason, + ) + + +def _flat_refused(plan, status, reason): + """Log why the family was not built and return an outcome that touched no row.""" + logger.warning("Cannot build a flat family on interface %r: %s.", plan.base.name, reason) + member = MemberOutcome( + interface_pk=plan.base.pk, + current_name=plan.base.name, + target_name=plan.target_names[0], + status=status, + reason=reason, + ) + return _flat_outcome(plan, status, (member,), reason) + + +def _rename_flat_base(plan, base): + """Give the base the family's first name, or report why it keeps the one it has.""" + target_name = plan.target_names[0] + if target_name == base.name: + return MemberOutcome(base.pk, base.name, target_name, FamilyStatus.UNCHANGED) + if name_is_taken(plan.device_id, target_name, plan.db_alias, exclude_pk=base.pk): + logger.warning( + "Interface name %r already exists on device %s; skipping rename of %r to %r.", + target_name, + plan.device_id, + base.name, + target_name, + ) + return MemberOutcome(base.pk, base.name, target_name, FamilyStatus.BLOCKED, COLLISION_REASON) + previous_name = base.name + base.name = target_name + base.full_clean() + base.save(using=plan.db_alias) + return MemberOutcome(base.pk, previous_name, target_name, FamilyStatus.CHANGED) + + +def _module_rows(plan): + """Return the family names this module already carries, so a re-apply creates nothing twice.""" + return dict( + Interface.objects.using(plan.db_alias) + .filter(module_id=plan.module_id, name__in=plan.target_names) + .values_list("name", "pk") + ) + + +def _create_sibling(plan, base, name): + """Create one sibling interface beside *base*, or report the name it could not take.""" + if name_is_taken(plan.device_id, name, plan.db_alias, exclude_pk=base.pk): + logger.warning( + "Interface name %r already exists on device %s; skipping the sibling of %r.", + name, + plan.device_id, + base.name, + ) + return MemberOutcome(plan.base.pk, plan.base.name, name, FamilyStatus.BLOCKED, COLLISION_REASON) + row = Interface( + device=base.device, + module=base.module, + name=name, + type=base.type, + enabled=base.enabled, + ) + row.full_clean() + row.save(using=plan.db_alias) + return MemberOutcome(row.pk, name, name, FamilyStatus.CHANGED) + + +def _build_flat_family(plan, base): + """Name the base and create every sibling the module still lacks.""" + members = [_rename_flat_base(plan, base)] + installed = _module_rows(plan) + for name in plan.target_names[1:]: + if name in installed: + members.append(MemberOutcome(installed[name], name, name, FamilyStatus.UNCHANGED)) + continue + members.append(_create_sibling(plan, base, name)) + return tuple(members) + + +def _install_flat_family(plan): + """Build the whole family in one transaction, or write nothing at all.""" + try: + with transaction.atomic(using=plan.db_alias): + base = _locked_base(plan) + if base is None or InterfaceSnapshot.from_interface(base) != plan.base: + return _flat_refused(plan, FamilyStatus.STALE, STALE_REASON) + members = _build_flat_family(plan, base) + except ValidationError as error: + return _flat_refused(plan, FamilyStatus.BLOCKED, " ".join(error.messages)) + except IntegrityError as error: + if not is_name_collision(error): + raise + return _flat_refused(plan, FamilyStatus.BLOCKED, COLLISION_REASON) + return _flat_outcome(plan, _flat_status(members), members) + + +def _flat_status(members): + """Summarize member outcomes without hiding partial success.""" + statuses = {member.status for member in members} + if FamilyStatus.CHANGED in statuses: + return FamilyStatus.CHANGED + if FamilyStatus.BLOCKED in statuses: + return FamilyStatus.BLOCKED + return FamilyStatus.UNCHANGED + + +def execute_flat_family(plan: FlatCreationPlan) -> FamilyOutcome: + """Build the planned flat breakout family, or leave every row exactly as it was.""" + if not isinstance(plan, FlatCreationPlan): + raise TypeError(f"{type(plan).__name__} is not an executable family plan") + if plan.precondition_status is not None: + return _flat_refused(plan, plan.precondition_status, plan.precondition_reason) + return _install_flat_family(plan) diff --git a/netbox_interface_name_rules/family/targets.py b/netbox_interface_name_rules/family/targets.py index d35d578..8eefa72 100644 --- a/netbox_interface_name_rules/family/targets.py +++ b/netbox_interface_name_rules/family/targets.py @@ -60,6 +60,27 @@ def template_channel_suffixes(templates): # pragma: no cover - requires channel return suffixes +def builds_channelized_family(rule) -> bool: + """Return whether *rule* builds a channelized family instead of flat sibling interfaces.""" + return rule.channel_count > 0 and rule.breakout_mode == BreakoutModeChoices.CHANNELIZED + + +def one_family_per_name_set(candidates): + """Return the index of one candidate base per family, in candidate order. + + *candidates* pairs each base name with the names the rule intends for the family built on it. + Two bases that intend the same names describe one family an earlier apply already started, so + only one of them may build it; the base the family already names is preferred, because renaming + it onto itself is the no-op the other base cannot manage. + """ + kept: dict[tuple[str, ...], int] = {} + for index, (base_name, target_names) in enumerate(candidates): + current = kept.get(target_names) + if current is None or (base_name == target_names[0] and candidates[current][0] != target_names[0]): + kept[target_names] = index + return tuple(sorted(kept.values())) + + def flat_family_names(rule, variables, base_name): """Return the names of the flat sibling family that *rule* defines on *base_name*.""" family_variables = {**variables, "base": base_name} @@ -95,6 +116,21 @@ def channelized_family_names(rule, base_name, variables): # pragma: no cover - return parent_name, channels +def intended_family_names(rule, variables, base_name): + """Return every name *rule* intends for the family it builds on *base_name*. + + A base whose names cannot be evaluated is its own family: it names nothing else, so nothing + else can be grouped with it. + """ + try: + if builds_channelized_family(rule): + parent_name, channels = channelized_family_names(rule, base_name, variables) + return (parent_name, *(name for _channel_id, name in channels)) + return flat_family_names(rule, variables, base_name) + except (TypeError, ValueError): + return (base_name,) + + def _simple_child_target(child_name, channel_id, parent_name, parent_target, suffixes): # pragma: no cover """Return a simple rule's child target, or None plus the reason it cannot be derived.""" suffix = child_name_suffix(child_name, parent_name) diff --git a/netbox_interface_name_rules/family/template_names.py b/netbox_interface_name_rules/family/template_names.py index 3362695..c08a4af 100644 --- a/netbox_interface_name_rules/family/template_names.py +++ b/netbox_interface_name_rules/family/template_names.py @@ -2,8 +2,10 @@ # Copyright (C) 2025 Marcin Zieba """Resolve current and historical NetBox interface-template names.""" +import contextlib import copy import re +import threading from collections import namedtuple from dataclasses import dataclass from re import Pattern @@ -89,30 +91,84 @@ def mark(match): return _compile_pattern(pattern) +# One batch of modules shares its module chains, template rows and resolved names, thread-locally. +_pin = threading.local() + + +@contextlib.contextmanager +def pinned_template_cache(modules=()): + """Share resolved interface templates across every module in one batch. + + Each module in *modules* must already carry ``BAY_CHAIN_RELATIONS``, so its templates resolve + without a refetch. Modules the block meets later are chained and cached on first use, and one + module type's template rows are read once. Nested blocks share the outermost cache. + """ + depth = getattr(_pin, "depth", 0) + _pin.depth = depth + 1 + if depth == 0: + _pin.chained = {} + _pin.templates = {} + _pin.resolved = {} + _pin.chained.update({module.pk: module for module in modules}) + try: + yield + finally: + _pin.depth -= 1 + if _pin.depth == 0: + for attr in ("chained", "templates", "resolved"): + _pin.__dict__.pop(attr, None) + + def module_with_bay_chain(module): """Re-fetch *module* with every relation template name resolution uses.""" - return Module.objects.select_related(*BAY_CHAIN_RELATIONS).get(pk=module.pk) + chained = getattr(_pin, "chained", None) + if chained is None: + return Module.objects.select_related(*BAY_CHAIN_RELATIONS).get(pk=module.pk) + if module.pk not in chained: + chained[module.pk] = Module.objects.select_related(*BAY_CHAIN_RELATIONS).get(pk=module.pk) + return chained[module.pk] + + +def _interface_templates(module_type_id): + """Return one module type's interface templates in primary-key order.""" + templates = getattr(_pin, "templates", None) + if templates is None: + return list(InterfaceTemplate.objects.filter(module_type_id=module_type_id).order_by("pk")) + if module_type_id not in templates: + templates[module_type_id] = list(InterfaceTemplate.objects.filter(module_type_id=module_type_id).order_by("pk")) + return templates[module_type_id] + + +def resolve_templates(templates, module) -> tuple[ResolvedTemplateName, ...]: + """Resolve already-loaded interface templates against *module*.""" + token_re = vc_position_re() + return tuple( + ResolvedTemplateName( + pk=template.pk, + template_name=template.name, + resolved=template.resolve_name(module), + historical_pattern=None if token_re is None else _historical_pattern(template, module, token_re), + parent_id=getattr(template, "parent_id", None), + channel_id=getattr(template, "channel_id", None), + channels=getattr(template, "channels", None), + ) + for template in templates + ) -def raw_matchers(templates, module): - """Resolve templates into current names and historical token matchers.""" - token_re = vc_position_re() - names = set() - matchers = [] - for template in templates: - resolved = template.resolve_name(module) - names.add(resolved) - pattern = None if token_re is None else _historical_pattern(template, module, token_re) - if pattern is not None: - matchers.append(RawMatcher(template.name, resolved, pattern)) # pragma: no cover - token templates only - return RawNames(names, matchers) +def raw_names_from(templates) -> RawNames: + """Return the current names and historical matchers of already-resolved templates.""" + matchers = [ + RawMatcher(template.template_name, template.resolved, template.historical_pattern) + for template in templates + if template.historical_pattern is not None # pragma: no cover - token templates only + ] + return RawNames({template.resolved for template in templates}, matchers) def raw_name_matchers(module): """Return current and historical raw template names for *module*.""" - module = module_with_bay_chain(module) - templates = InterfaceTemplate.objects.filter(module_type_id=module.module_type_id) - return raw_matchers(templates, module) + return raw_names_from(resolved_template_names(module)) def raw_name_patterns(module): @@ -125,23 +181,19 @@ def raw_names_by_module(modules): # pragma: no cover - only the channel convers by_module_type = {} for template in InterfaceTemplate.objects.filter(module_type_id__in={module.module_type_id for module in modules}): by_module_type.setdefault(template.module_type_id, []).append(template) - return {module.pk: raw_matchers(by_module_type.get(module.module_type_id, ()), module) for module in modules} + return { + module.pk: raw_names_from(resolve_templates(by_module_type.get(module.module_type_id, ()), module)) + for module in modules + } def resolved_template_names(module) -> tuple[ResolvedTemplateName, ...]: """Load and resolve every interface template for *module* once.""" - module = module_with_bay_chain(module) - token_re = vc_position_re() - templates = InterfaceTemplate.objects.filter(module_type_id=module.module_type_id).order_by("pk") - return tuple( - ResolvedTemplateName( - pk=template.pk, - template_name=template.name, - resolved=template.resolve_name(module), - historical_pattern=None if token_re is None else _historical_pattern(template, module, token_re), - parent_id=getattr(template, "parent_id", None), - channel_id=getattr(template, "channel_id", None), - channels=getattr(template, "channels", None), - ) - for template in templates - ) + resolved = getattr(_pin, "resolved", None) + if resolved is not None and module.pk in resolved: + return resolved[module.pk] + chained = module_with_bay_chain(module) + names = resolve_templates(_interface_templates(chained.module_type_id), chained) + if resolved is not None: + resolved[module.pk] = names + return names diff --git a/netbox_interface_name_rules/jobs.py b/netbox_interface_name_rules/jobs.py index a2323d1..256c8d8 100644 --- a/netbox_interface_name_rules/jobs.py +++ b/netbox_interface_name_rules/jobs.py @@ -27,16 +27,17 @@ def run(self, *args, **kwargs): self.logger.warning("InterfaceNameRule with pk=%s does not exist; skipping.", rule_id) return - conflicts = [] try: - count = apply_rule_to_existing(rule, conflicts=conflicts) + outcome = apply_rule_to_existing(rule) except Exception as exc: self.logger.exception("Failed to apply rule '%s': %s", rule_id, exc) raise - self.logger.info("Renamed %d interface(s) using rule '%s'", count, rule) - if conflicts: - self.logger.warning("%d interface(s) skipped — the plugin log names each one.", len(conflicts)) + self.logger.info("Renamed %d interface(s) using rule '%s'", outcome.changed_count, rule) + if outcome.skipped_members: + self.logger.warning( + "%d interface(s) skipped — the plugin log names each one.", len(outcome.skipped_members) + ) class ConvertFlatFamiliesJob(JobRunner): diff --git a/netbox_interface_name_rules/signals.py b/netbox_interface_name_rules/signals.py index 8255850..6a15f45 100644 --- a/netbox_interface_name_rules/signals.py +++ b/netbox_interface_name_rules/signals.py @@ -189,7 +189,7 @@ def _apply_rules_for_device_deferred(device_pk): device_pk: Primary key of the Device to re-apply rules for. """ - from dcim.models import Device, Module + from dcim.models import Device try: device = Device.objects.select_related("virtual_chassis").get(pk=device_pk) @@ -198,35 +198,10 @@ def _apply_rules_for_device_deferred(device_pk): total = 0 - # Re-apply module interface rules - modules = Module.objects.filter(device=device).select_related( - "module_bay", - "module_type", - "device", - "device__device_type", - "device__platform", - "device__virtual_chassis", - ) try: - from .engine import apply_interface_name_rules, pinned_rule_cache - - # Every module on this device matches against the same enabled-rule set, so pin it for the - # loop: the fingerprint is read once when the first lookup primes the cache instead of once - # per module. Safe because the loop only renames interfaces — it never edits rules. - with pinned_rule_cache(): - for module in modules: - module_bay = module.module_bay - if not module_bay: - continue - try: - renamed = apply_interface_name_rules(module, module_bay, force_reapply=True) - total += renamed or 0 - except Exception: - logger.exception( - "Failed to re-apply rules for %s in %s after VC change", - module.module_type, - module_bay.name, - ) + from .engine import reapply_module_rules + + total += reapply_module_rules(device) except Exception: logger.exception("Failed to re-apply module rules for device %s after VC change", device_pk) diff --git a/netbox_interface_name_rules/tests/test_breakout_mode.py b/netbox_interface_name_rules/tests/test_breakout_mode.py index 11b5572..adfcd1f 100644 --- a/netbox_interface_name_rules/tests/test_breakout_mode.py +++ b/netbox_interface_name_rules/tests/test_breakout_mode.py @@ -1063,7 +1063,7 @@ def test_the_bulk_apply_path_skips_it_too(self): with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: built = apply_rule_to_existing(self.rule) - self.assertEqual(built, 0) + self.assertEqual(built.changed_count, 0) self.assertEqual(self._names(module), ["3"]) self.assertTrue(any("channelized" in line.lower() for line in logs.output), logs.output) diff --git a/netbox_interface_name_rules/tests/test_bulk_families.py b/netbox_interface_name_rules/tests/test_bulk_families.py new file mode 100644 index 0000000..8c57f8e --- /dev/null +++ b/netbox_interface_name_rules/tests/test_bulk_families.py @@ -0,0 +1,650 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Integration tests for bulk family application and virtual-chassis reapplication.""" + +from unittest import skipUnless +from unittest.mock import MagicMock, patch + +from dcim.choices import InterfaceTypeChoices +from dcim.models import ( + Device, + DeviceRole, + DeviceType, + Interface, + InterfaceTemplate, + Manufacturer, + Module, + ModuleBay, + ModuleBayTemplate, + ModuleType, + Site, + VirtualChassis, +) +from django.db import connection +from django.test import TestCase +from django.test.utils import CaptureQueriesContext + +from netbox_interface_name_rules import engine as engine_module +from netbox_interface_name_rules.choices import BreakoutModeChoices +from netbox_interface_name_rules.engine import ( + apply_interface_name_rules, + apply_rule_to_existing, + build_variables, + supports_channelization, +) +from netbox_interface_name_rules.family import ( + FamilyStatus, + FamilyTopology, + describe_interfaces, + execute_family_plan, + execute_flat_family, + plan_flat_family, + plan_prospective_families, +) +from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.signals import _apply_rules_for_device_deferred +from netbox_interface_name_rules.tests.test_channelization import _channelized_module_type + +PLAIN_TYPE = InterfaceTypeChoices.TYPE_10GE_SFP_PLUS +REQUIRES_CHANNELIZATION = "requires a NetBox that models channelized interfaces" + + +class BulkTestCase(TestCase): + """One device with eight bays, so a batch can hold eight modules of one type.""" + + POSITIONS = ("1", "2", "3", "4", "5", "6", "7", "8") + + @classmethod + def setUpTestData(cls): + cls.manufacturer = Manufacturer.objects.create(name="BulkMfg", slug="bulk-mfg") + cls.device_type = DeviceType.objects.create( + manufacturer=cls.manufacturer, + model="BULK-DEVICE", + slug="bulk-device", + ) + for position in cls.POSITIONS: + ModuleBayTemplate.objects.create(device_type=cls.device_type, name=f"Bay {position}", position=position) + cls.role = DeviceRole.objects.create(name="BulkRole", slug="bulk-role") + cls.site = Site.objects.create(name="BulkSite", slug="bulk-site") + cls.device = Device.objects.create( + name="bulk-device-01", + device_type=cls.device_type, + role=cls.role, + site=cls.site, + ) + cls.module_type = cls._module_type("BULK-QSFP", ("{module}",)) + + @classmethod + def _module_type(cls, model, template_names): + """Create a module type whose templates resolve to one interface each.""" + module_type = ModuleType.objects.create(manufacturer=cls.manufacturer, model=model, part_number=model) + for name in template_names: + InterfaceTemplate.objects.create(module_type=module_type, name=name, type=PLAIN_TYPE) + return module_type + + def _install(self, position, module_type=None): + """Install one module without letting the deferred install callback run.""" + return Module.objects.create( + device=self.device, + module_bay=ModuleBay.objects.get(device=self.device, name=f"Bay {position}"), + module_type=module_type or self.module_type, + ) + + @staticmethod + def _module_refetches(queries): + """Return the queries that read one whole module row back by primary key.""" + return [ + query["sql"] + for query in queries + if query["sql"].startswith('SELECT "dcim_module"."id"') and 'WHERE "dcim_module"."id" = ' in query["sql"] + ] + + def _names(self, module): + """Return the module's interface names in stable order.""" + return sorted(Interface.objects.filter(module=module).values_list("name", flat=True)) + + @staticmethod + def _flat_rule(module_type, **kwargs): + """Create a flat breakout rule that names four siblings per port.""" + fields = { + "module_type": module_type, + "name_template": "xe-0/0/{bay_position}:{channel}", + "channel_count": 4, + "channel_start": 0, + } + fields.update(kwargs) + return InterfaceNameRule.objects.create(**fields) + + +class BulkApplyBuildsFlatFamiliesTest(BulkTestCase): + """A retroactive apply builds the family a rule describes on every module it matches.""" + + def setUp(self): + self.rule = self._flat_rule(self.module_type) + self.modules = [self._install(position) for position in ("1", "2")] + + def test_the_outcome_reports_every_interface_the_batch_renamed_or_created(self): + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.changed_count, 8) + self.assertEqual(self._names(self.modules[0]), ["xe-0/0/1:0", "xe-0/0/1:1", "xe-0/0/1:2", "xe-0/0/1:3"]) + self.assertEqual(self._names(self.modules[1]), ["xe-0/0/2:0", "xe-0/0/2:1", "xe-0/0/2:2", "xe-0/0/2:3"]) + + def test_the_outcome_carries_one_family_per_module(self): + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(len(outcome.families), 2) + self.assertEqual({family.topology for family in outcome.families}, {FamilyTopology.FLAT}) + self.assertEqual({family.status for family in outcome.families}, {FamilyStatus.CHANGED}) + + def test_no_interface_belongs_to_two_families(self): + outcome = apply_rule_to_existing(self.rule) + + claimed = [member.interface_pk for family in outcome.families for member in family.members] + self.assertEqual(len(claimed), len(set(claimed))) + + def test_applying_the_rule_again_changes_nothing(self): + apply_rule_to_existing(self.rule) + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.changed_count, 0) + self.assertEqual(self._names(self.modules[0]), ["xe-0/0/1:0", "xe-0/0/1:1", "xe-0/0/1:2", "xe-0/0/1:3"]) + + def test_a_family_the_batch_completes_is_reported_once(self): + """A half-built family is finished through the base it already named, not through each sibling.""" + apply_rule_to_existing(self.rule) + Interface.objects.filter(module=self.modules[0], name__in=("xe-0/0/1:2", "xe-0/0/1:3")).delete() + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.changed_count, 2) + self.assertEqual(self._names(self.modules[0]), ["xe-0/0/1:0", "xe-0/0/1:1", "xe-0/0/1:2", "xe-0/0/1:3"]) + + +class BulkApplyRenamesPlainInterfacesTest(BulkTestCase): + """A rule that names no family still reports what it renamed as an explicit outcome.""" + + def setUp(self): + self.rule = InterfaceNameRule.objects.create( + module_type=self.module_type, + name_template="et-{bay_position}/0/0", + ) + self.module = self._install("1") + + def test_a_simple_rename_is_reported_as_a_one_member_family(self): + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.changed_count, 1) + self.assertEqual(self._names(self.module), ["et-1/0/0"]) + self.assertEqual(len(outcome.families), 1) + self.assertEqual(outcome.families[0].members[0].current_name, "1") + self.assertEqual(outcome.families[0].members[0].target_name, "et-1/0/0") + + def test_a_name_another_interface_owns_is_reported_as_a_skip(self): + Interface.objects.create(device=self.device, name="et-1/0/0", type=PLAIN_TYPE) + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.changed_count, 0) + self.assertEqual([member.status for member in outcome.families[0].members], [FamilyStatus.BLOCKED]) + self.assertEqual(len(outcome.skipped_members), 1) + + def test_every_interface_on_the_module_is_renamed(self): + """A simple rule owns no family, so a second port is a second candidate, not a duplicate.""" + module_type = self._module_type("BULK-DUAL", ("{module}/a", "{module}/b")) + module = self._install("2", module_type=module_type) + InterfaceNameRule.objects.create(module_type=module_type, name_template="et-{base}") + + apply_rule_to_existing(InterfaceNameRule.objects.get(module_type=module_type)) + + self.assertEqual(self._names(module), ["et-2/a", "et-2/b"]) + + +class BulkApplySelectionTest(BulkTestCase): + """The Apply view submits interface primary keys, and only their families are applied.""" + + def setUp(self): + self.rule = self._flat_rule(self.module_type) + self.modules = [self._install(position) for position in ("1", "2")] + + def test_selecting_one_base_applies_only_its_family(self): + base = Interface.objects.get(module=self.modules[0]) + + outcome = apply_rule_to_existing(self.rule, interface_ids=[base.pk]) + + self.assertEqual(outcome.changed_count, 4) + self.assertEqual(self._names(self.modules[1]), ["2"]) + + def test_an_empty_selection_touches_nothing(self): + outcome = apply_rule_to_existing(self.rule, interface_ids=[]) + + self.assertEqual(outcome.changed_count, 0) + self.assertEqual(outcome.families, ()) + + def test_the_limit_stops_the_batch_after_the_module_that_reached_it(self): + outcome = apply_rule_to_existing(self.rule, limit=1) + + self.assertEqual(outcome.changed_count, 4) + self.assertEqual(self._names(self.modules[1]), ["2"]) + + def test_a_disabled_rule_applies_nothing(self): + self.rule.enabled = False + self.rule.save() + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.changed_count, 0) + self.assertEqual(outcome.families, ()) + + +class BulkApplyContinuesPastOneBlockedFamilyTest(BulkTestCase): + """One module that cannot take its names must not cost the rest of the batch its own.""" + + def setUp(self): + self.rule = self._flat_rule(self.module_type) + self.modules = [self._install(position) for position in ("1", "2")] + + def test_a_collision_on_the_first_module_leaves_the_second_renamed(self): + Interface.objects.create(device=self.device, name="xe-0/0/1:0", type=PLAIN_TYPE) + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(self._names(self.modules[1]), ["xe-0/0/2:0", "xe-0/0/2:1", "xe-0/0/2:2", "xe-0/0/2:3"]) + self.assertEqual(len(outcome.skipped_members), 1) + self.assertEqual(outcome.skipped_members[0].target_name, "xe-0/0/1:0") + + def test_an_unexpected_family_failure_is_logged_and_the_batch_continues(self): + """The boundary keeps going: one family's failure is visible, never the batch's end.""" + from netbox_interface_name_rules.family import batch + + execute = batch.execute_family_plan + + def fail_on_the_first_module(plan): + if plan.module_id == self.modules[0].pk: + raise ValueError("family boom") + return execute(plan) + + with ( + patch.object(batch, "execute_family_plan", side_effect=fail_on_the_first_module), + self.assertLogs("netbox_interface_name_rules.family.batch", level="ERROR"), + ): + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(self._names(self.modules[0]), ["1"]) + self.assertEqual(self._names(self.modules[1]), ["xe-0/0/2:0", "xe-0/0/2:1", "xe-0/0/2:2", "xe-0/0/2:3"]) + self.assertEqual(outcome.changed_count, 4) + + +class BulkApplyQueryScalingTest(BulkTestCase): + """The Apply button runs this over a fleet, so its cost cannot grow per module or per family.""" + + def setUp(self): + self.rule = self._flat_rule(self.module_type) + + def _apply_queries(self): + """Return the queries one full batch runs.""" + with CaptureQueriesContext(connection) as captured: + apply_rule_to_existing(self.rule) + return captured.captured_queries + + def test_the_batch_reads_the_interface_templates_once_for_the_module_type(self): + for position in ("1", "2", "3", "4"): + self._install(position) + + queries = self._apply_queries() + + template_queries = [query for query in queries if "dcim_interfacetemplate" in query["sql"]] + self.assertEqual(len(template_queries), 1, [query["sql"] for query in queries]) + + def test_the_batch_never_refetches_a_module_it_already_holds(self): + for position in ("1", "2", "3", "4"): + self._install(position) + + queries = self._apply_queries() + + self.assertEqual(self._module_refetches(queries), []) + + def test_eight_same_type_families_cost_no_more_per_module_than_two(self): + for position in ("1", "2"): + self._install(position) + two_modules = len(self._apply_queries()) + for position in ("3", "4", "5", "6", "7", "8"): + self._install(position) + + eight_modules = len(self._apply_queries()) + + per_module = (eight_modules - two_modules) / 6 + self.assertLessEqual(per_module, (two_modules / 2), [per_module, two_modules]) + + +class VirtualChassisReapplyTestCase(BulkTestCase): + """A position change reaches every module-attached family through the plugin's own signals.""" + + def setUp(self): + self.rule = InterfaceNameRule.objects.create( + module_type=self.module_type, + name_template="et-{vc_position}/0/{bay_position}", + ) + self.virtual_chassis = VirtualChassis.objects.create(name="BulkVC") + + def _install_and_name(self, positions): + """Install one module per bay position and give it the name the rule produces now.""" + modules = [] + for position in positions: + module = self._install(position) + apply_interface_name_rules(module, module.module_bay) + modules.append(module) + return modules + + def _join(self, position): + """Move the device to *position* in the virtual chassis through a real save.""" + with self.captureOnCommitCallbacks(execute=True): + self.device.virtual_chassis = self.virtual_chassis + self.device.vc_position = position + self.device.save() + + +class VirtualChassisReapplyTest(VirtualChassisReapplyTestCase): + """Every module family the position names has to move with it.""" + + def test_every_module_family_follows_the_new_position(self): + modules = self._install_and_name(("1", "2", "3")) + + self._join(4) + + for module, position in zip(modules, ("1", "2", "3"), strict=True): + self.assertEqual(self._names(module), [f"et-4/0/{position}"]) + + def test_a_device_level_rule_still_runs_beside_the_module_families(self): + module = self._install_and_name(("1",))[0] + Interface.objects.create(device=self.device, name="mgmt0", type=PLAIN_TYPE) + InterfaceNameRule.objects.create( + name_template="mgmt-{vc_position}", + applies_to_device_interfaces=True, + module_type_pattern="mgmt0", + ) + + self._join(4) + + self.assertEqual(self._names(module), ["et-4/0/1"]) + self.assertTrue(Interface.objects.filter(device=self.device, module=None, name="mgmt-4").exists()) + + def test_one_failing_module_leaves_the_others_reapplied(self): + modules = self._install_and_name(("1", "2")) + real_apply = engine_module.apply_interface_name_rules + + def fail_on_the_first_module(module, module_bay, force_reapply=False): + if module.pk == modules[0].pk: + raise RuntimeError("module boom") + return real_apply(module, module_bay, force_reapply=force_reapply) + + with ( + patch.object(engine_module, "apply_interface_name_rules", side_effect=fail_on_the_first_module), + self.assertLogs("netbox_interface_name_rules", level="ERROR"), + ): + self._join(4) + + self.assertEqual(self._names(modules[0]), ["1"]) + self.assertEqual(self._names(modules[1]), ["et-4/0/2"]) + + +class VirtualChassisReapplyCostTest(VirtualChassisReapplyTestCase): + """A chassis-wide position change must not read one module type's templates once per module.""" + + def _reapply_queries(self, position): + """Return the queries the deferred reapplication runs for one position change.""" + self.device.virtual_chassis = self.virtual_chassis + self.device.vc_position = position + self.device.save() + with CaptureQueriesContext(connection) as captured: + _apply_rules_for_device_deferred(self.device.pk) + return captured.captured_queries + + def test_the_reapply_reads_the_interface_templates_once_for_the_module_type(self): + self._install_and_name(("1", "2", "3", "4")) + + queries = self._reapply_queries(4) + + template_queries = [query for query in queries if "dcim_interfacetemplate" in query["sql"]] + self.assertEqual(len(template_queries), 1, [query["sql"] for query in queries]) + + def test_the_reapply_never_refetches_a_module_it_already_holds(self): + self._install_and_name(("1", "2", "3", "4")) + + queries = self._reapply_queries(4) + + self.assertEqual(self._module_refetches(queries), []) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class BulkApplyChannelizedFamiliesTest(BulkTestCase): + """Eight channelized families in one batch stay eight families, each renamed as a unit.""" + + @classmethod + def setUpTestData(cls): + super().setUpTestData() + cls.channelized_type = _channelized_module_type(cls.manufacturer, "BULK-CHANNELIZED") + + def setUp(self): + self.rule = self._flat_rule(self.channelized_type, name_template="xe-0/0/{bay_position}:{channel}") + + def _install_families(self, positions): + """Install one channelized module per bay position.""" + return [self._install(position, module_type=self.channelized_type) for position in positions] + + def test_every_installed_family_is_renamed_as_one_family(self): + modules = self._install_families(self.POSITIONS) + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(len(outcome.families), len(self.POSITIONS)) + self.assertEqual({family.topology for family in outcome.families}, {FamilyTopology.CHANNELIZED}) + self.assertEqual( + self._names(modules[0]), + ["1", "xe-0/0/1:0", "xe-0/0/1:1", "xe-0/0/1:2", "xe-0/0/1:3"], + ) + + def test_no_channel_belongs_to_two_families(self): + self._install_families(self.POSITIONS) + + outcome = apply_rule_to_existing(self.rule) + + claimed = [member.interface_pk for family in outcome.families for member in family.members] + self.assertEqual(len(claimed), len(set(claimed))) + + def _apply_queries(self, positions): + """Return the queries one batch runs over freshly installed families at *positions*.""" + self._install_families(positions) + with CaptureQueriesContext(connection) as captured: + apply_rule_to_existing(self.rule) + return captured.captured_queries + + def test_the_batch_reads_the_interface_templates_once_for_the_module_type(self): + queries = self._apply_queries(self.POSITIONS) + + template_queries = [query for query in queries if "dcim_interfacetemplate" in query["sql"]] + self.assertEqual(len(template_queries), 1, [query["sql"] for query in queries]) + + def test_eight_channelized_families_cost_no_more_per_module_than_the_first(self): + """Renaming a fleet stays linear in its modules: no family pays for the ones beside it.""" + one_module = len(self._apply_queries(("1",))) + + eight_modules = len(self._apply_queries(self.POSITIONS[1:])) + + per_module = (eight_modules - one_module) / 6 + self.assertLessEqual(per_module, one_module, [per_module, one_module, eight_modules]) + + def test_selecting_a_channel_on_its_own_applies_nothing(self): + modules = self._install_families(("1",)) + channel = Interface.objects.filter(module=modules[0], channel_id__isnull=False).first() + + outcome = apply_rule_to_existing(self.rule, interface_ids=[channel.pk]) + + self.assertEqual(outcome.changed_count, 0) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class BulkApplyBuildsChannelizedFamiliesTest(BulkTestCase): + """A channelized rule builds one family per module, and reports a refusal as one outcome.""" + + def setUp(self): + self.rule = self._flat_rule( + self.module_type, + breakout_mode=BreakoutModeChoices.CHANNELIZED, + parent_name_template="et-0/0/{bay_position}", + ) + self.modules = [self._install(position) for position in ("1", "2")] + + def test_each_module_gains_the_family_the_rule_describes(self): + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(len(outcome.families), 2) + self.assertEqual( + self._names(self.modules[0]), + ["et-0/0/1", "xe-0/0/1:0", "xe-0/0/1:1", "xe-0/0/1:2", "xe-0/0/1:3"], + ) + + def test_a_module_whose_parent_name_is_taken_is_reported_and_the_next_still_builds(self): + Interface.objects.create(device=self.device, name="et-0/0/1", type=PLAIN_TYPE) + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(self._names(self.modules[0]), ["1"]) + self.assertEqual( + self._names(self.modules[1]), + ["et-0/0/2", "xe-0/0/2:0", "xe-0/0/2:1", "xe-0/0/2:2", "xe-0/0/2:3"], + ) + self.assertEqual(len(outcome.skipped_members), 1) + + +class FlatFamilyCreationTest(BulkTestCase): + """The rows a flat breakout family adds, and what stops it from adding them.""" + + def setUp(self): + self.rule = self._flat_rule(self.module_type) + self.module = self._install("1") + self.base = Interface.objects.get(module=self.module) + self.variables = build_variables(self.module.module_bay, device=self.device) + + def _plan(self): + """Plan the flat family the rule builds on this module's only interface.""" + return plan_flat_family(self.module, self.rule, self.variables, self.base) + + def test_a_sibling_whose_name_is_taken_is_skipped_and_the_rest_are_created(self): + """One sibling's collision is that sibling's own; the family keeps the names it can take.""" + Interface.objects.create(device=self.device, name="xe-0/0/1:2", type=PLAIN_TYPE) + + outcome = execute_flat_family(self._plan()) + + self.assertEqual(outcome.status, FamilyStatus.CHANGED) + self.assertEqual(outcome.changed_count, 3) + blocked = [member for member in outcome.members if member.status == FamilyStatus.BLOCKED] + self.assertEqual([member.target_name for member in blocked], ["xe-0/0/1:2"]) + self.assertEqual(self._names(self.module), ["xe-0/0/1:0", "xe-0/0/1:1", "xe-0/0/1:3"]) + + def test_a_base_renamed_after_planning_is_refused_as_stale(self): + """Planning is not a lock: the row it described has to still be the row it finds.""" + plan = self._plan() + Interface.objects.filter(pk=self.base.pk).update(name="moved") + + outcome = execute_flat_family(plan) + + self.assertEqual(outcome.status, FamilyStatus.STALE) + self.assertEqual(self._names(self.module), ["moved"]) + + def test_a_name_netbox_rejects_leaves_the_whole_family_unbuilt(self): + """A name the model refuses is not a partial family: nothing is written at all.""" + self.rule.name_template = "x" * 70 + "{channel}" + self.rule.save() + + outcome = execute_flat_family(self._plan()) + + self.assertEqual(outcome.status, FamilyStatus.BLOCKED) + self.assertEqual(self._names(self.module), ["1"]) + + def test_a_template_the_rule_cannot_evaluate_builds_nothing(self): + """The plan carries the failure, so the executor writes nothing and says why.""" + self.rule.name_template = "{undefined_var}:{channel}" + self.rule.save() + + outcome = execute_flat_family(self._plan()) + + self.assertEqual(outcome.status, FamilyStatus.FAILED) + self.assertEqual(self._names(self.module), ["1"]) + + def test_a_simple_rule_the_engine_cannot_evaluate_is_reported_as_a_failure(self): + """A one-interface rename carries its template failure the same way a family does.""" + rule = InterfaceNameRule.objects.create( + module_type=self._module_type("BULK-SIMPLE-FAIL", ("{module}",)), + name_template="{undefined_var}", + ) + module = self._install("2", module_type=rule.module_type) + + outcome = apply_rule_to_existing(rule) + + self.assertEqual(outcome.changed_count, 0) + self.assertEqual([member.status for member in outcome.skipped_members], [FamilyStatus.FAILED]) + self.assertEqual(self._names(module), ["2"]) + + +class OnlyLivePlansAreExecutableTest(BulkTestCase): + """A plan without live rows cannot reach an executor, whichever door it arrives at.""" + + def setUp(self): + self.rule = self._flat_rule(self.module_type) + self.module = self._install("1") + + def _prospective_plan(self): + """Return one prospective plan for this module: the object an interactive preview holds.""" + plan_set = plan_prospective_families( + self.module, + self.rule, + build_variables(self.module.module_bay, device=self.device), + describe_interfaces(Interface.objects.filter(module=self.module)), + ) + return plan_set.plans[0] + + def test_the_batch_executor_refuses_a_prospective_plan(self): + with self.assertRaises(TypeError): + execute_family_plan(self._prospective_plan()) + + self.assertEqual(self._names(self.module), ["1"]) + + def test_the_flat_executor_refuses_a_prospective_plan(self): + with self.assertRaises(TypeError): + execute_flat_family(self._prospective_plan()) + + self.assertEqual(self._names(self.module), ["1"]) + + +class BulkApplyReportsSkipsToItsCallersTest(BulkTestCase): + """The Apply view and the background job both read their counts from the batch outcome.""" + + def setUp(self): + self.rule = self._flat_rule(self.module_type) + self.module = self._install("1") + Interface.objects.create(device=self.device, name="xe-0/0/1:0", type=PLAIN_TYPE) + for channel in (1, 2, 3): + Interface.objects.create( + device=self.device, module=self.module, name=f"xe-0/0/1:{channel}", type=PLAIN_TYPE + ) + + def test_a_family_that_can_take_no_name_is_reported_blocked(self): + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.changed_count, 0) + self.assertEqual([family.status for family in outcome.families], [FamilyStatus.BLOCKED]) + self.assertEqual([member.target_name for member in outcome.skipped_members], ["xe-0/0/1:0"]) + + def test_the_background_job_warns_about_what_it_skipped(self): + from netbox_interface_name_rules.jobs import ApplyRuleJob + + job = ApplyRuleJob.__new__(ApplyRuleJob) + job.logger = MagicMock() + + job.run(rule_id=self.rule.pk) + + job.logger.info.assert_called_once() + job.logger.warning.assert_called_once() + self.assertEqual(job.logger.warning.call_args.args[1], 1) diff --git a/netbox_interface_name_rules/tests/test_channelization.py b/netbox_interface_name_rules/tests/test_channelization.py index b542479..dba630c 100644 --- a/netbox_interface_name_rules/tests/test_channelization.py +++ b/netbox_interface_name_rules/tests/test_channelization.py @@ -426,12 +426,11 @@ def test_has_applicable_interfaces_ignores_a_renamed_family(self): def test_apply_rule_to_existing_renames_family_without_conflicts(self): """A retroactive apply renames the family through its parent, so no child fights another for a name.""" module, _ = self._install(self.module_type, "3", run_rules=False) - conflicts: list = [] - count = apply_rule_to_existing(self.rule, conflicts=conflicts) + outcome = apply_rule_to_existing(self.rule) - self.assertEqual(count, 6) - self.assertEqual(conflicts, []) + self.assertEqual(outcome.changed_count, 6) + self.assertEqual(outcome.skipped_members, ()) self.assertEqual(self._names(module), ["et-3", "et-3-mgmt", "et-3:1", "et-3:2", "et-3:3", "et-3:4"]) # The rename went through the family, so the structure it hangs on is still intact. parent = self._parent(module) @@ -443,9 +442,9 @@ def test_apply_rule_to_existing_selected_parent_renames_whole_family(self): module, _ = self._install(self.module_type, "3", run_rules=False) parent = self._parent(module) - count = apply_rule_to_existing(self.rule, interface_ids=[parent.pk]) + outcome = apply_rule_to_existing(self.rule, interface_ids=[parent.pk]) - self.assertEqual(count, 5) + self.assertEqual(outcome.changed_count, 5) self.assertEqual(self._names(module), ["3-mgmt", "et-3", "et-3:1", "et-3:2", "et-3:3", "et-3:4"]) def test_apply_rule_to_existing_ignores_a_child_only_selection(self): @@ -453,9 +452,9 @@ def test_apply_rule_to_existing_ignores_a_child_only_selection(self): module, _ = self._install(self.module_type, "3", run_rules=False) child = self._child(module, 1) - count = apply_rule_to_existing(self.rule, interface_ids=[child.pk]) + outcome = apply_rule_to_existing(self.rule, interface_ids=[child.pk]) - self.assertEqual(count, 0) + self.assertEqual(outcome.changed_count, 0) self.assertEqual(self._names(module), ["3", "3-mgmt", "3:1", "3:2", "3:3", "3:4"]) diff --git a/netbox_interface_name_rules/tests/test_channelized_mode.py b/netbox_interface_name_rules/tests/test_channelized_mode.py index 3bc4539..ee4cf5d 100644 --- a/netbox_interface_name_rules/tests/test_channelized_mode.py +++ b/netbox_interface_name_rules/tests/test_channelized_mode.py @@ -275,12 +275,11 @@ def test_the_interactive_apply_records_the_collision(self): """The Apply view counts what it skipped, so the collision is reported, not just logged.""" self._occupy("et-0/0/5") self._install(self.module_type, "5", run_rules=False) - conflicts: list = [] - built = apply_rule_to_existing(self.rule, conflicts=conflicts) + built = apply_rule_to_existing(self.rule) - self.assertEqual(built, 0) - self.assertEqual([conflict["attempted_name"] for conflict in conflicts], ["et-0/0/5"]) + self.assertEqual(built.changed_count, 0) + self.assertEqual([member.target_name for member in built.skipped_members], ["et-0/0/5"]) def test_the_family_is_built_once_the_blocker_is_gone(self): """The skip is a state of the device, not a decision about the rule.""" @@ -357,13 +356,12 @@ def test_the_refused_conversion_is_reported(self): def test_the_bulk_apply_path_refuses_it_too(self): """Both entry points share the preflight, so neither can convert a family behind the other's back.""" self._switch_to_channelized() - conflicts: list = [] - changed = apply_rule_to_existing(self.rule, conflicts=conflicts) + changed = apply_rule_to_existing(self.rule) - self.assertEqual(changed, 0) + self.assertEqual(changed.changed_count, 0) self._assert_still_flat() - self.assertTrue(conflicts, "the skipped family was not reported to the Apply view") + self.assertTrue(changed.skipped_members, "the skipped family was not reported to the Apply view") @skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) @@ -414,14 +412,12 @@ def test_force_apply_builds_no_family_beside_the_flat_one(self): def test_the_bulk_apply_path_refuses_it_too(self): """Both entry points share the refusal, so neither can convert a family behind the other's back.""" - conflicts: list = [] - with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: - changed = apply_rule_to_existing(self.rule, conflicts=conflicts) + changed = apply_rule_to_existing(self.rule) - self.assertEqual(changed, 0) + self.assertEqual(changed.changed_count, 0) self._assert_untouched() - self.assertTrue(conflicts, "the skipped module was not reported to the Apply view") + self.assertTrue(changed.skipped_members, "the skipped module was not reported to the Apply view") self.assertTrue(any(str(self.module) in line for line in logs.output), logs.output) def test_the_preview_offers_no_family_it_would_not_build(self): @@ -550,7 +546,7 @@ def test_retroactive_apply_builds_the_family(self): """Applying a rule to already-installed hardware creates the family the preview promised.""" built = apply_rule_to_existing(self.rule) - self.assertEqual(built, 5) + self.assertEqual(built.changed_count, 5) self.assertEqual(self._names(self.module), self.FAMILY_NAMES) self.assertEqual(self._parent(self.module).channels, 4) @@ -560,7 +556,7 @@ def test_applying_the_selected_port_builds_its_family(self): built = apply_rule_to_existing(self.rule, interface_ids=[base.pk]) - self.assertEqual(built, 5) + self.assertEqual(built.changed_count, 5) self.assertEqual(self._names(self.module), self.FAMILY_NAMES) def test_the_rule_test_view_previews_the_family(self): diff --git a/netbox_interface_name_rules/tests/test_conversion.py b/netbox_interface_name_rules/tests/test_conversion.py index 4eb0191..34771bb 100644 --- a/netbox_interface_name_rules/tests/test_conversion.py +++ b/netbox_interface_name_rules/tests/test_conversion.py @@ -364,7 +364,7 @@ def test_applying_the_rule_afterwards_changes_nothing(self): """The family is native now, so ordinary apply is back to renaming it in place — a no-op here.""" self._convert(self.base) - self.assertEqual(apply_rule_to_existing(self.rule), 0) + self.assertEqual(apply_rule_to_existing(self.rule).changed_count, 0) self.assertEqual(self._names(self.module), self._channelized_names("3")) def test_force_reapply_afterwards_changes_nothing(self): diff --git a/netbox_interface_name_rules/tests/test_engine_advanced.py b/netbox_interface_name_rules/tests/test_engine_advanced.py index 53b5c66..2850f76 100644 --- a/netbox_interface_name_rules/tests/test_engine_advanced.py +++ b/netbox_interface_name_rules/tests/test_engine_advanced.py @@ -1,7 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright (C) 2025 Marcin Zieba """Tests for advanced engine functions: find_interfaces_for_rule, apply_rule_to_existing, -has_applicable_interfaces, _find_channel_base, _matching_moduletype_pks, build_variables edges.""" +has_applicable_interfaces, _matching_moduletype_pks, build_variables edges.""" from unittest.mock import patch @@ -24,7 +24,6 @@ from netbox_interface_name_rules.engine import ( _extract_trailing_digits, - _find_channel_base, _matching_moduletype_pks, apply_interface_name_rules, apply_rule_to_existing, @@ -33,6 +32,7 @@ find_interfaces_for_rule, has_applicable_interfaces, ) +from netbox_interface_name_rules.family import FamilyStatus from netbox_interface_name_rules.models import InterfaceNameRule @@ -255,7 +255,7 @@ def test_empty_interface_ids_returns_zero(self): name_template="et-0/0/{bay_position}", ) result = apply_rule_to_existing(rule, interface_ids=[]) - self.assertEqual(result, 0) + self.assertEqual(result.changed_count, 0) def test_disabled_rule_returns_zero(self): """Disabled rule returns 0 immediately.""" @@ -267,7 +267,7 @@ def test_disabled_rule_returns_zero(self): module = Module.objects.create(device=self.device, module_bay=self.bay0, module_type=self.module_type) iface = Interface.objects.create(device=self.device, module=module, name="0", type="10gbase-x-sfpp") result = apply_rule_to_existing(rule) - self.assertEqual(result, 0) + self.assertEqual(result.changed_count, 0) # Verify interface name is unchanged iface.refresh_from_db() self.assertEqual(iface.name, "0") @@ -282,7 +282,7 @@ def test_renames_matching_interface(self): iface = Interface.objects.create(device=self.device, module=module, name="0", type="10gbase-x-sfpp") result = apply_rule_to_existing(rule) - self.assertEqual(result, 1) + self.assertEqual(result.changed_count, 1) iface.refresh_from_db() self.assertEqual(iface.name, "et-0/0/0") @@ -298,7 +298,7 @@ def test_interface_ids_filter(self): iface1 = Interface.objects.create(device=self.device, module=module1, name="1", type="10gbase-x-sfpp") result = apply_rule_to_existing(rule, interface_ids=[iface0.pk]) - self.assertEqual(result, 1) + self.assertEqual(result.changed_count, 1) iface0.refresh_from_db() iface1.refresh_from_db() self.assertEqual(iface0.name, "et-0/0/0") @@ -316,7 +316,7 @@ def test_channel_rule_applies_once_per_module(self): Interface.objects.create(device=self.device, module=module, name="0", type="10gbase-x-sfpp") result = apply_rule_to_existing(rule) - self.assertEqual(result, 4) + self.assertEqual(result.changed_count, 4) names = sorted(Interface.objects.filter(module=module).values_list("name", flat=True)) self.assertEqual(names, ["xe-0/0/0:0", "xe-0/0/0:1", "xe-0/0/0:2", "xe-0/0/0:3"]) @@ -332,7 +332,7 @@ def test_limit_respected(self): Interface.objects.create(device=self.device, module=module1, name="1", type="10gbase-x-sfpp") result = apply_rule_to_existing(rule, limit=1) - self.assertEqual(result, 1) + self.assertEqual(result.changed_count, 1) def test_regex_rule_applies_to_matching_module_types(self): """Regex rule's module_qs includes all matching module types.""" @@ -345,7 +345,7 @@ def test_regex_rule_applies_to_matching_module_types(self): iface = Interface.objects.create(device=self.device, module=module, name="0", type="100gbase-x-qsfp28") result = apply_rule_to_existing(rule) - self.assertEqual(result, 1) + self.assertEqual(result.changed_count, 1) iface.refresh_from_db() self.assertEqual(iface.name, "Hu0/0/0/0") @@ -412,45 +412,47 @@ def test_invalid_regex_raises_value_error(self): _matching_moduletype_pks("[invalid(") -class FindChannelBaseTest(EngineAdvancedFixtures): - """Test _find_channel_base chooses the right interface for channel rules.""" +class ChannelFamilyBaseTest(EngineAdvancedFixtures): + """Two bases that intend one family's names build it once, through the base that already names it.""" - def test_prefers_already_renamed_ch0_interface(self): - """_find_channel_base prefers an interface already named as channel 0.""" - rule = InterfaceNameRule.objects.create( + def _breakout_rule(self): + """Return a four-channel flat breakout rule whose names ignore the base.""" + return InterfaceNameRule.objects.create( module_type=self.module_type, name_template="xe-0/0/{bay_position}:{channel}", channel_count=4, channel_start=0, ) + + def test_a_half_built_family_is_completed_through_its_own_first_member(self): + """The interface already named channel 0 owns the family; the raw port is left where it is.""" + rule = self._breakout_rule() module = Module.objects.create(device=self.device, module_bay=self.bay0, module_type=self.module_type) - # One interface is already the ch=0 name, another is still raw - iface_ch0 = Interface.objects.create( - device=self.device, module=module, name="xe-0/0/0:0", type="10gbase-x-sfpp" - ) - iface_raw = Interface.objects.create(device=self.device, module=module, name="0", type="10gbase-x-sfpp") + Interface.objects.create(device=self.device, module=module, name="xe-0/0/0:0", type="10gbase-x-sfpp") + Interface.objects.create(device=self.device, module=module, name="0", type="10gbase-x-sfpp") - variables = build_variables(self.bay0) - ifaces = sorted([iface_ch0, iface_raw], key=lambda i: i.name) - result = _find_channel_base(rule, ifaces, variables) - self.assertEqual(result, iface_ch0) + outcome = apply_rule_to_existing(rule) - def test_falls_back_to_first_interface_alphabetically(self): - """When no interface matches ch=0, returns first alphabetically (via caller-sorted list).""" - rule = InterfaceNameRule.objects.create( - module_type=self.module_type, - name_template="xe-0/0/{bay_position}:{channel}", - channel_count=4, - channel_start=0, + self.assertEqual(outcome.changed_count, 3) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["0", "xe-0/0/0:0", "xe-0/0/0:1", "xe-0/0/0:2", "xe-0/0/0:3"], ) + + def test_with_no_member_named_yet_the_first_port_builds_the_family(self): + """Nothing names the family, so its first candidate in module order builds it.""" + rule = self._breakout_rule() module = Module.objects.create(device=self.device, module_bay=self.bay1, module_type=self.module_type) - iface_a = Interface.objects.create(device=self.device, module=module, name="1", type="10gbase-x-sfpp") - iface_b = Interface.objects.create(device=self.device, module=module, name="2", type="10gbase-x-sfpp") + Interface.objects.create(device=self.device, module=module, name="1", type="10gbase-x-sfpp") + Interface.objects.create(device=self.device, module=module, name="2", type="10gbase-x-sfpp") - variables = build_variables(self.bay1) - ifaces = sorted([iface_a, iface_b], key=lambda i: i.name) - result = _find_channel_base(rule, ifaces, variables) - self.assertEqual(result, iface_a) + outcome = apply_rule_to_existing(rule) + + self.assertEqual(outcome.changed_count, 4) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["2", "xe-0/0/1:0", "xe-0/0/1:1", "xe-0/0/1:2", "xe-0/0/1:3"], + ) class BuildVariablesEdgesTest(TestCase): @@ -787,12 +789,12 @@ def test_invalid_regex_rule_returns_false(self): # --------------------------------------------------------------------------- -# engine.py — _find_channel_base ValueError path (lines 535-536) +# engine.py: a breakout rule whose family names cannot be evaluated # --------------------------------------------------------------------------- -class EngineFindChannelBaseValueErrorTest(TestCase): - """Test _find_channel_base skips ValueError from template evaluation (lines 535-536).""" +class BreakoutTemplateValueErrorTest(TestCase): + """A breakout template that cannot be evaluated leaves every candidate base where it is.""" @classmethod def setUpTestData(cls): @@ -807,30 +809,29 @@ def setUpTestData(cls): cls.device = Device.objects.create(name="chanx-dev-01", device_type=cls.device_type, role=role, site=site) cls.bay = ModuleBay.objects.get(device=cls.device, name="CXBay 0") - def test_find_channel_base_valueerror_skips_to_fallback(self): - """_find_channel_base catches a real template ValueError and falls back to ifaces[0]. - - ``{undefined_var}`` is not in the variable dict, so evaluate_name_template - raises ValueError for every interface; _find_channel_base swallows each one - and returns the first interface as the base — no mock required. - """ - from netbox_interface_name_rules.engine import _find_channel_base - - rule = InterfaceNameRule( + def test_an_unevaluable_template_builds_nothing_and_renames_nothing(self): + """``{undefined_var}`` is not a naming variable, so every family reports the failure.""" + rule = InterfaceNameRule.objects.create( module_type=self.module_type, name_template="{undefined_var}:{channel}", # undefined_var → real ValueError on eval channel_count=2, channel_start=0, ) module = Module.objects.create(device=self.device, module_bay=self.bay, module_type=self.module_type) - iface0 = Interface.objects.create(device=self.device, module=module, name="Eth0", type="100gbase-x-qsfp28") - iface1 = Interface.objects.create(device=self.device, module=module, name="Eth1", type="100gbase-x-qsfp28") - ifaces = [iface0, iface1] - variables = {"bay_position": "0", "slot": "0", "sfp_slot": "0"} + Interface.objects.create(device=self.device, module=module, name="Eth0", type="100gbase-x-qsfp28") + Interface.objects.create(device=self.device, module=module, name="Eth1", type="100gbase-x-qsfp28") - result = _find_channel_base(rule, ifaces, variables) - # Falls back to ifaces[0] after ValueError on every interface - self.assertEqual(result, iface0) + outcome = apply_rule_to_existing(rule) + + self.assertEqual(outcome.changed_count, 0) + self.assertEqual( + {member.status for member in outcome.skipped_members}, + {FamilyStatus.FAILED}, + ) + self.assertEqual( + sorted(Interface.objects.filter(module=module).values_list("name", flat=True)), + ["Eth0", "Eth1"], + ) # --------------------------------------------------------------------------- @@ -913,7 +914,7 @@ def test_channel_rule_no_interfaces_skips(self): # Module with NO interfaces Module.objects.create(device=self.device, module_bay=self.bay0, module_type=self.module_type) count = apply_rule_to_existing(rule) - self.assertEqual(count, 0) + self.assertEqual(count.changed_count, 0) def test_channel_rule_id_set_filters_base(self): """Channel rule with id_set skips when base_iface.pk not in id_set (line 753).""" @@ -929,7 +930,7 @@ def test_channel_rule_id_set_filters_base(self): iface = Interface.objects.create(device=self.device, module=module, name="Eth99", type="100gbase-x-qsfp28") # Pass an id_set that does NOT include iface.pk count = apply_rule_to_existing(rule, interface_ids=[iface.pk + 9999]) - self.assertEqual(count, 0) + self.assertEqual(count.changed_count, 0) # Interface should be unchanged iface.refresh_from_db() self.assertEqual(iface.name, "Eth99") @@ -1179,17 +1180,25 @@ def test_parent_bay_position_is_mid_bay_position(self): class ApplyRuleExceptionInLoopTest(EngineAdvancedFixtures): - """Test that exception from _apply_rule_to_interface is caught per-interface. + """A family that fails unexpectedly is logged and skipped; the batch keeps its later families.""" - The first interface is successfully renamed; the second raises an exception - that is swallowed by the loop (lines 773-780). apply_rule_to_existing - must not propagate the exception and must return the count from successful calls. - """ + @staticmethod + def _failing_after_the_first_family(): + """Return an executor that runs the first family for real and fails on every later one.""" + from netbox_interface_name_rules.family import batch + + execute = batch.execute_family_plan + calls = [0] + + def _side_effect(plan): + calls[0] += 1 + if calls[0] >= 2: + raise ValueError("forced failure on the second family") + return execute(plan) - def test_exception_on_second_call_is_swallowed(self): - """Second _apply_rule_to_interface failure is logged; first rename still counted.""" - from netbox_interface_name_rules.engine import _apply_rule_to_interface as _real_fn + return _side_effect + def test_a_failing_plain_rename_leaves_the_earlier_module_renamed(self): rule = InterfaceNameRule.objects.create( module_type=self.module_type, name_template="et-0/0/{bay_position}", @@ -1199,27 +1208,19 @@ def test_exception_on_second_call_is_swallowed(self): iface0 = Interface.objects.create(device=self.device, module=module0, name="0", type="10gbase-x-sfpp") iface1 = Interface.objects.create(device=self.device, module=module1, name="1", type="10gbase-x-sfpp") - call_count = [0] - - def _side_effect(*args, **kwargs): - call_count[0] += 1 - if call_count[0] >= 2: - raise ValueError("forced failure on second call") - return _real_fn(*args, **kwargs) - - with patch("netbox_interface_name_rules.engine._apply_rule_to_interface", side_effect=_side_effect): + with patch( + "netbox_interface_name_rules.family.batch.execute_family_plan", + side_effect=self._failing_after_the_first_family(), + ): count = apply_rule_to_existing(rule) - self.assertEqual(count, 1) + self.assertEqual(count.changed_count, 1) iface0.refresh_from_db() iface1.refresh_from_db() self.assertEqual(iface0.name, "et-0/0/0") # first was renamed self.assertEqual(iface1.name, "1") # second was skipped - def test_exception_on_channel_call_is_swallowed(self): - """Exception inside the channel-rule branch (lines 756-764) is logged and loop continues.""" - from netbox_interface_name_rules.engine import _apply_rule_to_interface as _real_fn - + def test_a_failing_breakout_family_leaves_the_earlier_module_built(self): rule = InterfaceNameRule.objects.create( module_type=self.module_type, name_template="xe-0/0/{bay_position}:{channel}", @@ -1231,21 +1232,16 @@ def test_exception_on_channel_call_is_swallowed(self): iface0 = Interface.objects.create(device=self.device, module=module0, name="0", type="10gbase-x-sfpp") Interface.objects.create(device=self.device, module=module1, name="1", type="10gbase-x-sfpp") - call_count = [0] - - def _side_effect(*args, **kwargs): - call_count[0] += 1 - if call_count[0] >= 2: - raise ValueError("forced channel failure") - return _real_fn(*args, **kwargs) - - with patch("netbox_interface_name_rules.engine._apply_rule_to_interface", side_effect=_side_effect): + with patch( + "netbox_interface_name_rules.family.batch.execute_family_plan", + side_effect=self._failing_after_the_first_family(), + ): count = apply_rule_to_existing(rule) - # First module produced channels; second raised and was skipped - self.assertGreaterEqual(count, 1) + self.assertEqual(count.changed_count, 2) iface0.refresh_from_db() self.assertEqual(iface0.name, "xe-0/0/0:0") + self.assertEqual(Interface.objects.get(module=module1).name, "1") # --------------------------------------------------------------------------- @@ -1499,26 +1495,6 @@ def test_longer_pattern_wins_over_shorter(self): self.assertEqual(matched, rule_long) -# --------------------------------------------------------------------------- -# engine.py — _find_channel_base with empty interface list -# --------------------------------------------------------------------------- - - -class FindChannelBaseEmptyIfacesTest(TestCase): - """Test _find_channel_base handles empty interface list gracefully.""" - - def test_empty_ifaces_returns_none(self): - """_find_channel_base returns None when ifaces is empty.""" - rule = InterfaceNameRule( - name_template="port{bay_position}:{channel}", - channel_start=0, - channel_count=2, - ) - variables = {"bay_position": "0", "bay_position_num": "0", "slot": "0"} - result = _find_channel_base(rule, [], variables) - self.assertIsNone(result) - - # --------------------------------------------------------------------------- # engine.py — find_interfaces_for_rule uses set for processed_pks # --------------------------------------------------------------------------- @@ -1750,7 +1726,7 @@ def test_install_path_skips_collision_without_raising(self): self.assertFalse(rule.tags.filter(slug="potentially-deprecated").exists()) def test_apply_rule_to_existing_records_conflict_and_continues(self): - """A taken target name is recorded in *conflicts* and skipped; the batch keeps going.""" + """A taken target name is reported as a skipped member; the batch keeps going.""" rule = InterfaceNameRule.objects.create( module_type=self.module_type, name_template="et-0/0/{bay_position}", @@ -1759,12 +1735,10 @@ def test_apply_rule_to_existing_records_conflict_and_continues(self): module = Module.objects.create(device=self.device, module_bay=self.bay0, module_type=self.module_type) iface = Interface.objects.create(device=self.device, module=module, name="0", type="10gbase-x-sfpp") - conflicts: list = [] - count = apply_rule_to_existing(rule, conflicts=conflicts) + count = apply_rule_to_existing(rule) - self.assertEqual(count, 0) - self.assertEqual(len(conflicts), 1) - self.assertEqual(conflicts[0]["attempted_name"], "et-0/0/0") + self.assertEqual(count.changed_count, 0) + self.assertEqual([member.target_name for member in count.skipped_members], ["et-0/0/0"]) iface.refresh_from_db() self.assertEqual(iface.name, "0") @@ -1845,8 +1819,7 @@ def test_idempotent_breakout_reapply_records_no_conflict(self): first = apply_interface_name_rules(module, self.bay0) self.assertEqual(first, 4) - conflicts: list = [] - second = apply_rule_to_existing(rule, conflicts=conflicts) - self.assertEqual(second, 0) - self.assertEqual(conflicts, []) # its own existing channels are NOT conflicts + second = apply_rule_to_existing(rule) + self.assertEqual(second.changed_count, 0) + self.assertEqual(second.skipped_members, ()) # its own existing channels are NOT conflicts self.assertEqual(Interface.objects.filter(module=module).count(), 4) diff --git a/netbox_interface_name_rules/tests/test_prospective_families.py b/netbox_interface_name_rules/tests/test_prospective_families.py index 0001baf..71a9e8b 100644 --- a/netbox_interface_name_rules/tests/test_prospective_families.py +++ b/netbox_interface_name_rules/tests/test_prospective_families.py @@ -429,7 +429,7 @@ def test_a_rename_between_preview_and_apply_is_replanned(self): interface.name = "renamed-by-someone-else" interface.save() - self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[interface.pk]), 1) + self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[interface.pk]).changed_count, 1) interface.refresh_from_db() self.assertEqual(interface.name, "et-0/0/3") @@ -442,7 +442,7 @@ def test_a_previewed_interface_that_disappeared_is_not_recreated(self): Interface.objects.filter(pk=previewed_pk).delete() - self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[previewed_pk]), 0) + self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[previewed_pk]).changed_count, 0) self.assertEqual(Interface.objects.filter(module=module).count(), 0) @@ -560,7 +560,7 @@ def test_applying_to_the_channel_alone_changes_nothing(self): module, _parent, child = self._family() - self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[child.pk]), 0) + self.assertEqual(apply_rule_to_existing(self.rule, interface_ids=[child.pk]).changed_count, 0) self.assertEqual(self._names(module), ["3", "3:1"]) diff --git a/netbox_interface_name_rules/tests/test_vc_drift.py b/netbox_interface_name_rules/tests/test_vc_drift.py index 80d3ab8..553036c 100644 --- a/netbox_interface_name_rules/tests/test_vc_drift.py +++ b/netbox_interface_name_rules/tests/test_vc_drift.py @@ -307,7 +307,7 @@ def test_the_apply_page_path_never_consulted_raw_names(self): self._leave() rule = InterfaceNameRule.objects.create(module_type=self.module_type, name_template="et-0/0/{bay_position}") - self.assertEqual(apply_rule_to_existing(rule), 1) + self.assertEqual(apply_rule_to_existing(rule).changed_count, 1) self.assertEqual(self._names(module), ["et-0/0/5"]) diff --git a/netbox_interface_name_rules/views.py b/netbox_interface_name_rules/views.py index 2e26667..77d353c 100644 --- a/netbox_interface_name_rules/views.py +++ b/netbox_interface_name_rules/views.py @@ -542,15 +542,12 @@ def post(self, request, **kwargs): if not interface_ids: messages.warning(request, "No interfaces selected; nothing was applied.") else: - conflicts = [] - count = apply_rule_to_existing( - rule, limit=APPLY_BATCH_LIMIT, interface_ids=interface_ids, conflicts=conflicts - ) - messages.success(request, f"Applied rule: {count} interface(s) renamed.") - if conflicts: + outcome = apply_rule_to_existing(rule, limit=APPLY_BATCH_LIMIT, interface_ids=interface_ids) + messages.success(request, f"Applied rule: {outcome.changed_count} interface(s) renamed.") + if outcome.skipped_members: messages.warning( request, - f"{len(conflicts)} interface(s) skipped — the plugin log names each one.", + f"{len(outcome.skipped_members)} interface(s) skipped — the plugin log names each one.", ) except Exception as e: logger.exception("Failed to apply rule %s: %s", rule, e) From 270a93acba3bf837c000c09323435c079873d6a9 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 19:12:42 +0200 Subject: [PATCH 25/74] fix: keep a family's own channels out of the flat-expansion count The structural guard refuses to build a channelized family on a module that already carries a flat breakout, because turning one sibling into a parent would strand the others. It recognised that expansion by counting the module's interfaces against its module type's templates, and a family's channel rows inflated that count. A module with two ports therefore lost the second one: building the family on the first port added its channels, the count passed the template total, and the second port's plan was refused as stale. A later apply found one installed family and stopped planning creations altogether, so that port could never gain a family. The preview offered it all along, because it reads the same count before any of the rows exist. A channel belongs to the parent that declares it, so the count now covers plain interfaces alone. --- ...009-apply-a-rule-batch-family-by-family.md | 8 +++- .../family/structural.py | 13 ++++--- .../tests/test_bulk_families.py | 39 +++++++++++++++++++ 3 files changed, 53 insertions(+), 7 deletions(-) diff --git a/docs/adr/0009-apply-a-rule-batch-family-by-family.md b/docs/adr/0009-apply-a-rule-batch-family-by-family.md index 355b10d..fd95337 100644 --- a/docs/adr/0009-apply-a-rule-batch-family-by-family.md +++ b/docs/adr/0009-apply-a-rule-batch-family-by-family.md @@ -4,6 +4,10 @@ status: accepted # Apply a rule batch family by family -Retroactive apply and virtual-chassis reapplication plan every family a rule intends on each module and execute each family on its own. A module's installed families claim their members first; what is left over is planned as the family the rule would build there, so no interface belongs to two plans and two bases that intend one family's names build it once. Execution returns one explicit family result per family, and the Apply view and the background job read their counts and their skips from those results instead of a mutable conflict list. A family that is blocked, stale or unnamable costs the batch only itself: the batch keeps planning and executing the families after it. +Retroactive apply plans every family a rule intends on each module and executes each family on its own. A module's installed families claim their members first; what is left over is planned as the family the rule would build there, so no interface belongs to two plans and two bases that intend one family's names build it once. Execution returns one explicit family result per family, and the Apply view and the background job read their counts and their skips from those results instead of a mutable conflict list. A family that is blocked, stale or unnamable costs the batch only itself: the batch keeps planning and executing the families after it. -One batch shares what its modules share. The module rows come with the relations template resolution dereferences, their interfaces are read in one query, and one module type's interface templates are read once however many modules carry it. Every rename therefore goes through the locked, revalidated family executor, which costs a savepoint pair and a row lock per family; that price buys stale-plan rejection and per-family isolation on the paths that previously had neither. +One batch shares what its modules share. The module rows come with the relations template resolution dereferences, and one module type's interface templates are read once however many modules carry it. Retroactive apply also reads every module's interfaces in one query. Virtual-chassis reapplication is a batch of the same kind, but it reaches the families through the installation entry point, so it still reads one module's interfaces at a time and still renames a leftover interface outside the family executor. Contracting that entry point onto the same batch is the remaining step. + +Every rename retroactive apply performs goes through the locked, revalidated family executor, which costs a savepoint pair and a row lock per family. That price buys stale-plan rejection and per-family isolation on a path that had neither. + +A module's plain interface count decides whether an earlier flat breakout already expanded it, because converting one sibling into a family parent would strand the others. A channel belongs to the parent that declares it, so it never counts toward that surplus: counting one would stop a module's second port from gaining a family of its own. diff --git a/netbox_interface_name_rules/family/structural.py b/netbox_interface_name_rules/family/structural.py index 8dab6fa..f6fa858 100644 --- a/netbox_interface_name_rules/family/structural.py +++ b/netbox_interface_name_rules/family/structural.py @@ -32,17 +32,20 @@ def _flat_expansion(module_type_id, module_id, db_alias) -> bool: # pragma: no cover - channelization only - """Return whether the module carries more interfaces than its module type's templates describe.""" + """Return whether the module carries more plain interfaces than its templates describe.""" templates = InterfaceTemplate.objects.using(db_alias).filter(module_type_id=module_type_id).count() - return Interface.objects.using(db_alias).filter(module_id=module_id).count() > templates + plain = Interface.objects.using(db_alias).filter(module_id=module_id, channel_id__isnull=True) + return plain.count() > templates def has_flat_expansion(module) -> bool: # pragma: no cover - requires channelization support - """Return whether *module* carries more interfaces than its module type's templates describe. + """Return whether *module* carries more plain interfaces than its module type's templates describe. A flat breakout leaves N-1 rows beyond the templates, so the surplus is the structural mark of a - family an earlier apply installed. Counting templates rather than their resolved names keeps - two templates that resolve to the same string from reading as one. + family an earlier apply installed. A channel belongs to the parent that declares it, so it is + never part of that surplus: counting one would stop a second port from gaining its own family. + Counting templates rather than their resolved names keeps two templates that resolve to the same + string from reading as one. """ return _flat_expansion(module.module_type_id, module.pk, module_db_alias(module)) diff --git a/netbox_interface_name_rules/tests/test_bulk_families.py b/netbox_interface_name_rules/tests/test_bulk_families.py index 8c57f8e..9fed8d2 100644 --- a/netbox_interface_name_rules/tests/test_bulk_families.py +++ b/netbox_interface_name_rules/tests/test_bulk_families.py @@ -30,6 +30,7 @@ apply_interface_name_rules, apply_rule_to_existing, build_variables, + find_interfaces_for_rule, supports_channelization, ) from netbox_interface_name_rules.family import ( @@ -648,3 +649,41 @@ def test_the_background_job_warns_about_what_it_skipped(self): job.logger.info.assert_called_once() job.logger.warning.assert_called_once() self.assertEqual(job.logger.warning.call_args.args[1], 1) + + +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class BulkApplyBuildsOneFamilyPerPortTest(BulkTestCase): + """Every port a channelized rule names gets its own family, however many the module carries.""" + + @classmethod + def setUpTestData(cls): + super().setUpTestData() + cls.dual_type = cls._module_type("BULK-DUAL-CH", ("{module}/a", "{module}/b")) + + def setUp(self): + self.rule = self._flat_rule( + self.dual_type, + name_template="{base}:{channel}", + parent_name_template="{base}", + breakout_mode=BreakoutModeChoices.CHANNELIZED, + channel_start=1, + ) + self.module = self._install("1", module_type=self.dual_type) + + def test_both_ports_gain_the_family_the_rule_describes(self): + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(outcome.skipped_members, ()) + self.assertEqual( + self._names(self.module), + ["1/a", "1/a:1", "1/a:2", "1/a:3", "1/a:4", "1/b", "1/b:1", "1/b:2", "1/b:3", "1/b:4"], + ) + + def test_the_preview_offers_exactly_the_families_the_apply_builds(self): + previewed, _total = find_interfaces_for_rule(self.rule) + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual([entry["current_name"] for entry in previewed], ["1/a", "1/b"]) + self.assertEqual(len(outcome.families), len(previewed)) + self.assertEqual({family.status for family in outcome.families}, {FamilyStatus.CHANGED}) From 27e772e3f5762c535c91e2613e8e2f108e75106d Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Tue, 25 Aug 2026 23:21:36 +0200 Subject: [PATCH 26/74] test: measure the channelized per-module cost over the modules it adds The divisor was fixed at 6 while the second measurement adds the seven positions after the first, so the reported marginal cost was 7/6 of the real one. Derive it from the positions the run adds. Also pin how an installed family that lost a channel is treated: every surviving channel takes the name its own channel id gives it, so the rule still repairs the family. Blocking incomplete membership would leave those rows on their raw template names for good. --- .../tests/test_bulk_families.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/netbox_interface_name_rules/tests/test_bulk_families.py b/netbox_interface_name_rules/tests/test_bulk_families.py index 9fed8d2..f4aac1c 100644 --- a/netbox_interface_name_rules/tests/test_bulk_families.py +++ b/netbox_interface_name_rules/tests/test_bulk_families.py @@ -454,6 +454,16 @@ def test_no_channel_belongs_to_two_families(self): claimed = [member.interface_pk for family in outcome.families for member in family.members] self.assertEqual(len(claimed), len(set(claimed))) + def test_a_family_missing_a_channel_still_names_the_channels_it_has(self): + """A channel is named from its own channel id, so a family that lost one is still repaired.""" + modules = self._install_families(("1",)) + Interface.objects.filter(module=modules[0], channel_id=2).delete() + + outcome = apply_rule_to_existing(self.rule) + + self.assertEqual(self._names(modules[0]), ["1", "xe-0/0/1:0", "xe-0/0/1:2", "xe-0/0/1:3"]) + self.assertEqual(outcome.skipped_members, ()) + def _apply_queries(self, positions): """Return the queries one batch runs over freshly installed families at *positions*.""" self._install_families(positions) @@ -469,11 +479,12 @@ def test_the_batch_reads_the_interface_templates_once_for_the_module_type(self): def test_eight_channelized_families_cost_no_more_per_module_than_the_first(self): """Renaming a fleet stays linear in its modules: no family pays for the ones beside it.""" + added = self.POSITIONS[1:] one_module = len(self._apply_queries(("1",))) - eight_modules = len(self._apply_queries(self.POSITIONS[1:])) + eight_modules = len(self._apply_queries(added)) - per_module = (eight_modules - one_module) / 6 + per_module = (eight_modules - one_module) / len(added) self.assertLessEqual(per_module, one_module, [per_module, one_module, eight_modules]) def test_selecting_a_channel_on_its_own_applies_nothing(self): From 6ecece3bcfd43fada2539c54ead21c7686345700 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 11:38:08 +0200 Subject: [PATCH 27/74] fix: release the batch template cache when pinning it fails pinned_template_cache raised its thread-local depth and built the cache before entering the try block, so an exception while pinning the batch escaped __enter__ with the depth already raised and the finally clause never ran. The cache then outlived the batch that opened it, and every later batch on the same thread read the failed batch's resolved template names instead of resolving its own. On a long-lived worker that is a rename against names the modules no longer carry. In the test suite it made results depend on module order: a signal test feeds the batch a module stub with no primary key, which strands the pin for everything that runs after it. Move the cache setup inside the try so the depth is always balanced. --- .../family/template_names.py | 22 +++------- .../tests/test_bulk_families.py | 40 +++++++++++++++++++ 2 files changed, 46 insertions(+), 16 deletions(-) diff --git a/netbox_interface_name_rules/family/template_names.py b/netbox_interface_name_rules/family/template_names.py index c08a4af..e48b5a2 100644 --- a/netbox_interface_name_rules/family/template_names.py +++ b/netbox_interface_name_rules/family/template_names.py @@ -105,12 +105,13 @@ def pinned_template_cache(modules=()): """ depth = getattr(_pin, "depth", 0) _pin.depth = depth + 1 - if depth == 0: - _pin.chained = {} - _pin.templates = {} - _pin.resolved = {} - _pin.chained.update({module.pk: module for module in modules}) try: + # Setting up the cache must sit inside the try, or a raise here strands the depth forever. + if depth == 0: + _pin.chained = {} + _pin.templates = {} + _pin.resolved = {} + _pin.chained.update({module.pk: module for module in modules}) yield finally: _pin.depth -= 1 @@ -176,17 +177,6 @@ def raw_name_patterns(module): return [matcher.pattern for matcher in raw_name_matchers(module).matchers] -def raw_names_by_module(modules): # pragma: no cover - only the channel conversion scan batches names - """Resolve raw names for a prefetched module batch with one template query.""" - by_module_type = {} - for template in InterfaceTemplate.objects.filter(module_type_id__in={module.module_type_id for module in modules}): - by_module_type.setdefault(template.module_type_id, []).append(template) - return { - module.pk: raw_names_from(resolve_templates(by_module_type.get(module.module_type_id, ()), module)) - for module in modules - } - - def resolved_template_names(module) -> tuple[ResolvedTemplateName, ...]: """Load and resolve every interface template for *module* once.""" resolved = getattr(_pin, "resolved", None) diff --git a/netbox_interface_name_rules/tests/test_bulk_families.py b/netbox_interface_name_rules/tests/test_bulk_families.py index f4aac1c..5f551f9 100644 --- a/netbox_interface_name_rules/tests/test_bulk_families.py +++ b/netbox_interface_name_rules/tests/test_bulk_families.py @@ -39,8 +39,10 @@ describe_interfaces, execute_family_plan, execute_flat_family, + pinned_template_cache, plan_flat_family, plan_prospective_families, + template_names, ) from netbox_interface_name_rules.models import InterfaceNameRule from netbox_interface_name_rules.signals import _apply_rules_for_device_deferred @@ -319,6 +321,44 @@ def test_eight_same_type_families_cost_no_more_per_module_than_two(self): self.assertLessEqual(per_module, (two_modules / 2), [per_module, two_modules]) +class PinnedTemplateCacheBalanceTest(BulkTestCase): + """The batch template cache has to be released even when setting it up fails. + + A stranded cache outlives the batch that opened it, so every later batch on that thread reads + the failed batch's resolved template names instead of its own. On a long-lived worker that is + a rename against names the modules no longer carry. + """ + + def _setup_failure(self): + """Enter the cache with a batch that raises while it is being pinned.""" + broken = MagicMock() + type(broken).pk = property(lambda _self: (_ for _ in ()).throw(RuntimeError("module went away"))) + return pinned_template_cache([broken]) + + def test_a_failed_setup_releases_the_cache(self): + """Anything left behind here is served to the next batch as its own template names.""" + with self.assertRaises(RuntimeError), self._setup_failure(): + pass # pragma: no cover - the block never runs + + self.assertNotIn("resolved", template_names._pin.__dict__) + self.assertNotIn("chained", template_names._pin.__dict__) + self.assertEqual(getattr(template_names._pin, "depth", 0), 0) + + def test_a_later_batch_still_resolves_its_own_names(self): + """The damage the balance prevents: one batch's names outliving it and serving the next one.""" + self._install("1") + rule = self._flat_rule(self.module_type) + with self.assertRaises(RuntimeError), self._setup_failure(): + pass # pragma: no cover - the block never runs + apply_rule_to_existing(rule) # fills a cache that a stranded pin would keep + + with CaptureQueriesContext(connection) as captured: + apply_rule_to_existing(rule) + + template_queries = [query for query in captured.captured_queries if "dcim_interfacetemplate" in query["sql"]] + self.assertEqual(len(template_queries), 1, [query["sql"] for query in captured.captured_queries]) + + class VirtualChassisReapplyTestCase(BulkTestCase): """A position change reaches every module-attached family through the plugin's own signals.""" From 408b10e34f6825ff59b1631bba5e14f63134e3c9 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 11:38:22 +0200 Subject: [PATCH 28/74] refactor: convert flat families through conversion plans Move discovery, preview, selection, validation and execution of the assisted flat to channelized conversion out of the engine and into the family package, behind one immutable plan per family. A plan carries the snapshots the split needs: the ch-0 row that becomes the parent, the siblings that become channels 2..N, the names the rule spells for every channel, and the parent name the rule resolves for the module now. Execution locks those rows, compares them against the snapshots and refuses a family whose identity, names, membership or topology moved since the scan. Conversion recovers its base names through the same helpers the rename path recovers them with, so the two cannot drift on which rows belong to which family, virtual-chassis drift included. It still identifies a family by its ch-0 row and still offers a family the module no longer carries whole, refused with the row it is missing: dropping it from the page would read as "nothing here to convert" and hide an edit the operator needs to see. A refusal the snapshots already settle rides on the plan as a precondition, so the scan reports it without a dry run and execution rejects it without locking a row. Conversion returns one explicit family outcome per family. The Apply view and the background job take their converted and skipped counts from those outcomes, so the (verdicts, has_more) tuple and the mutable conflict list are gone. The candidate an operator confirms takes its names, roles and blocking reason from the plan, and keeps the live module and ch-0 rows only so the page can link to them. The addresses and FHRP group assignments on the ch-0 row now move onto the new channel through model saves rather than two queryset updates. The updates took no snapshot, fired no signal and left no changelog entry, so a device's history showed the family rewritten and the objects on it moved by nobody. Closes #81. --- ...-flat-families-through-conversion-plans.md | 15 + netbox_interface_name_rules/engine.py | 375 +--------------- .../family/__init__.py | 30 +- netbox_interface_name_rules/family/batch.py | 30 +- .../family/conversion.py | 425 ++++++++++++++++++ netbox_interface_name_rules/family/domain.py | 139 ++++++ .../family/installed.py | 105 +++-- netbox_interface_name_rules/jobs.py | 11 +- .../tests/test_conversion.py | 267 +++++++---- .../tests/test_vc_drift.py | 36 +- .../tests/test_views.py | 2 +- netbox_interface_name_rules/views.py | 23 +- 12 files changed, 934 insertions(+), 524 deletions(-) create mode 100644 docs/adr/0010-convert-flat-families-through-conversion-plans.md create mode 100644 netbox_interface_name_rules/family/conversion.py diff --git a/docs/adr/0010-convert-flat-families-through-conversion-plans.md b/docs/adr/0010-convert-flat-families-through-conversion-plans.md new file mode 100644 index 0000000..48b6f62 --- /dev/null +++ b/docs/adr/0010-convert-flat-families-through-conversion-plans.md @@ -0,0 +1,15 @@ +--- +status: accepted +--- + +# Convert flat families through conversion plans + +Assisted flat to channelized conversion plans and executes one immutable conversion plan per family, in the family package, beside the planners that install and rename families. A plan carries the row snapshots the ch-0 split needs and nothing else: the base row that becomes the parent, the siblings that become channels 2..N, and the parent name the rule resolves. Execution locks the planned rows, compares them against those snapshots, and refuses a family whose identity, names, membership or topology moved since the scan. The scan itself performs each conversion inside a savepoint it always rolls back, so a candidate reports the reason NetBox would refuse the family rather than a guess at its rules. + +Conversion recovers its families through the base names the rename path recovers, so the two cannot drift on which rows belong to which family, a family named before a virtual-chassis renumber included. It identifies a family by its ch-0 row, the way the flat apply that installed it named that row, and then takes whatever the module still carries for the rest of the family. A family with a gap is offered and refused, naming the row it is missing, because dropping it from the page would read as "nothing here to convert" and hide an edit the operator needs to see. A sibling that already belongs to another parent is refused the same way rather than taken from that family. The parent takes the name the rule resolves for the module now, which is the name an apply would give it; the channels keep the names they carry, because converting retypes those rows in place. + +A family the plan can already refuse carries the refusal as a plan precondition, so the scan reports it without a dry run and execution rejects it without locking a row. Everything a snapshot cannot settle stays in the locked preflight beside NetBox's own validation. + +Conversion returns one explicit family outcome per family. The Apply view and the background job read their converted and skipped counts from those outcomes, so no conversion tuple and no mutable conflict list crosses the boundary. The candidate an operator confirms carries its names, roles and blocking reason from the plan; it keeps the live module and ch-0 rows only so the page can link to them. + +The addresses and FHRP group assignments on the ch-0 row move onto the new channel through model saves, one row at a time. A queryset update relocated them with no validation, no signal and no changelog entry, so a device's history showed the family rewritten and the objects on it moved by nobody. They are objects an operator owns and audits, and they are now written to the standard the rest of the family write already meets. diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index a2c3b9a..420dc7b 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -19,7 +19,6 @@ from .family import names as family_names from .family import targets as family_targets from .family import template_names as family_template_names -from .rule_selection import _compile_pattern logger = logging.getLogger(__name__) @@ -610,20 +609,6 @@ def apply_device_interface_rules(device): return total -# The bay chain InterfaceTemplate.resolve_name() dereferences while resolving {module}. -_BAY_CHAIN_RELATIONS = family_template_names.BAY_CHAIN_RELATIONS -_RawMatcher = family_template_names.RawMatcher -_RawNames = family_template_names.RawNames - -# Brace-free stand-in used to recover a flat family's historical base from rule-output names. -_BASE_SENTINEL = "InrBaseSentinelEnd" - - -def _module_with_bay_chain(module): - """Delegate template-resolution loading while preserving the engine helper.""" - return family_template_names.module_with_bay_chain(module) - - def _raw_name_matchers(module): """Delegate current and historical raw name resolution.""" return family_template_names.raw_name_matchers(module) @@ -639,11 +624,6 @@ def _raw_name_patterns(module): return family_template_names.raw_name_patterns(module) -def _raw_names_by_module(modules): # pragma: no cover - only the conversion scan batches names - """Delegate batched raw-name resolution.""" - return family_template_names.raw_names_by_module(modules) - - def _recovered_suffix(child, suffixes): # pragma: no cover - requires channelization support """Return the template suffix for *child*'s channel, or None when it is not unambiguous. @@ -1269,351 +1249,28 @@ def apply_rule_to_existing(rule, limit=None, interface_ids=None) -> family_ops.B # with N channel subinterfaces. Converting one rewrites rows an operator owns — cables, addresses, # tags — so it is never a side effect of applying a rule: the operator confirms it per family. -# The ch-0 row, the names its family carries now, and the names it would carry once converted. -_ConversionFamily = namedtuple("_ConversionFamily", ("module", "base", "current_names", "parent_name", "channel_names")) - - -def _conversion_offered(rule): - """Return True when *rule* describes a topology an installed flat family could be converted into. - - A disabled rule renames nothing on any apply path, so it converts nothing either. A flat family - has no parent row — its ch-0 interface *is* the base — so without a parent name there is nowhere - for that base to go, and the conversion is not offered at all. - """ - return rule.enabled and _is_channelized_rule(rule) and rule.channel_count > 0 and bool(rule.parent_name_template) - - -def _base_marked_ch0_name(rule, variables): # pragma: no cover - requires channelization support - """Return *rule*'s escaped ch-0 output with ``{base}`` left as a sentinel, or None when it cannot be. - - Evaluated once per rule: the sentinel stands in for ``{base}`` so a raw matcher can be spliced - over it afterwards. - """ - try: - evaluated = evaluate_name_template( - rule.name_template, {**variables, "base": _BASE_SENTINEL, "channel": str(rule.channel_start)} - ) - except (ValueError, TypeError): - # A {base} inside an arithmetic expression cannot take a non-numeric stand-in — see the docs. - logger.debug( - "Rule '%s' evaluates {base} arithmetically, so a base predating a virtual-chassis " - "position change cannot be recovered from its output names; not offering its families.", - rule, - ) - return None - if _BASE_SENTINEL not in evaluated: - return None # the rule's output does not carry the base, so no drift reached it - return re.escape(evaluated) - - -def _recovered_bases(rule, interfaces, variables, matchers): # pragma: no cover - channelization only - """Return the historical ``{base}`` values *rule*'s installed families still spell on this module. - - A flat family carries rule-*output* names, so a raw matcher cannot be run against them directly: - it is spliced into the rule's own ch-0 output as a capture instead — a repeated ``{base}`` becomes - a backreference rather than a second group — and the capture yields the base the family was named - with. Conversion rewrites rows an operator owns, so anything ambiguous (one matcher over two - bases, or two templates recovering the same one) yields nothing at all. - """ - marked = _base_marked_ch0_name(rule, variables) - if marked is None: - return [] - head, _, tail = marked.partition(_BASE_SENTINEL) - tail = tail.replace(_BASE_SENTINEL, "(?P=base)") - recovered = defaultdict(int) - for matcher in matchers: - family_pattern = _compile_pattern(f"{head}(?P{matcher.pattern.pattern}){tail}") - if family_pattern is None: - continue - matches = (family_pattern.fullmatch(iface.name) for iface in interfaces) - bases = {match.group("base") for match in matches if match} - if len(bases) == 1: - recovered[bases.pop()] += 1 - return [base for base, claims in recovered.items() if claims == 1] - - -def _family_on(rule, module, by_name, variables, base_name): # pragma: no cover - channelization only - """Return the family *rule* describes on *base_name*, or None when this module carries none.""" - family_vars = {**variables, "base": base_name} - parent_name = evaluate_name_template(rule.parent_name_template, family_vars) - channel_names = [ - evaluate_name_template(rule.name_template, {**family_vars, "channel": str(rule.channel_start + offset)}) - for offset in range(rule.channel_count) - ] - base = by_name.get(channel_names[0]) - if base is None or _is_channel_child(base) or _is_channelized_parent(base): - return None - return _ConversionFamily( - module=module, - base=base, - current_names=[name for name in channel_names if name in by_name], - parent_name=parent_name, - channel_names=channel_names, - ) - - -def _conversion_family(rule, module, interfaces, variables, raw): # pragma: no cover - channelization only - """Return the flat family *rule* would convert on *module*, or None when it carries none. - - Identification is by name: ``name_template`` is evaluated over the rule's channel range against - each raw template name, and the ch-0 name has to still be a plain interface — a family that was - already converted (its ch-0 name now belongs to a channel row) is therefore never offered twice. - A family named before this device's virtual-chassis position changed spells a base no template - resolves to any more, so those bases are recovered from the family's own names and then - identified exactly the same way. - """ - by_name = {iface.name: iface for iface in interfaces} - for base_name in sorted(raw.names): - family = _family_on(rule, module, by_name, variables, base_name) - if family is not None: - return family - for base_name in _recovered_bases(rule, interfaces, variables, raw.matchers): - family = _family_on(rule, module, by_name, variables, base_name) - if family is not None: - return family - return None - - -def _conversion_families(rule): # pragma: no cover - requires channelization support - """Yield the flat family each module in *rule*'s scope still carries. - - A flat breakout is applied once per module (see ``_apply_channel_rule_to_module``), so a module - carries at most one such family and the conversion mirrors that. - """ - from dcim.models import Interface - - modules = list(_build_module_qs(rule).select_related("module_type", "device", *_BAY_CHAIN_RELATIONS)) - raw_by_module = _raw_names_by_module(modules) - ifaces_by_module = defaultdict(list) - for iface in Interface.objects.filter(module__in=[module.pk for module in modules]).order_by("module_id", "name"): - ifaces_by_module[iface.module_id].append(iface) - for module in modules: - variables = build_variables(module.module_bay, device=module.device) - ifaces = ifaces_by_module.get(module.pk, []) - family = _conversion_family(rule, module, ifaces, variables, raw_by_module[module.pk]) - if family is not None: - yield family - - -def _validate_or_block(iface, role): # pragma: no cover - requires channelization support - """Run NetBox's own validation on *iface*, restating a rejection as this family's blocking reason.""" - try: - iface.full_clean() - except ValidationError as exc: - raise ValidationError(f"{role} {iface.name!r}: {' '.join(exc.messages)}") from exc - -def _split_ch0_row(rule, family, base): # pragma: no cover - requires channelization support - """Make *base* the family's parent and move its logical identity onto a new channel-1 child. +def find_convertible_families(rule, limit=None) -> family_ops.ConversionPreview: + """Return the preview of the flat families *rule* could convert, convertible or not. - Everything an operator configured on the ch-0 row described a channel, not the cage carrying it, - so addresses, VLANs, MTU, description and tags move; custom fields can mean either thing and are - copied. The physical row keeps its pk, cable, type, module link and mark_connected. + Each candidate names the ch-0 row the confirm form submits, the family's current names, the + names it would carry, and where the ch-0 row's configuration lands. A family beyond *limit* is + never dry-run; the preview reports that one was left unexamined. """ - from dcim.choices import InterfaceTypeChoices - from dcim.models import Interface - - carried = { - "description": base.description, - "mtu": base.mtu, - "mode": base.mode, - "untagged_vlan_id": base.untagged_vlan_id, - } - tagged_vlans = list(base.tagged_vlans.all()) - tags = list(base.tags.all()) - - base.name = family.parent_name - base.channels = rule.channel_count - base.description = "" - base.mtu = None - base.mode = "" - base.untagged_vlan = None - _validate_or_block(base, "parent") - base.save() # BaseInterface.save() drops the tagged VLANs of an interface that no longer tags - base.tags.clear() - - channel = Interface( - device=family.module.device, - module=family.module, - name=family.channel_names[0], - type=InterfaceTypeChoices.TYPE_CHANNEL, - parent=base, - channel_id=1, - enabled=base.enabled, - custom_field_data=dict(base.custom_field_data or {}), - **carried, - ) - _validate_or_block(channel, "channel") - channel.save() - channel.tagged_vlans.set(tagged_vlans) - channel.tags.set(tags) - base.ip_addresses.all().update(assigned_object_id=channel.pk) - base.fhrp_group_assignments.all().update(interface_id=channel.pk) - - -def _rewrite_family(rule, family): # pragma: no cover - requires channelization support - """Convert *family* in place, raising ValidationError with the reason when it cannot be converted. - - Only what upstream cannot decide for us is checked here: the parent's name has to be free, every - sibling has to be present, a sibling already bound to another parent's channel is not ours to - take, and a cabled sibling cannot become a channel — TYPE_CHANNEL is nonconnectable but not - virtual, so ``Interface.clean()`` accepts a cable on one. Everything else is left to - ``full_clean()`` on each prospective row, which inherits upstream's rules as they grow. - """ - from dcim.choices import InterfaceTypeChoices - from dcim.models import Interface - - device = family.module.device - # Locked for the transaction: the checks below act on this snapshot, and the saves write it back. - by_name = {iface.name: iface for iface in Interface.objects.select_for_update().filter(module=family.module)} - base = by_name.get(family.channel_names[0]) - if base is None or base.pk != family.base.pk: - raise ValidationError( - f"{family.channel_names[0]!r} is gone or replaced: the family changed since it was scanned" - ) - - if _name_exists_on_device(device, family.parent_name, exclude_pk=base.pk): - raise ValidationError(f"the parent name {family.parent_name!r} is already taken on {device}") - - siblings = [] - for channel_id, name in enumerate(family.channel_names[1:], start=2): - sibling = by_name.get(name) - if sibling is None or sibling.pk == base.pk: - raise ValidationError(f"{name!r} is missing: this module carries no complete flat family") - # Rebinding it validates cleanly, so only this check keeps the other family whole. - if _is_channel_child(sibling): - owner = sibling.parent.name if sibling.parent_id else "another parent" - raise ValidationError( - f"{name!r} is already channel {sibling.channel_id} of {owner}; " - f"converting would take it out of that family" - ) - if sibling.cable_id: - raise ValidationError(f"{name!r} has a cable attached; a channel takes its cable from the parent") - siblings.append((channel_id, sibling)) + # Only the cheap half of the guard, so a rule that offers no conversion never reads its modules; + # whether this release can hold a family is the family package's call. + if not family_ops.conversion_offered(rule): + return family_ops.ConversionPreview(candidates=()) + return family_ops.preview_rule_conversions(rule, _batch_modules(rule), limit=limit) - _split_ch0_row(rule, family, base) - for channel_id, sibling in siblings: - sibling.type = InterfaceTypeChoices.TYPE_CHANNEL - sibling.parent = base - sibling.channel_id = channel_id - _validate_or_block(sibling, "channel") - sibling.save() - -def _convert_family(rule, family, commit): # pragma: no cover - requires channelization support - """Convert *family*; return an empty string on success, or the reason it was refused. - - The whole conversion runs inside one savepoint, so a dry run (*commit* False) and a family that - turns out to be unconvertible both leave every row exactly as it was — the rows are re-read here - too, so a rolled-back dry run cannot hand mutated objects back to the caller. - """ - try: - with transaction.atomic(): - _rewrite_family(rule, family) - if not commit: - transaction.set_rollback(True) - except (ValidationError, IntegrityError, ValueError) as exc: - return "; ".join(getattr(exc, "messages", [str(exc)])) - return "" - - -def _conversion_metadata_note(family): # pragma: no cover - requires channelization support - """Return the sentence the Apply page shows about where the ch-0 row's configuration ends up.""" - return ( - f"The addresses, VLANs, MTU, description and tags on {family.base.name} move to the new " - f"channel 1 interface that takes over that name; custom field values are copied. The physical " - f"row keeps its ID and becomes the parent {family.parent_name}, so automation keyed on that " - f"interface ID will address the parent afterwards." - ) - - -def _conversion_verdict(family, reason): # pragma: no cover - requires channelization support - """Describe what converting *family* would do, and why it cannot be done when it cannot.""" - details = [_name_detail(family.parent_name, "parent")] - details.extend( - _name_detail(name, "channel", channel_id) for channel_id, name in enumerate(family.channel_names, start=1) - ) - return { - "module": family.module, - "interface": family.base, - "current_name": family.base.name, - "current_names": family.current_names, - "new_names": [family.parent_name, *family.channel_names], - "name_details": details, - "convertible": not reason, - "reason": reason, - "metadata_note": _conversion_metadata_note(family), - } - - -def find_convertible_families(rule, limit=None) -> tuple: - """Return ``(verdicts, has_more)`` for the flat families *rule* could convert, convertible or not. - - Nothing is written: every family is converted inside a savepoint that is rolled back again, so - each verdict carries the reason NetBox itself would refuse the family rather than a guess at its - rules. Each verdict names the ch-0 row the confirm form submits, the family's current names, - the names it would carry, and where the ch-0 row's configuration lands. - - That dry run is what the scan costs, and a blocked family costs it too, so *limit* caps the - families examined — one verdict each — rather than the convertible ones among them. A family - beyond the limit is never dry-run; *has_more* reports that one was left unexamined. - """ - if not (_conversion_offered(rule) and supports_channelization()): - return [], False - return _find_convertible_families(rule, limit) # pragma: no cover - requires channelization support - - -def _find_convertible_families(rule, limit): # pragma: no cover - requires channelization support - """Dry-run at most *limit* of *rule*'s flat families; see ``find_convertible_families``.""" - verdicts = [] - for family in _conversion_families(rule): - if limit is not None and len(verdicts) >= limit: - return verdicts, True - verdicts.append(_conversion_verdict(family, _convert_family(rule, family, commit=False))) - return verdicts, False - - -def convert_flat_families(rule, base_pks=None, conflicts=None) -> int: - """Convert *rule*'s installed flat families to the channelized topology; return how many. +def convert_flat_families(rule, base_pks=None) -> family_ops.BatchOutcome: + """Convert *rule*'s installed flat families to the channelized topology. *base_pks* is the set of ch-0 interface pks the operator confirmed: ``None`` converts every - convertible family (the batch the background job runs), an empty collection converts none. A - family that cannot be converted is logged, appended to *conflicts* in the usual skipped-rename - shape and passed over — it is never half converted, and never costs the rest of the batch. - """ - if not supports_channelization(): - logger.warning( - "Rule '%s' converts flat families into the channelized topology, which this NetBox release " - "cannot model; nothing was converted.", - rule, - ) - return 0 - return _convert_flat_families(rule, base_pks, conflicts) # pragma: no cover - see above - + convertible family (the batch the background job runs), an empty collection converts none. -def _convert_flat_families(rule, base_pks, conflicts): # pragma: no cover - requires channelization support - """Convert the confirmed flat families of *rule*; see ``convert_flat_families``.""" - if not _conversion_offered(rule): - return 0 + Returns the batch outcome: one explicit family result per family it planned. + """ selected = None if base_pks is None else frozenset(base_pks) - if selected is not None and not selected: - return 0 - - converted = 0 - for family in _conversion_families(rule): - if selected is not None and family.base.pk not in selected: - continue - current_name = family.base.name - reason = _convert_family(rule, family, commit=True) - if reason: - logger.warning( - "Cannot convert the flat family of interface %r on %s into the channelized parent %r: %s. Skipping.", - current_name, - family.module, - family.parent_name, - reason, - ) - _record_skip(conflicts, family.module.device, current_name, family.parent_name, family.base.pk) - continue - converted += 1 - return converted + return family_ops.convert_rule_families(rule, _batch_modules(rule), selected_pks=selected) diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py index 57155b5..f10e1ed 100644 --- a/netbox_interface_name_rules/family/__init__.py +++ b/netbox_interface_name_rules/family/__init__.py @@ -4,7 +4,18 @@ from .batch import BatchOutcome, apply_rule_to_modules, execute_family_plan, plan_module_families from .capabilities import supports_channelization +from .conversion import ( + conversion_offered, + convert_rule_families, + execute_conversion, + plan_module_conversions, + preview_rule_conversions, +) from .domain import ( + ConversionCandidate, + ConversionMember, + ConversionPlan, + ConversionPreview, FamilyOutcome, FamilyStatus, FamilyTopology, @@ -17,13 +28,19 @@ MemberRole, PlannedChannel, PlannedMember, + PlannedName, ProspectiveFamilyPlan, ProspectiveFamilyPlanSet, ProspectiveMember, StructuralFamilyPlan, ) from .execution import execute_installed_plan, execute_installed_plan_set -from .installed import module_db_alias, plan_installed_families, plan_interface_rename +from .installed import ( + interfaces_by_module, + module_db_alias, + plan_installed_families, + plan_interface_rename, +) from .prospective import ( ProspectiveInterface, describe_interfaces, @@ -44,6 +61,10 @@ __all__ = ( "BatchOutcome", + "ConversionCandidate", + "ConversionMember", + "ConversionPlan", + "ConversionPreview", "FamilyOutcome", "FamilyStatus", "FamilyTopology", @@ -56,6 +77,7 @@ "MemberRole", "PlannedChannel", "PlannedMember", + "PlannedName", "ProspectiveFamilyPlan", "ProspectiveFamilyPlanSet", "ProspectiveInterface", @@ -63,9 +85,12 @@ "StructuralFamilyPlan", "apply_rule_to_modules", "channelized_family_names", + "conversion_offered", + "convert_rule_families", "describe_interfaces", "describe_module_interfaces", "describe_template_interfaces", + "execute_conversion", "execute_family_plan", "execute_flat_family", "execute_installed_plan", @@ -73,15 +98,18 @@ "execute_structural_family", "has_flat_expansion", "install_channelized_family", + "interfaces_by_module", "module_db_alias", "one_family_per_name_set", "pinned_template_cache", "plan_flat_family", "plan_installed_families", "plan_interface_rename", + "plan_module_conversions", "plan_module_families", "plan_prospective_families", "plan_structural_family", + "preview_rule_conversions", "resolved_template_names", "supports_channelization", "template_channel_suffixes", diff --git a/netbox_interface_name_rules/family/batch.py b/netbox_interface_name_rules/family/batch.py index b4f3c40..7ff7238 100644 --- a/netbox_interface_name_rules/family/batch.py +++ b/netbox_interface_name_rules/family/batch.py @@ -10,7 +10,6 @@ import logging from dataclasses import dataclass -from dcim.models import Interface from django.core.exceptions import ValidationError from django.db import IntegrityError @@ -25,7 +24,7 @@ StructuralFamilyPlan, ) from .execution import execute_installed_plan -from .installed import module_db_alias, plan_installed_families, plan_interface_rename +from .installed import interfaces_by_module, plan_installed_families, plan_interface_rename from .structural import execute_flat_family, execute_structural_family, plan_flat_family, plan_structural_family from .targets import builds_channelized_family, intended_family_names, one_family_per_name_set from .template_names import pinned_template_cache @@ -61,6 +60,16 @@ def skipped_members(self) -> tuple[MemberOutcome, ...]: member for family in self.families for member in family.members if member.status in _SKIPPED_STATUSES ) + @property + def changed_families(self) -> tuple[FamilyOutcome, ...]: + """Return every family this batch actually rewrote.""" + return tuple(family for family in self.families if family.status == FamilyStatus.CHANGED) + + @property + def blocked_families(self) -> tuple[FamilyOutcome, ...]: + """Return every family a collision, a stale plan or a failure left as it was.""" + return tuple(family for family in self.families if family.status in _SKIPPED_STATUSES) + def execute_family_plan(plan) -> FamilyOutcome: """Execute one planned family through the executor its plan kind owns. @@ -151,19 +160,6 @@ def _apply_module(rule, module, interfaces, selected_pks): return [outcome for plan in plans if (outcome := _execute(rule, module, plan)) is not None] -def _interfaces_by_module(modules): - """Load every interface of the batch in one query, in stable per-module order.""" - by_module: dict[int, list] = {module.pk: [] for module in modules} - rows = ( - Interface.objects.using(module_db_alias(modules[0])) - .filter(module_id__in=list(by_module)) - .order_by("module_id", "name") - ) - for interface in rows: - by_module[interface.module_id].append(interface) - return by_module - - def apply_rule_to_modules(rule, modules, selected_pks=None, limit=None) -> BatchOutcome: """Apply *rule* to every module in *modules*, one family at a time. @@ -172,12 +168,12 @@ def apply_rule_to_modules(rule, modules, selected_pks=None, limit=None) -> Batch """ if not modules: return BatchOutcome(families=()) - interfaces_by_module = _interfaces_by_module(modules) + by_module = interfaces_by_module(modules) families: list[FamilyOutcome] = [] changed = 0 with pinned_template_cache(modules): for module in modules: - outcomes = _apply_module(rule, module, interfaces_by_module[module.pk], selected_pks) + outcomes = _apply_module(rule, module, by_module[module.pk], selected_pks) families.extend(outcomes) changed += sum(outcome.changed_count for outcome in outcomes) if limit is not None and changed >= limit: diff --git a/netbox_interface_name_rules/family/conversion.py b/netbox_interface_name_rules/family/conversion.py new file mode 100644 index 0000000..249c3fc --- /dev/null +++ b/netbox_interface_name_rules/family/conversion.py @@ -0,0 +1,425 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Convert installed flat breakout families into the channelized topology. + +An earlier flat apply leaves N sibling interfaces where NetBox 4.7+ models a channelized parent +with N channel subinterfaces. Converting one rewrites rows an operator owns (cables, addresses, +tags), so it is never a side effect of applying a rule: the operator confirms it per family. + +A family is identified by its ch-0 row, the way the flat apply that installed it named that row. +A family whose siblings the module no longer carries whole is still offered, and refused with the +row it is missing: silence would read as "nothing here to convert". +""" + +import logging +from dataclasses import replace + +from dcim.choices import InterfaceTypeChoices +from dcim.models import Interface +from django.core.exceptions import ValidationError +from django.db import IntegrityError, transaction + +from ..naming import build_variables +from .batch import BatchOutcome +from .capabilities import supports_channelization +from .domain import ( + ConversionCandidate, + ConversionMember, + ConversionPlan, + ConversionPreview, + FamilyOutcome, + FamilyStatus, + FamilyTopology, + InterfaceSnapshot, + MemberOutcome, +) +from .installed import ( + TemplateNames, + family_names_for, + flat_family_bases, + interfaces_by_module, + is_plain_interface, + module_db_alias, +) +from .names import COLLISION_REASON, is_name_collision, name_is_taken +from .targets import builds_channelized_family, channelized_family_names +from .template_names import pinned_template_cache + +logger = logging.getLogger(__name__) + +STALE_REASON = "the flat family changed after it was scanned" +INCOMPLETE_REASON = "this module carries no complete flat family" + + +def conversion_offered(rule) -> bool: + """Return whether *rule* describes a topology an installed flat family could be converted into. + + A disabled rule renames nothing on any apply path, so it converts nothing either. A flat + family has no parent row (its ch-0 interface *is* the base), so without a parent name there is + nowhere for that base to go and the conversion is not offered at all. + """ + return rule.enabled and builds_channelized_family(rule) and bool(rule.parent_name_template) + + +# --------------------------------------------------------------------------- +# Planning +# --------------------------------------------------------------------------- + + +def _conversion_plan(module, db_alias, parent_name, channel_names, rows): # pragma: no cover - channelization only + """Build one immutable conversion plan from the rows a module carries for one family.""" + base, *siblings = rows + plan = ConversionPlan( + family_id=f"conversion:{base.pk}", + device_id=module.device_id, + module_id=module.pk, + db_alias=db_alias, + base=InterfaceSnapshot.from_interface(base), + parent_target_name=parent_name, + channel_names=channel_names, + siblings=tuple( + ConversionMember(snapshot=InterfaceSnapshot.from_interface(sibling), channel_id=channel_id) + for channel_id, sibling in siblings + ), + ) + missing = plan.missing_names + if not missing: + return plan + reason = f"{missing[0]!r} is missing: {INCOMPLETE_REASON}" + return replace(plan, precondition_status=FamilyStatus.BLOCKED, precondition_reason=reason) + + +def _family_rows(by_name, channel_names): # pragma: no cover - requires channelization support + """Return the ch-0 row and every sibling row this module still carries, with its channel id. + + A sibling is taken whatever it has become, so a row that now belongs to another parent is + reported against this family instead of quietly leaving a gap where it used to be. + """ + base = by_name.get(channel_names[0]) + if base is None or not is_plain_interface(base): + return None + siblings = [ + (channel_id, by_name[name]) for channel_id, name in enumerate(channel_names[1:], start=2) if name in by_name + ] + return [base, *siblings] + + +def plan_module_conversions( + module, rule, variables, interfaces +) -> tuple[ConversionPlan, ...]: # pragma: no cover - requires channelization support + """Return one plan for every flat family *rule* names on *module*, complete or not. + + The parent takes the name the rule resolves for this module now, so a family named before a + virtual-chassis renumber converts to the parent an apply would give it; the channels keep the + names they already carry, because converting retypes those rows in place. + """ + db_alias = module_db_alias(module) + catalog = TemplateNames(module) + by_name = {interface.name: interface for interface in interfaces} + plans = [] + claimed = set() + for base_name, source_base in flat_family_bases(rule, variables, interfaces, catalog): + names = family_names_for(rule, variables, base_name, source_base) + if names is None: + continue + _target_names, channel_names = names + rows = _family_rows(by_name, channel_names) + if rows is None or rows[0].pk in claimed: + continue + claimed.add(rows[0].pk) + parent_name, _channels = channelized_family_names(rule, base_name, variables) + plans.append(_conversion_plan(module, db_alias, parent_name, channel_names, rows)) + return tuple(plans) + + +def _planned_families(rule, modules): # pragma: no cover - requires channelization support + """Yield every convertible family in the batch as ``(module, plan, base interface)``. + + The module rows, their interfaces and each module type's templates are read once for the whole + batch, so a second module of the same type costs the scan no extra query. + """ + by_module = interfaces_by_module(modules) + for module in modules: + interfaces = by_module[module.pk] + rows_by_pk = {interface.pk: interface for interface in interfaces} + variables = build_variables(module.module_bay, device=module.device) + for plan in plan_module_conversions(module, rule, variables, interfaces): + yield module, plan, rows_by_pk[plan.base.pk] + + +# --------------------------------------------------------------------------- +# Execution +# --------------------------------------------------------------------------- + + +def _outcome(plan, status, members, reason=""): # pragma: no cover - requires channelization support + """Build the immutable outcome of one conversion.""" + return FamilyOutcome( + family_id=plan.family_id, + topology=FamilyTopology.CHANNELIZED, + status=status, + members=members, + reason=reason, + ) + + +def _refused(plan, status, reason): # pragma: no cover - requires channelization support + """Log why the family was not converted and return an outcome that touched no row.""" + logger.warning( + "Cannot convert the flat family of interface %r into the channelized parent %r: %s. Skipping.", + plan.base.name, + plan.parent_target_name, + reason, + ) + targets = (plan.parent_target_name, *plan.sibling_target_names) + members = tuple( + MemberOutcome( + interface_pk=pk, + current_name=current_name, + target_name=target_name, + status=status, + reason=reason, + ) + for pk, current_name, target_name in zip(plan.member_pks, plan.current_names, targets, strict=True) + ) + return _outcome(plan, status, members, reason) + + +def _validate_or_block(interface, role): # pragma: no cover - requires channelization support + """Run NetBox's own validation on *interface*, restating a rejection as this family's reason.""" + try: + interface.full_clean() + except ValidationError as error: + raise ValidationError(f"{role} {interface.name!r}: {' '.join(error.messages)}") from error + + +def _locked_family(plan): # pragma: no cover - requires channelization support + """Lock every planned row for the transaction and return the live rows by primary key.""" + return { + interface.pk: interface + for interface in ( + Interface.objects.using(plan.db_alias) + .select_for_update(of=("self",)) # module is nullable, so locking the join is refused + .select_related("device", "module") + .filter(pk__in=plan.member_pks) + .order_by("pk") + ) + } + + +def _is_stale(plan, live) -> bool: # pragma: no cover - requires channelization support + """Return whether live identity, names, membership or topology changed since the scan.""" + planned = {plan.base.pk: plan.base, **{member.snapshot.pk: member.snapshot for member in plan.siblings}} + return planned != {pk: InterfaceSnapshot.from_interface(interface) for pk, interface in live.items()} + + +def _blocking_reason(plan, live) -> str: # pragma: no cover - requires channelization support + """Return why this family cannot become a channelized family, or an empty string. + + Only what upstream cannot decide for us is checked here; everything else is left to + ``full_clean()`` on each prospective row, which inherits upstream's rules as they grow. + """ + if name_is_taken(plan.device_id, plan.parent_target_name, plan.db_alias, exclude_pk=plan.base.pk): + return f"the parent name {plan.parent_target_name!r} is already taken on this device" + for member in plan.siblings: + sibling = live[member.snapshot.pk] + # Rebinding it validates cleanly, so only this check keeps the other family whole. + if sibling.channel_id is not None: + owner = sibling.parent.name if sibling.parent_id else "another parent" + return ( + f"{sibling.name!r} is already channel {sibling.channel_id} of {owner}; " + f"converting would take it out of that family" + ) + # TYPE_CHANNEL is nonconnectable but not virtual, so Interface.clean() accepts a cable on one. + if sibling.cable_id: + return f"{sibling.name!r} has a cable attached; a channel takes its cable from the parent" + return "" + + +def _carry_assignments(plan, base, channel): # pragma: no cover - requires channelization support + """Move the ch-0 row's addresses and first-hop groups onto the channel that took its name. + + Saved one row at a time so each carried object is validated, and recorded in the changelog, + like every other row this conversion writes. + """ + for address in base.ip_addresses.using(plan.db_alias).all(): + address.assigned_object = channel + address.full_clean() + address.save(using=plan.db_alias) + for assignment in base.fhrp_group_assignments.using(plan.db_alias).all(): + assignment.interface = channel + assignment.full_clean() + assignment.save(using=plan.db_alias) + + +def _split_base(plan, base): # pragma: no cover - requires channelization support + """Make *base* the family parent and move its logical identity onto a new channel-1 row. + + Everything an operator configured on the ch-0 row described a channel, not the cage carrying + it, so addresses, VLANs, MTU, description and tags move; custom fields can mean either thing + and are copied. The physical row keeps its pk, cable, type, module link and mark_connected. + """ + carried = { + "description": base.description, + "mtu": base.mtu, + "mode": base.mode, + "untagged_vlan_id": base.untagged_vlan_id, + } + tagged_vlans = list(base.tagged_vlans.all()) + tags = list(base.tags.all()) + channel_name = base.name + + base.name = plan.parent_target_name + base.channels = plan.channel_count + base.description = "" + base.mtu = None + base.mode = "" + base.untagged_vlan = None + _validate_or_block(base, "parent") + base.save(using=plan.db_alias) # BaseInterface.save() drops the tagged VLANs of a row that no longer tags + base.tags.clear() + + channel = Interface( + device=base.device, + module=base.module, + name=channel_name, + type=InterfaceTypeChoices.TYPE_CHANNEL, + parent=base, + channel_id=1, + enabled=base.enabled, + custom_field_data=dict(base.custom_field_data or {}), + **carried, + ) + _validate_or_block(channel, "channel") + channel.save(using=plan.db_alias) + channel.tagged_vlans.set(tagged_vlans) + channel.tags.set(tags) + _carry_assignments(plan, base, channel) + return channel + + +def _rewrite(plan, live): # pragma: no cover - requires channelization support + """Rewrite the whole family and return one outcome per row it wrote.""" + base = live[plan.base.pk] + previous_name = base.name + channel = _split_base(plan, base) + members = [ + MemberOutcome(base.pk, previous_name, plan.parent_target_name, FamilyStatus.CHANGED), + MemberOutcome(channel.pk, channel.name, channel.name, FamilyStatus.CHANGED), + ] + for member in plan.siblings: + sibling = live[member.snapshot.pk] + sibling.type = InterfaceTypeChoices.TYPE_CHANNEL + sibling.parent = base + sibling.channel_id = member.channel_id + _validate_or_block(sibling, "channel") + sibling.save(using=plan.db_alias) + members.append(MemberOutcome(sibling.pk, sibling.name, sibling.name, FamilyStatus.CHANGED)) + return tuple(members) + + +def _convert(plan, commit): # pragma: no cover - requires channelization support + """Convert one family inside a single transaction, or leave every row exactly as it was. + + A dry run (*commit* False) and a family that turns out to be unconvertible both roll the whole + rewrite back, so a family is never half converted and a scan writes nothing at all. + """ + try: + with transaction.atomic(using=plan.db_alias): + live = _locked_family(plan) + if _is_stale(plan, live): + return _refused(plan, FamilyStatus.STALE, STALE_REASON) + reason = _blocking_reason(plan, live) + if reason: + return _refused(plan, FamilyStatus.BLOCKED, reason) + members = _rewrite(plan, live) + if not commit: + transaction.set_rollback(True) + except ValidationError as error: + return _refused(plan, FamilyStatus.BLOCKED, " ".join(error.messages)) + except IntegrityError as error: + if not is_name_collision(error): + raise + return _refused(plan, FamilyStatus.BLOCKED, COLLISION_REASON) + return _outcome(plan, FamilyStatus.CHANGED, members) + + +def _dry_run(plan) -> FamilyOutcome: # pragma: no cover - requires channelization support + """Report what converting *plan* would do, having written and rolled back every row of it.""" + if plan.precondition_status is not None: + return _refused(plan, plan.precondition_status, plan.precondition_reason) + return _convert(plan, commit=False) + + +def execute_conversion(plan: ConversionPlan) -> FamilyOutcome: # pragma: no cover - requires channelization support + """Convert the planned flat family, or leave every row exactly as it was. + + Only a conversion plan names the family rows to rewrite, so anything else (a prospective plan + above all) is refused before a single row is locked. + """ + if not isinstance(plan, ConversionPlan): + raise TypeError(f"{type(plan).__name__} is not an executable conversion plan") + if plan.precondition_status is not None: + return _refused(plan, plan.precondition_status, plan.precondition_reason) + return _convert(plan, commit=True) + + +# --------------------------------------------------------------------------- +# Batch entry points +# --------------------------------------------------------------------------- + + +def preview_rule_conversions(rule, modules, limit=None) -> ConversionPreview: + """Return what converting each of *rule*'s flat families would do, convertible or not. + + Nothing is written: every family is converted inside a savepoint that is rolled back again, so + each candidate carries the reason NetBox itself would refuse the family rather than a guess at + its rules. That dry run is what the scan costs, and a blocked family costs it too, so *limit* + caps the families examined rather than the convertible ones among them. + """ + if not (conversion_offered(rule) and supports_channelization()): + return ConversionPreview(candidates=()) + return _preview(rule, modules, limit) # pragma: no cover - requires channelization support + + +def _preview(rule, modules, limit) -> ConversionPreview: # pragma: no cover - requires channelization support + """Dry-run at most *limit* of the rule's flat families; see ``preview_rule_conversions``.""" + candidates = [] + with pinned_template_cache(modules): + for module, plan, base in _planned_families(rule, modules): + if limit is not None and len(candidates) >= limit: + return ConversionPreview(candidates=tuple(candidates), has_more=True) + outcome = _dry_run(plan) + candidates.append(ConversionCandidate(plan=plan, module=module, interface=base, reason=outcome.reason)) + return ConversionPreview(candidates=tuple(candidates)) + + +def convert_rule_families(rule, modules, selected_pks=None) -> BatchOutcome: + """Convert the confirmed flat families of *rule*; return one explicit outcome per family. + + *selected_pks* is the set of ch-0 interface primary keys the operator confirmed: ``None`` + converts every convertible family (the batch the background job runs), an empty collection + converts none. A family that cannot be converted is reported and passed over, so it is never + half converted and never costs the rest of the batch. + """ + if not supports_channelization(): + logger.warning( + "Rule '%s' converts flat families into the channelized topology, which this NetBox release " + "cannot model; nothing was converted.", + rule, + ) + return BatchOutcome(families=()) + return _convert_families(rule, modules, selected_pks) # pragma: no cover - see above + + +def _convert_families(rule, modules, selected_pks) -> BatchOutcome: # pragma: no cover - channelization only + """Convert the confirmed flat families of *rule*; see ``convert_rule_families``.""" + if not conversion_offered(rule) or (selected_pks is not None and not selected_pks): + return BatchOutcome(families=()) + families = [] + with pinned_template_cache(modules): + for _module, plan, _base in _planned_families(rule, modules): + if selected_pks is not None and plan.base.pk not in selected_pks: + continue + families.append(execute_conversion(plan)) + return BatchOutcome(families=tuple(families)) diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py index 91ebe3a..572dc9e 100644 --- a/netbox_interface_name_rules/family/domain.py +++ b/netbox_interface_name_rules/family/domain.py @@ -242,3 +242,142 @@ class InstalledPlanSetOutcome: def changed_count(self) -> int: """Return the number of members renamed across all families.""" return sum(family.changed_count for family in self.families) + + +@dataclass(frozen=True, slots=True) +class ConversionMember: # pragma: no cover - requires channelization support + """One installed flat sibling and the channel identifier it takes.""" + + snapshot: InterfaceSnapshot + channel_id: int + + +@dataclass(frozen=True, slots=True) +class ConversionPlan: # pragma: no cover - requires channelization support + """An executable plan that turns one installed flat family into a channelized family. + + The ch-0 row keeps its primary key and becomes the parent, giving up its name to a new + channel-1 row; each sibling is retyped in place as a channel under the name it already has. + + *channel_names* is every name the rule spells for the family, whether or not the module still + carries a row for it, so a family with a gap can still say what it would have become. + """ + + family_id: str + device_id: int + module_id: int + db_alias: str + base: InterfaceSnapshot + parent_target_name: str + channel_names: tuple[str, ...] + siblings: tuple[ConversionMember, ...] + precondition_status: FamilyStatus | None = None + precondition_reason: str = "" + + @property + def topology(self) -> FamilyTopology: + """Return the topology this plan installs.""" + return FamilyTopology.CHANNELIZED + + @property + def channel_count(self) -> int: + """Return how many channels the converted parent declares.""" + return len(self.channel_names) + + @property + def member_pks(self) -> tuple[int, ...]: + """Return the primary key of every row the plan rewrites, in family order.""" + return (self.base.pk, *(sibling.snapshot.pk for sibling in self.siblings)) + + @property + def current_names(self) -> tuple[str, ...]: + """Return the names the family carries now, in family order.""" + return (self.base.name, *(sibling.snapshot.name for sibling in self.siblings)) + + @property + def sibling_target_names(self) -> tuple[str, ...]: + """Return the name each installed sibling keeps as a channel, in family order.""" + return tuple(sibling.snapshot.name for sibling in self.siblings) + + @property + def missing_names(self) -> tuple[str, ...]: + """Return every name the family needs that this module carries no row for.""" + present = {self.base.name, *(sibling.snapshot.name for sibling in self.siblings)} + return tuple(name for name in self.channel_names if name not in present) + + @property + def target_names(self) -> tuple[str, ...]: + """Return the parent name and every channel name, in family order.""" + return (self.parent_target_name, *self.channel_names) + + +@dataclass(frozen=True, slots=True) +class PlannedName: # pragma: no cover - requires channelization support + """One name a family plan intends, and the role it fills in that family.""" + + name: str + role: str + channel_id: int | None = None + + +@dataclass(frozen=True, slots=True) +class ConversionCandidate: # pragma: no cover - requires channelization support + """One flat family an operator may convert, and what converting it would do. + + *module* and *interface* are the live rows the Apply page links to and submits; every name, + role and reason on the candidate comes from the immutable plan instead. + """ + + plan: ConversionPlan + module: object + interface: object + reason: str = "" + + @property + def convertible(self) -> bool: + """Return whether a dry run of this family succeeded.""" + return not self.reason + + @property + def current_name(self) -> str: + """Return the name of the ch-0 row the confirm form submits.""" + return self.plan.base.name + + @property + def current_names(self) -> tuple[str, ...]: + """Return the names the family carries now.""" + return self.plan.current_names + + @property + def new_names(self) -> tuple[str, ...]: + """Return the names the family would carry once converted.""" + return self.plan.target_names + + @property + def name_details(self) -> tuple[PlannedName, ...]: + """Describe every intended name so the page can render a family as a family.""" + return ( + PlannedName(self.plan.parent_target_name, "parent"), + *( + PlannedName(name, "channel", channel_id) + for channel_id, name in enumerate(self.plan.channel_names, start=1) + ), + ) + + @property + def metadata_note(self) -> str: + """Return the sentence the Apply page shows about where the ch-0 configuration ends up.""" + return ( + f"The addresses, VLANs, MTU, description and tags on {self.plan.base.name} move to the new " + f"channel 1 interface that takes over that name; custom field values are copied. The physical " + f"row keeps its ID and becomes the parent {self.plan.parent_target_name}, so automation keyed " + f"on that interface ID will address the parent afterwards." + ) + + +@dataclass(frozen=True, slots=True) +class ConversionPreview: + """Every flat family a conversion scan examined, and whether it left any unexamined.""" + + candidates: tuple[ConversionCandidate, ...] + has_more: bool = False diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index 3a46745..b11c35d 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -32,7 +32,7 @@ def module_db_alias(module) -> str: return module._state.db or DEFAULT_DB_ALIAS -def _is_plain_interface(interface) -> bool: +def is_plain_interface(interface) -> bool: """Return whether *interface* can be a flat-family member.""" return ( getattr(interface, "parent_id", None) is None @@ -93,22 +93,38 @@ def _source_bases(template, historical_bases, ambiguous_bases): return (template.resolved, *unambiguous) -def _template_candidates(rule, variables, by_name, template, source_bases): - """Return every complete flat family that *template* recovers from *source_bases*.""" +def flat_family_bases(rule, variables, interfaces, catalog): + """Return ``(template base, source base)`` for every base a flat family could be named from. + + The template base is the name the rule resolves for this module now; the source base is the one + an installed family still spells, which differs after a virtual-chassis renumber. A historical + base more than one template could claim is dropped: the rows it names are not certainly one + family's, and neither renaming nor converting them is this plugin's guess to make. + """ + if rule.channel_count <= 0: + return () + templates = catalog.get() + historical_by_template = { + template.pk: _historical_bases(rule, variables, template, interfaces) for template in templates + } + ambiguous_bases = _ambiguous_bases(historical_by_template) + return tuple( + (template.resolved, source_base) + for template in templates + for source_base in _source_bases(template, historical_by_template[template.pk], ambiguous_bases) + ) + + +def family_names_for(rule, variables, base_name, source_base): + """Return the names the rule intends for the family and the names it still spells, or None.""" try: - target_names = flat_family_names(rule, variables, template.resolved) + target_names = flat_family_names(rule, variables, base_name) + source_names = flat_family_names(rule, variables, source_base) except (TypeError, ValueError): - return [] - candidates = [] - for source_base in source_bases: - try: - source_names = flat_family_names(rule, variables, source_base) - except (TypeError, ValueError): - continue - if len(set(source_names)) != len(source_names) or not all(name in by_name for name in source_names): - continue - candidates.append((template.resolved, target_names, tuple(by_name[name] for name in source_names))) - return candidates + return None + if len(set(source_names)) != len(source_names): + return None + return target_names, source_names def _singly_claimed(candidates): @@ -120,29 +136,37 @@ def _singly_claimed(candidates): return [candidate for candidate in candidates if all(claims[member.pk] == 1 for member in candidate[2])] -def _flat_candidates(rule, variables, interfaces, catalog): - """Return complete, unambiguous flat-family candidates for *module*.""" - if rule.channel_count <= 0 or rule.breakout_mode != BreakoutModeChoices.FLAT: - return [] +def flat_family_candidates(rule, variables, interfaces, catalog): + """Return complete, unambiguous flat-family candidates on this module. - by_name = {interface.name: interface for interface in interfaces if _is_plain_interface(interface)} + A flat family carries the names the rule's channel range spells, and a flat rule and the + channelized rule it later became spell those identically, so the caller decides whether the + rule's current breakout mode makes these families its own to rename or its own to convert. + """ + by_name = {interface.name: interface for interface in interfaces if is_plain_interface(interface)} if not by_name: return [] - templates = catalog.get() - historical_by_template = { - template.pk: _historical_bases(rule, variables, template, interfaces) for template in templates - } - ambiguous_bases = _ambiguous_bases(historical_by_template) - candidates = [] - for template in templates: - source_bases = _source_bases(template, historical_by_template[template.pk], ambiguous_bases) - for candidate in _template_candidates(rule, variables, by_name, template, source_bases): - if candidate not in candidates: # pragma: no branch - duplicates require historical matchers - candidates.append(candidate) + for base_name, source_base in flat_family_bases(rule, variables, interfaces, catalog): + names = family_names_for(rule, variables, base_name, source_base) + if names is None: + continue + target_names, source_names = names + if not all(name in by_name for name in source_names): + continue + candidate = (base_name, target_names, tuple(by_name[name] for name in source_names)) + if candidate not in candidates: # pragma: no branch - duplicates require historical matchers + candidates.append(candidate) return _singly_claimed(candidates) +def _flat_candidates(rule, variables, interfaces, catalog): + """Return the flat families a flat-mode rule owns on this module.""" + if rule.breakout_mode != BreakoutModeChoices.FLAT: + return [] + return flat_family_candidates(rule, variables, interfaces, catalog) + + def _flat_plan(module, db_alias, target_names, interfaces): """Build one immutable plan from a complete flat-family candidate.""" members = tuple( @@ -220,7 +244,7 @@ def _channelized_plans(module, rule, variables, db_alias, interfaces, catalog): return plans -class _TemplateNames: +class TemplateNames: """The module type's resolved template names, read only where a plan needs them.""" def __init__(self, module): @@ -234,6 +258,21 @@ def get(self): return self._templates +def interfaces_by_module(modules): + """Load every interface of a module batch in one query, in stable per-module order.""" + by_module: dict[int, list] = {module.pk: [] for module in modules} + if not by_module: + return by_module + rows = ( + Interface.objects.using(module_db_alias(modules[0])) + .filter(module_id__in=list(by_module)) + .order_by("module_id", "name") + ) + for interface in rows: + by_module[interface.module_id].append(interface) + return by_module + + def plan_interface_rename(module, rule, variables, interface) -> InstalledFamilyPlan: """Return the plan that renames one interface which belongs to no family.""" status, reason, target_name = None, "", interface.name @@ -268,7 +307,7 @@ def plan_installed_families(module, rule, variables, interfaces=None) -> Install db_alias = module_db_alias(module) if interfaces is None: interfaces = list(Interface.objects.using(db_alias).filter(module_id=module.pk).order_by("pk")) - catalog = _TemplateNames(module) + catalog = TemplateNames(module) plans = _channelized_plans(module, rule, variables, db_alias, interfaces, catalog) plans.extend( _flat_plan(module, db_alias, target_names, members) diff --git a/netbox_interface_name_rules/jobs.py b/netbox_interface_name_rules/jobs.py index 256c8d8..7bcf10d 100644 --- a/netbox_interface_name_rules/jobs.py +++ b/netbox_interface_name_rules/jobs.py @@ -62,13 +62,14 @@ def run(self, *args, **kwargs): self.logger.warning("InterfaceNameRule with pk=%s does not exist; skipping.", rule_id) return - conflicts = [] try: - count = convert_flat_families(rule, conflicts=conflicts) + outcome = convert_flat_families(rule) except Exception as exc: self.logger.exception("Failed to convert families for rule '%s': %s", rule_id, exc) raise - self.logger.info("Converted %d interface family(ies) using rule '%s'", count, rule) - if conflicts: - self.logger.warning("%d family(ies) skipped — the plugin log names each one.", len(conflicts)) + self.logger.info("Converted %d interface family(ies) using rule '%s'", len(outcome.changed_families), rule) + if outcome.blocked_families: + self.logger.warning( + "%d family(ies) skipped — the plugin log names each one.", len(outcome.blocked_families) + ) diff --git a/netbox_interface_name_rules/tests/test_conversion.py b/netbox_interface_name_rules/tests/test_conversion.py index 34771bb..1061bd9 100644 --- a/netbox_interface_name_rules/tests/test_conversion.py +++ b/netbox_interface_name_rules/tests/test_conversion.py @@ -19,9 +19,9 @@ from unittest import skipIf, skipUnless from unittest.mock import patch -from core.models import Job, ObjectType +from core.models import Job, ObjectChange, ObjectType from dcim.choices import InterfaceModeChoices -from dcim.models import Cable, Interface +from dcim.models import Cable, Interface, Module from django.contrib.auth import get_user_model from django.contrib.messages import get_messages from django.db import connection @@ -38,7 +38,10 @@ find_convertible_families, supports_channelization, ) +from netbox_interface_name_rules.family import FamilyStatus, execute_conversion, plan_module_conversions +from netbox_interface_name_rules.family.template_names import BAY_CHAIN_RELATIONS from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.naming import build_variables from netbox_interface_name_rules.tests.test_breakout_mode import ( CHANNELIZED, FLAT, @@ -92,9 +95,13 @@ def _iface(self, name): return Interface.objects.get(device=self.device, name=name) def _verdicts(self, limit=None): - """Return just the scan's verdicts; the 'more families' flag is asserted where it is the point.""" - verdicts, _ = find_convertible_families(self.rule, limit=limit) - return verdicts + """Return just the scan's candidates; the 'more families' flag is asserted where it is the point.""" + return find_convertible_families(self.rule, limit=limit).candidates + + @staticmethod + def _converted(outcome): + """Return how many families a conversion batch actually rewrote.""" + return len(outcome.changed_families) @staticmethod def _flat_names(position): @@ -133,30 +140,30 @@ def test_the_flat_family_is_offered_for_conversion(self): verdicts = self._verdicts() self.assertEqual(len(verdicts), 1) - self.assertTrue(verdicts[0]["convertible"]) - self.assertEqual(verdicts[0]["reason"], "") + self.assertTrue(verdicts[0].convertible) + self.assertEqual(verdicts[0].reason, "") def test_the_verdict_is_keyed_on_the_ch0_row(self): """The ch-0 interface is the physical row and the pk the confirm form submits.""" verdict = self._verdicts()[0] - self.assertEqual(verdict["interface"].pk, self._iface("xe-0/0/3:0").pk) - self.assertEqual(verdict["current_name"], "xe-0/0/3:0") - self.assertEqual(verdict["module"].pk, self.module.pk) + self.assertEqual(verdict.interface.pk, self._iface("xe-0/0/3:0").pk) + self.assertEqual(verdict.current_name, "xe-0/0/3:0") + self.assertEqual(verdict.module.pk, self.module.pk) def test_the_verdict_names_the_family_as_it_is_and_as_it_would_be(self): """An operator confirms a rewrite of named rows, so both name sets have to be on the page.""" verdict = self._verdicts()[0] - self.assertEqual(verdict["current_names"], self._flat_names("3")) - self.assertEqual(verdict["new_names"], ["et-0/0/3", *self._flat_names("3")]) + self.assertEqual(list(verdict.current_names), self._flat_names("3")) + self.assertEqual(list(verdict.new_names), ["et-0/0/3", *self._flat_names("3")]) def test_the_verdict_describes_the_parent_and_its_channels(self): """The page must show which row becomes the parent and which channel each name binds to.""" verdict = self._verdicts()[0] self.assertEqual( - [(detail["role"], detail["channel_id"]) for detail in verdict["name_details"]], + [(detail.role, detail.channel_id) for detail in verdict.name_details], [("parent", None), ("channel", 1), ("channel", 2), ("channel", 3), ("channel", 4)], ) @@ -164,13 +171,13 @@ def test_the_verdict_says_where_the_ch0_configuration_lands(self): """The ch-0 row keeps its pk but loses its addresses — the operator has to be told which row gets them.""" verdict = self._verdicts()[0] - self.assertIn("xe-0/0/3:0", verdict["metadata_note"]) + self.assertIn("xe-0/0/3:0", verdict.metadata_note) def test_the_verdict_warns_that_the_ch0_interface_id_becomes_the_parent(self): """Automation keyed on the ch-0 interface id will address the parent afterwards, silently.""" verdict = self._verdicts()[0] - self.assertRegex(verdict["metadata_note"], r"(?i)\bid\b") + self.assertRegex(verdict.metadata_note, r"(?i)\bid\b") def test_finding_the_verdicts_converts_nothing(self): """The preflight really performs the conversion to validate it, so the rollback is the feature.""" @@ -185,7 +192,7 @@ def test_a_rule_without_a_parent_template_offers_no_conversion(self): """In a flat family the ch-0 row is the base: without a parent name there is nowhere to put it.""" self._switch_to_channelized(parent_name_template="") - self.assertEqual(self._verdicts(), []) + self.assertEqual(self._verdicts(), ()) def test_a_flat_rule_offers_no_conversion(self): """The rule still describes the flat topology, so its families are not the wrong shape.""" @@ -193,14 +200,14 @@ def test_a_flat_rule_offers_no_conversion(self): self.rule.parent_name_template = "" self.rule.save() - self.assertEqual(self._verdicts(), []) + self.assertEqual(self._verdicts(), ()) def test_a_rule_without_channels_offers_no_conversion(self): """No channel count means no family to identify — there is nothing to convert against.""" self.rule.channel_count = 0 self.rule.save() - self.assertEqual(self._verdicts(), []) + self.assertEqual(self._verdicts(), ()) def test_a_port_the_rule_never_touched_is_not_a_conversion_candidate(self): """A raw port is an ordinary apply, not a conversion: no flat family exists on it yet.""" @@ -208,21 +215,21 @@ def test_a_port_the_rule_never_touched_is_not_a_conversion_candidate(self): iface.delete() Interface.objects.filter(pk=self._iface("xe-0/0/3:0").pk).update(name="3") - self.assertEqual(self._verdicts(), []) + self.assertEqual(self._verdicts(), ()) def test_a_disabled_rule_offers_no_conversion(self): """A disabled rule renames nothing; offering it the most invasive rewrite of all would be worse.""" self.rule.enabled = False self.rule.save() - self.assertEqual(self._verdicts(), []) + self.assertEqual(self._verdicts(), ()) def test_a_converted_family_is_not_offered_again(self): """It is a native family now; offering it again would invite a second, duplicate conversion.""" base = self._iface("xe-0/0/3:0") convert_flat_families(self.rule, [base.pk]) - self.assertEqual(self._verdicts(), []) + self.assertEqual(self._verdicts(), ()) @skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) @@ -316,7 +323,7 @@ def test_the_converted_family_validates(self): def test_conversion_reports_how_many_families_it_converted(self): """The Apply view reports the count back to the operator, so it counts families, not rows.""" - self.assertEqual(self._convert(self.base), 1) + self.assertEqual(self._converted(self._convert(self.base)), 1) def test_only_the_selected_family_is_converted(self): """Conversion is per family and confirmed per family; an unselected one must not move.""" @@ -326,13 +333,13 @@ def test_only_the_selected_family_is_converted(self): def test_converting_without_a_selection_converts_every_convertible_family(self): """This is the batch the background job runs after the operator confirms the whole rule.""" - self.assertEqual(self._convert(), 2) + self.assertEqual(self._converted(self._convert()), 2) self.assertEqual(self._names(self.module), self._channelized_names("3")) self.assertEqual(self._names(self.other_module), self._channelized_names("4")) def test_converting_an_empty_selection_does_nothing(self): """An empty confirmation is not 'convert everything' — that would be the worst possible default.""" - self.assertEqual(convert_flat_families(self.rule, []), 0) + self.assertEqual(self._converted(convert_flat_families(self.rule, [])), 0) self._assert_still_flat(self.module, "3") def test_a_second_conversion_run_leaves_the_family_alone(self): @@ -340,7 +347,7 @@ def test_a_second_conversion_run_leaves_the_family_alone(self): self._convert(self.base) child_pks = dict(Interface.objects.filter(module=self.module).values_list("name", "pk")) - self.assertEqual(convert_flat_families(self.rule, [self.base.pk]), 0) + self.assertEqual(self._converted(convert_flat_families(self.rule, [self.base.pk])), 0) self.assertEqual(dict(Interface.objects.filter(module=self.module).values_list("name", "pk")), child_pks) def test_a_disabled_rule_converts_nothing_when_a_family_is_confirmed(self): @@ -348,7 +355,7 @@ def test_a_disabled_rule_converts_nothing_when_a_family_is_confirmed(self): self.rule.enabled = False self.rule.save() - self.assertEqual(self._convert(self.base), 0) + self.assertEqual(self._converted(self._convert(self.base)), 0) self._assert_still_flat(self.module, "3") def test_a_disabled_rule_converts_nothing_in_the_whole_rule_batch(self): @@ -356,7 +363,7 @@ def test_a_disabled_rule_converts_nothing_in_the_whole_rule_batch(self): self.rule.enabled = False self.rule.save() - self.assertEqual(self._convert(), 0) + self.assertEqual(self._converted(self._convert()), 0) self._assert_still_flat(self.module, "3") self._assert_still_flat(self.other_module, "4") @@ -489,9 +496,9 @@ def setUp(self): def _blocked_verdict(self): """Return the verdict for the family in bay 3, asserting it is blocked.""" - verdicts = {verdict["current_name"]: verdict for verdict in self._verdicts()} + verdicts = {verdict.current_name: verdict for verdict in self._verdicts()} verdict = verdicts["xe-0/0/3:0"] - self.assertFalse(verdict["convertible"], verdict) + self.assertFalse(verdict.convertible, verdict) return verdict def _cable_up(self, iface): @@ -499,6 +506,14 @@ def _cable_up(self, iface): peer = Interface.objects.create(device=self.device, name=f"peer-{iface.name}", type=PLAIN_TYPE) Cable.objects.create(a_terminations=[iface], b_terminations=[peer]) + def _plan_for(self, base): + """Return the conversion plan the scan builds for the family *base* heads.""" + module = Module.objects.select_related(*BAY_CHAIN_RELATIONS).get(pk=base.module_id) + variables = build_variables(module.module_bay, device=module.device) + interfaces = list(Interface.objects.filter(module_id=module.pk).order_by("name")) + plans = plan_module_conversions(module, self.rule, variables, interfaces) + return next(plan for plan in plans if plan.base.pk == base.pk) + def _bind_to_another_family(self, name): """Move the interface called *name* into a second, genuine channelized family on the module.""" parent = Interface.objects.create( @@ -513,29 +528,25 @@ def _bind_to_another_family(self, name): return parent def test_a_base_renamed_between_scan_and_convert_refuses_cleanly(self): - """The ch-0 lookup mirrors the sibling checks: a row that vanished mid-race refuses, never crashes.""" - from netbox_interface_name_rules import engine - - family = next(f for f in engine._conversion_families(self.rule) if f.base.pk == self.base.pk) + """Execution revalidates the snapshot it planned against: a row edited mid-race refuses.""" + plan = self._plan_for(self.base) self.base.name = "renamed-by-a-concurrent-request" self.base.save() - reason = engine._convert_family(self.rule, family, commit=True) + outcome = execute_conversion(plan) - self.assertIn("xe-0/0/3:0", reason) + self.assertEqual(outcome.status, FamilyStatus.STALE) self.assertFalse(Interface.objects.filter(module=self.module, channel_id__isnull=False).exists()) def test_a_base_replaced_between_scan_and_convert_refuses_cleanly(self): - """A same-named replacement is not the scanned row: conversion refuses it instead of rewriting a stranger.""" - from netbox_interface_name_rules import engine - - family = next(f for f in engine._conversion_families(self.rule) if f.base.pk == self.base.pk) + """A same-named replacement is not the scanned row: conversion refuses it rather than rewrite a stranger.""" + plan = self._plan_for(self.base) self.base.delete() Interface.objects.create(device=self.device, module=self.module, name="xe-0/0/3:0", type=PLAIN_TYPE) - reason = engine._convert_family(self.rule, family, commit=True) + outcome = execute_conversion(plan) - self.assertIn("xe-0/0/3:0", reason) + self.assertEqual(outcome.status, FamilyStatus.STALE) self._assert_still_flat(self.module, "3") def test_a_cabled_sibling_blocks_the_family(self): @@ -544,14 +555,14 @@ def test_a_cabled_sibling_blocks_the_family(self): verdict = self._blocked_verdict() - self.assertIn("xe-0/0/3:2", verdict["reason"]) - self.assertIn("cable", verdict["reason"].lower()) + self.assertIn("xe-0/0/3:2", verdict.reason) + self.assertIn("cable", verdict.reason.lower()) def test_a_cabled_sibling_is_not_partially_converted(self): """Blocking after the parent is written would leave the family in neither topology.""" self._cable_up(self._iface("xe-0/0/3:2")) - self.assertEqual(convert_flat_families(self.rule, [self.base.pk]), 0) + self.assertEqual(self._converted(convert_flat_families(self.rule, [self.base.pk])), 0) self._assert_still_flat(self.module, "3") def test_an_occupied_parent_target_blocks_the_family(self): @@ -560,13 +571,13 @@ def test_an_occupied_parent_target_blocks_the_family(self): verdict = self._blocked_verdict() - self.assertIn("et-0/0/3", verdict["reason"]) + self.assertIn("et-0/0/3", verdict.reason) def test_an_occupied_parent_target_is_not_partially_converted(self): """Nothing is written before every name the family needs is known to be free.""" Interface.objects.create(device=self.device, name="et-0/0/3", type=PLAIN_TYPE) - self.assertEqual(convert_flat_families(self.rule, [self.base.pk]), 0) + self.assertEqual(self._converted(convert_flat_families(self.rule, [self.base.pk])), 0) self._assert_still_flat(self.module, "3") def test_a_missing_sibling_blocks_the_family(self): @@ -575,13 +586,22 @@ def test_a_missing_sibling_blocks_the_family(self): verdict = self._blocked_verdict() - self.assertIn("xe-0/0/3:2", verdict["reason"]) + self.assertIn("xe-0/0/3:2", verdict.reason) + + def test_a_missing_sibling_is_still_shown_with_what_it_would_become(self): + """Dropping the family from the page would read as 'nothing here to convert', which is worse.""" + self._iface("xe-0/0/3:2").delete() + + verdict = self._blocked_verdict() + + self.assertEqual(list(verdict.current_names), ["xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:3"]) + self.assertEqual(list(verdict.new_names), ["et-0/0/3", *self._flat_names("3")]) def test_a_missing_sibling_is_not_partially_converted(self): """Converting three of four rows would silently drop a channel from the family.""" self._iface("xe-0/0/3:2").delete() - self.assertEqual(convert_flat_families(self.rule, [self.base.pk]), 0) + self.assertEqual(self._converted(convert_flat_families(self.rule, [self.base.pk])), 0) self.assertFalse(Interface.objects.filter(module=self.module, channels__isnull=False).exists()) self.assertFalse(Interface.objects.filter(module=self.module, channel_id__isnull=False).exists()) @@ -597,8 +617,8 @@ def test_a_sibling_that_cannot_be_a_channel_blocks_the_family(self): verdict = self._blocked_verdict() - self.assertIn("xe-0/0/3:1", verdict["reason"]) - self.assertIn("channel", verdict["reason"].lower()) + self.assertIn("xe-0/0/3:1", verdict.reason) + self.assertIn("channel", verdict.reason.lower()) def test_a_sibling_that_cannot_be_a_channel_is_not_partially_converted(self): """The dry run happens inside a rolled-back transaction, so a late failure still writes nothing.""" @@ -606,7 +626,7 @@ def test_a_sibling_that_cannot_be_a_channel_is_not_partially_converted(self): sibling.channels = 2 sibling.save() - self.assertEqual(convert_flat_families(self.rule, [self.base.pk]), 0) + self.assertEqual(self._converted(convert_flat_families(self.rule, [self.base.pk])), 0) self.assertEqual(self._names(self.module), self._flat_names("3")) self.assertIsNone(self._iface("xe-0/0/3:0").channels) @@ -616,14 +636,14 @@ def test_a_sibling_bound_to_another_family_blocks_the_family(self): verdict = self._blocked_verdict() - self.assertIn("xe-0/0/3:1", verdict["reason"]) - self.assertIn("et-0/0/9", verdict["reason"]) + self.assertIn("xe-0/0/3:1", verdict.reason) + self.assertIn("et-0/0/9", verdict.reason) def test_a_sibling_bound_to_another_family_is_not_taken_from_it(self): """Converting past it would silently drop a channel from a family nobody asked about.""" parent = self._bind_to_another_family("xe-0/0/3:1") - self.assertEqual(convert_flat_families(self.rule, [self.base.pk]), 0) + self.assertEqual(self._converted(convert_flat_families(self.rule, [self.base.pk])), 0) foreign_child = self._iface("xe-0/0/3:1") self.assertEqual(foreign_child.parent_id, parent.pk) @@ -634,19 +654,19 @@ def test_a_sibling_bound_to_another_family_is_not_taken_from_it(self): def test_a_blocked_family_is_reported_to_the_caller(self): """The Apply view tells the operator how many families it refused, not just that nothing happened.""" self._cable_up(self._iface("xe-0/0/3:2")) - conflicts: list = [] - convert_flat_families(self.rule, [self.base.pk], conflicts=conflicts) + outcome = convert_flat_families(self.rule, [self.base.pk]) - self.assertEqual(len(conflicts), 1) - self.assertEqual(conflicts[0]["interface_pk"], self.base.pk) - self.assertEqual(conflicts[0]["attempted_name"], "et-0/0/3") + self.assertEqual(len(outcome.blocked_families), 1) + blocked = outcome.blocked_families[0] + self.assertEqual(blocked.members[0].interface_pk, self.base.pk) + self.assertEqual(blocked.members[0].target_name, "et-0/0/3") def test_a_blocked_family_does_not_stop_the_batch(self): """One unconvertible family must not cost the operator every other family in the run.""" self._cable_up(self._iface("xe-0/0/3:2")) - self.assertEqual(convert_flat_families(self.rule), 1) + self.assertEqual(self._converted(convert_flat_families(self.rule)), 1) self._assert_still_flat(self.module, "3") self.assertEqual(self._names(self.other_module), self._channelized_names("4")) @@ -688,7 +708,7 @@ def test_the_page_offers_the_conversion(self): self.assertEqual(response.status_code, 200) verdicts = response.context["conversions"] - self.assertEqual([verdict["current_name"] for verdict in verdicts], ["xe-0/0/3:0"]) + self.assertEqual([verdict.current_name for verdict in verdicts], ["xe-0/0/3:0"]) def test_the_page_renders_a_confirm_action_of_its_own(self): """Conversion rewrites rows; it must never ride along on the ordinary apply button.""" @@ -707,7 +727,7 @@ def test_the_page_shows_the_family_it_would_convert(self): def test_the_page_states_where_the_ch0_configuration_goes(self): """The surprising part of the conversion is the one the page has to spell out.""" response = self.client.get(self._url()) - note = response.context["conversions"][0]["metadata_note"] + note = response.context["conversions"][0].metadata_note self.assertIn(escape(note), response.content.decode()) @@ -968,24 +988,24 @@ def _dry_runs(captured): def test_an_unlimited_scan_examines_every_family(self): """The background job's batch is unbounded by design, and so is a scan without a limit.""" - verdicts, has_more = find_convertible_families(self.rule) + preview = find_convertible_families(self.rule) - self.assertEqual(len(verdicts), 3) - self.assertFalse(has_more) + self.assertEqual(len(preview.candidates), 3) + self.assertFalse(preview.has_more) def test_the_scan_stops_at_the_limit_and_says_more_are_waiting(self): """The page has to distinguish 'that is all of them' from 'that is as far as this run went'.""" - verdicts, has_more = find_convertible_families(self.rule, limit=2) + preview = find_convertible_families(self.rule, limit=2) - self.assertEqual(len(verdicts), 2) - self.assertTrue(has_more) + self.assertEqual(len(preview.candidates), 2) + self.assertTrue(preview.has_more) def test_a_limit_the_families_never_reach_reports_nothing_waiting(self): """A limit above the fleet is not a reason to tell the operator families were left out.""" - verdicts, has_more = find_convertible_families(self.rule, limit=5) + preview = find_convertible_families(self.rule, limit=5) - self.assertEqual(len(verdicts), 3) - self.assertFalse(has_more) + self.assertEqual(len(preview.candidates), 3) + self.assertFalse(preview.has_more) def test_the_families_past_the_limit_are_never_dry_run(self): """The dry run is the scan's whole cost: capping the verdict list alone would buy nothing.""" @@ -999,14 +1019,27 @@ def test_the_families_past_the_limit_are_never_dry_run(self): def test_a_blocked_family_counts_against_the_limit(self): """It costs the same dry run as a convertible one, so it has to bound the scan the same way.""" + for position in ("3", "4", "5"): + sibling = self._iface(f"xe-0/0/{position}:2") + peer = Interface.objects.create(device=self.device, name=f"peer-{sibling.name}", type=PLAIN_TYPE) + Cable.objects.create(a_terminations=[sibling], b_terminations=[peer]) + + preview = find_convertible_families(self.rule, limit=2) + + self.assertEqual(len(preview.candidates), 2) + self.assertFalse(any(candidate.convertible for candidate in preview.candidates), preview) + self.assertTrue(preview.has_more) + + def test_an_incomplete_family_counts_against_the_limit(self): + """A family refused before a row is locked still occupies a slot the operator can see.""" for position in ("3", "4", "5"): self._iface(f"xe-0/0/{position}:2").delete() - verdicts, has_more = find_convertible_families(self.rule, limit=2) + preview = find_convertible_families(self.rule, limit=2) - self.assertEqual(len(verdicts), 2) - self.assertFalse(any(verdict["convertible"] for verdict in verdicts), verdicts) - self.assertTrue(has_more) + self.assertEqual(len(preview.candidates), 2) + self.assertFalse(any(candidate.convertible for candidate in preview.candidates), preview) + self.assertTrue(preview.has_more) def test_the_scan_converts_nothing_whatever_the_limit(self): """A capped scan is still a preview; stopping early must not leave a half-converted fleet.""" @@ -1016,6 +1049,82 @@ def test_the_scan_converts_nothing_whatever_the_limit(self): self._assert_still_flat(module, position) +@skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) +class ConversionChangelogTest(ConversionTestCase): + """The rows conversion carries onto the new channel are written the way the family write is. + + Addresses and FHRP group assignments are objects an operator owns and audits. Moving them with + a queryset update would relocate them with no validation, no signal and no changelog entry, so + the device history would show the family rewritten and the addresses on it moved by nobody. + """ + + @classmethod + def setUpTestData(cls): + cls.superuser = User.objects.create_superuser( + username="convlog", password=TEST_PASSWORD, email="convlog@example.com" + ) + manufacturer, cls.device = _build_device("ConvLog", ["3"]) + cls.module_type = _plain_module_type(manufacturer, "ConvLog-QSFP") + cls.rule = cls._flat_rule(cls.module_type) + cls.fhrp_group = FHRPGroup.objects.create(group_id=81, protocol="vrrp2") + + def setUp(self): + """Address ch-0, give it a first-hop group, then convert the family from the Apply page.""" + self.module, self.bay = self._install(self.module_type, "3") + self._switch_to_channelized() + self.base = self._iface("xe-0/0/3:0") + self.address = IPAddress.objects.create(address="192.0.2.9/24", assigned_object=self.base) + self.assignment = FHRPGroupAssignment.objects.create(group=self.fhrp_group, interface=self.base, priority=10) + self.client.force_login(self.superuser) + url = reverse("plugins:netbox_interface_name_rules:interfacenamerule_apply_detail", kwargs={"pk": self.rule.pk}) + with self.captureOnCommitCallbacks(execute=True): + self.response = self.client.post(url, {"action": "convert", "convert_ids": [str(self.base.pk)]}) + self.channel = self._child(self.module, 1) + + def _changes_for(self, instance): + """Return the changelog entries recorded for *instance*.""" + return ObjectChange.objects.filter( + changed_object_type=ObjectType.objects.get_for_model(instance), + changed_object_id=instance.pk, + ) + + def test_the_conversion_succeeded(self): + """The changelog assertions below only mean something once the family really converted.""" + self.assertEqual(self.response.status_code, 302) + self.assertEqual(self._names(self.module), self._channelized_names("3")) + + def test_the_carried_address_lands_on_the_channel(self): + """The address was reachable over one 10G channel, and still is.""" + self.address.refresh_from_db() + + self.assertEqual(self.address.assigned_object_id, self.channel.pk) + + def test_the_carried_address_is_recorded_in_the_changelog(self): + """An operator auditing the device has to see who moved the address, and when.""" + changes = self._changes_for(self.address) + + self.assertTrue(changes.exists(), "the carried address left no changelog entry") + self.assertEqual(changes.latest("time").postchange_data["assigned_object_id"], self.channel.pk) + + def test_the_carried_fhrp_assignment_lands_on_the_channel(self): + """The group is a gateway on the addressed interface, which is now the channel.""" + self.assignment.refresh_from_db() + + self.assertEqual(self.assignment.interface_id, self.channel.pk) + + def test_the_carried_fhrp_assignment_is_recorded_in_the_changelog(self): + """Same audit trail: a first-hop gateway must not change interface silently.""" + changes = self._changes_for(self.assignment) + + self.assertTrue(changes.exists(), "the carried FHRP group assignment left no changelog entry") + self.assertEqual(changes.latest("time").postchange_data["interface_id"], self.channel.pk) + + def test_the_family_rows_are_recorded_in_the_changelog(self): + """The carried rows are held to the standard the family write already meets.""" + self.assertTrue(self._changes_for(self.channel).exists()) + self.assertTrue(self._changes_for(self._parent(self.module)).exists()) + + @skipUnless(supports_channelization(), REQUIRES_CHANNELIZATION) class ConversionJobTest(ConversionTestCase): """The background job runs the batch an operator confirmed for the whole rule.""" @@ -1112,7 +1221,7 @@ def test_the_operator_is_offered_the_conversion_after_switching_the_rule(self): verdicts = self._verdicts() self.assertEqual(len(verdicts), 1) - self.assertTrue(verdicts[0]["convertible"], verdicts[0]["reason"]) + self.assertTrue(verdicts[0].convertible, verdicts[0].reason) self._assert_still_flat(self.module, "3") def test_the_conversion_produces_the_juniper_family(self): @@ -1186,14 +1295,14 @@ def setUp(self): def test_no_family_is_offered_for_conversion(self): """There is no channelized topology on this release, so no family can be converted into one.""" - self.assertEqual(self._verdicts(), []) + self.assertEqual(self._verdicts(), ()) def test_converting_refuses_gracefully_and_says_so(self): """A refusal has to be visible: a silent zero looks exactly like 'nothing needed converting'.""" with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: - converted = convert_flat_families(self.rule, [self.base.pk]) + outcome = convert_flat_families(self.rule, [self.base.pk]) - self.assertEqual(converted, 0) + self.assertEqual(self._converted(outcome), 0) self.assertEqual(self._names(self.module), self._flat_names("3")) self.assertTrue(any("channeliz" in line.lower() for line in logs.output), logs.output) diff --git a/netbox_interface_name_rules/tests/test_vc_drift.py b/netbox_interface_name_rules/tests/test_vc_drift.py index 553036c..4bbe931 100644 --- a/netbox_interface_name_rules/tests/test_vc_drift.py +++ b/netbox_interface_name_rules/tests/test_vc_drift.py @@ -713,12 +713,12 @@ def test_a_renumbered_family_is_identified_through_its_wrapped_base(self): self.assertEqual(self._names(module), [f"brk-xe-1/0/3:{channel}" for channel in range(4)]) self._switch_to_channelized(rule) - verdicts, _ = find_convertible_families(rule) + candidates = find_convertible_families(rule).candidates - self.assertEqual(len(verdicts), 1) - self.assertTrue(verdicts[0]["convertible"], verdicts[0]["reason"]) - self.assertEqual(verdicts[0]["current_names"], [f"brk-xe-1/0/3:{channel}" for channel in range(4)]) - self.assertEqual(verdicts[0]["new_names"][0], "et-0/0/3") + self.assertEqual(len(candidates), 1) + self.assertTrue(candidates[0].convertible, candidates[0].reason) + self.assertEqual(list(candidates[0].current_names), [f"brk-xe-1/0/3:{channel}" for channel in range(4)]) + self.assertEqual(candidates[0].new_names[0], "et-0/0/3") def test_a_template_that_repeats_the_base_is_recovered_through_a_backreference(self): """One capture group and a backreference — a repeated ``{base}`` must not become a second group.""" @@ -728,11 +728,11 @@ def test_a_template_that_repeats_the_base_is_recovered_through_a_backreference(s self._renumber(2) self._switch_to_channelized(rule) - verdicts, _ = find_convertible_families(rule) + candidates = find_convertible_families(rule).candidates - self.assertEqual(len(verdicts), 1) - self.assertTrue(verdicts[0]["convertible"], verdicts[0]["reason"]) - self.assertEqual(verdicts[0]["new_names"][0], "et-0/0/4") + self.assertEqual(len(candidates), 1) + self.assertTrue(candidates[0].convertible, candidates[0].reason) + self.assertEqual(candidates[0].new_names[0], "et-0/0/4") def test_a_base_inside_an_arithmetic_expression_is_skipped_cleanly(self): """A non-numeric sentinel cannot go through the arithmetic validator; the family is simply not offered.""" @@ -742,10 +742,10 @@ def test_a_base_inside_an_arithmetic_expression_is_skipped_cleanly(self): self._renumber(2) self._switch_to_channelized(rule) - verdicts, has_more = find_convertible_families(rule) + preview = find_convertible_families(rule) - self.assertEqual(verdicts, []) - self.assertFalse(has_more) + self.assertEqual(preview.candidates, ()) + self.assertFalse(preview.has_more) self.assertEqual(self._names(module), [f"p16:{channel}" for channel in range(4)]) def test_a_family_matcher_that_captures_two_bases_is_not_offered(self): @@ -765,9 +765,7 @@ def test_a_family_matcher_that_captures_two_bases_is_not_offered(self): self._join(VirtualChassis.objects.create(name="vcconv-vc2"), 5, device=standalone) self._switch_to_channelized(rule) - verdicts, _ = find_convertible_families(rule) - - self.assertEqual(verdicts, []) + self.assertEqual(find_convertible_families(rule).candidates, ()) def test_a_rule_without_a_base_is_identified_after_a_renumber(self): """Drift-immune by construction — asserted, not assumed, so the fix cannot regress it.""" @@ -777,8 +775,8 @@ def test_a_rule_without_a_base_is_identified_after_a_renumber(self): self._renumber(2) self._switch_to_channelized(rule, parent_name_template="pe-0/0/{bay_position}") - verdicts, _ = find_convertible_families(rule) + candidates = find_convertible_families(rule).candidates - self.assertEqual(len(verdicts), 1) - self.assertTrue(verdicts[0]["convertible"], verdicts[0]["reason"]) - self.assertEqual(verdicts[0]["new_names"][0], "pe-0/0/7") + self.assertEqual(len(candidates), 1) + self.assertTrue(candidates[0].convertible, candidates[0].reason) + self.assertEqual(candidates[0].new_names[0], "pe-0/0/7") diff --git a/netbox_interface_name_rules/tests/test_views.py b/netbox_interface_name_rules/tests/test_views.py index 1c69587..25d095c 100644 --- a/netbox_interface_name_rules/tests/test_views.py +++ b/netbox_interface_name_rules/tests/test_views.py @@ -206,7 +206,7 @@ def test_a_conversion_scan_failure_keeps_the_apply_preview(self): self.assertEqual(response.status_code, 200) self.assertEqual(len(response.context["preview"]), 1) # apply preview survives - self.assertEqual(response.context["conversions"], []) + self.assertEqual(response.context["conversions"], ()) msgs = [str(m) for m in get_messages(response.wsgi_request)] self.assertTrue(any("conversion" in m.lower() for m in msgs), msgs) diff --git a/netbox_interface_name_rules/views.py b/netbox_interface_name_rules/views.py index 77d353c..c4eca1a 100644 --- a/netbox_interface_name_rules/views.py +++ b/netbox_interface_name_rules/views.py @@ -432,6 +432,7 @@ class RuleApplyDetailView(generic.ObjectView): def get(self, request, **kwargs): """Render a preview of all interfaces that would be renamed by this rule.""" from .engine import find_convertible_families, find_interfaces_for_rule, supports_channelization + from .family import ConversionPreview rule = self.get_object(**kwargs) try: @@ -447,23 +448,23 @@ def get(self, request, **kwargs): # A conversion-scan failure must not blank the unrelated apply preview above. try: # Each family scanned costs a dry-run conversion, so the scan takes the same batch cap. - conversions, conversions_have_more = find_convertible_families(rule, limit=APPLY_BATCH_LIMIT) + preview_conversions = find_convertible_families(rule, limit=APPLY_BATCH_LIMIT) except (re.error, ValueError) as exc: logger.exception("Failed to compute the conversion preview for rule %s: %s", rule, exc) messages.error(request, f"Failed to compute the conversion preview: {exc}") - conversions, conversions_have_more = [], False + preview_conversions = ConversionPreview(candidates=()) except Exception as exc: logger.exception("Unexpected error computing the conversion preview for rule %s: %s", rule, exc) messages.error(request, f"Failed to compute the conversion preview: {type(exc).__name__}") - conversions, conversions_have_more = [], False + preview_conversions = ConversionPreview(candidates=()) return render( request, self.template_name, { "rule": rule, "preview": preview, - "conversions": conversions, - "conversions_have_more": conversions_have_more, + "conversions": preview_conversions.candidates, + "conversions_have_more": preview_conversions.has_more, "total_checked": total_checked, "batch_limit": APPLY_BATCH_LIMIT, "has_more": len(preview) >= APPLY_BATCH_LIMIT, @@ -507,16 +508,18 @@ def _convert(self, request, rule): f"Use Convert as Background Job to convert all of them.", ) return - conflicts = [] try: - count = convert_flat_families(rule, convert_ids, conflicts=conflicts) + outcome = convert_flat_families(rule, convert_ids) except Exception as e: logger.exception("Failed to convert families for rule %s: %s", rule, e) messages.error(request, f"Failed to convert families: {type(e).__name__}") return - messages.success(request, f"Converted {count} interface family(ies) to the channelized topology.") - if conflicts: - messages.warning(request, f"{len(conflicts)} family(ies) skipped — the plugin log names each one.") + converted = len(outcome.changed_families) + messages.success(request, f"Converted {converted} interface family(ies) to the channelized topology.") + if outcome.blocked_families: + messages.warning( + request, f"{len(outcome.blocked_families)} family(ies) skipped — the plugin log names each one." + ) def post(self, request, **kwargs): """Apply or convert (foreground batch or background job) and redirect back.""" From 666d7c6b67d005619a81aad89fff76df670bb336 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 12:53:00 +0200 Subject: [PATCH 29/74] test: write out-of-band renames the way another actor writes them Eight helpers simulated an edit this plugin did not make with a queryset update on the interface name column. That skipped NetBox's own machinery as well as ours, so the suite exercised a write path production never takes, and it needed a database that permits raw bulk writes to interface rows. This plugin registers receivers on Module and Device only, never on Interface, so a plain model save is already the out-of-band write: NetBox's signals fire and none of ours do. One shared helper says so in one place. --- .../tests/out_of_band.py | 17 +++++++++++++++++ .../tests/test_bulk_families.py | 3 ++- .../tests/test_conversion.py | 3 ++- .../tests/test_installed_families.py | 3 ++- .../tests/test_structural_families.py | 8 +++++--- .../tests/test_vc_drift.py | 7 ++++--- 6 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 netbox_interface_name_rules/tests/out_of_band.py diff --git a/netbox_interface_name_rules/tests/out_of_band.py b/netbox_interface_name_rules/tests/out_of_band.py new file mode 100644 index 0000000..1d005c8 --- /dev/null +++ b/netbox_interface_name_rules/tests/out_of_band.py @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Write interface rows the way an actor outside this plugin would.""" + + +def rename_out_of_band(interface, name): + """Rename *interface* through a real model save and return it. + + This is what an operator's edit, an import or another plugin does to a row this plugin later + finds changed. The plugin registers receivers on Module and Device only, never on Interface, so + a plain save runs NetBox's own machinery and none of ours: it is already the out-of-band write. + A queryset update would skip NetBox's machinery too, and would need a database that permits raw + bulk writes to interface rows. + """ + interface.name = name + interface.save() + return interface diff --git a/netbox_interface_name_rules/tests/test_bulk_families.py b/netbox_interface_name_rules/tests/test_bulk_families.py index 5f551f9..7f94e1e 100644 --- a/netbox_interface_name_rules/tests/test_bulk_families.py +++ b/netbox_interface_name_rules/tests/test_bulk_families.py @@ -46,6 +46,7 @@ ) from netbox_interface_name_rules.models import InterfaceNameRule from netbox_interface_name_rules.signals import _apply_rules_for_device_deferred +from netbox_interface_name_rules.tests.out_of_band import rename_out_of_band from netbox_interface_name_rules.tests.test_channelization import _channelized_module_type PLAIN_TYPE = InterfaceTypeChoices.TYPE_10GE_SFP_PLUS @@ -598,7 +599,7 @@ def test_a_sibling_whose_name_is_taken_is_skipped_and_the_rest_are_created(self) def test_a_base_renamed_after_planning_is_refused_as_stale(self): """Planning is not a lock: the row it described has to still be the row it finds.""" plan = self._plan() - Interface.objects.filter(pk=self.base.pk).update(name="moved") + rename_out_of_band(Interface.objects.get(pk=self.base.pk), "moved") outcome = execute_flat_family(plan) diff --git a/netbox_interface_name_rules/tests/test_conversion.py b/netbox_interface_name_rules/tests/test_conversion.py index 1061bd9..d65d79a 100644 --- a/netbox_interface_name_rules/tests/test_conversion.py +++ b/netbox_interface_name_rules/tests/test_conversion.py @@ -42,6 +42,7 @@ from netbox_interface_name_rules.family.template_names import BAY_CHAIN_RELATIONS from netbox_interface_name_rules.models import InterfaceNameRule from netbox_interface_name_rules.naming import build_variables +from netbox_interface_name_rules.tests.out_of_band import rename_out_of_band from netbox_interface_name_rules.tests.test_breakout_mode import ( CHANNELIZED, FLAT, @@ -213,7 +214,7 @@ def test_a_port_the_rule_never_touched_is_not_a_conversion_candidate(self): """A raw port is an ordinary apply, not a conversion: no flat family exists on it yet.""" for iface in Interface.objects.filter(module=self.module).exclude(name="xe-0/0/3:0"): iface.delete() - Interface.objects.filter(pk=self._iface("xe-0/0/3:0").pk).update(name="3") + rename_out_of_band(self._iface("xe-0/0/3:0"), "3") self.assertEqual(self._verdicts(), ()) diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index 4e0d262..49e7b16 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -40,6 +40,7 @@ ) from netbox_interface_name_rules.models import InterfaceNameRule from netbox_interface_name_rules.naming import evaluate_name_template +from netbox_interface_name_rules.tests.out_of_band import rename_out_of_band CHANNEL_TYPE = getattr(InterfaceTypeChoices, "TYPE_CHANNEL", "channel") PARENT_TYPE = InterfaceTypeChoices.TYPE_40GE_QSFP_PLUS @@ -279,7 +280,7 @@ def test_changed_member_makes_the_plan_stale_without_partial_execution(self): build_variables(self.bay, device=self.device), ) changed_pk = plan_set.plans[0].members[1].snapshot.pk - Interface.objects.filter(pk=changed_pk).update(name="operator-change") + rename_out_of_band(Interface.objects.get(pk=changed_pk), "operator-change") result = execute_installed_plan_set(plan_set) diff --git a/netbox_interface_name_rules/tests/test_structural_families.py b/netbox_interface_name_rules/tests/test_structural_families.py index 68538cc..38fa240 100644 --- a/netbox_interface_name_rules/tests/test_structural_families.py +++ b/netbox_interface_name_rules/tests/test_structural_families.py @@ -29,6 +29,7 @@ ) from netbox_interface_name_rules.family import names as family_names from netbox_interface_name_rules.models import InterfaceNameRule +from netbox_interface_name_rules.tests.out_of_band import rename_out_of_band from netbox_interface_name_rules.tests.test_breakout_mode import CHANNELIZED, _plain_module_type from netbox_interface_name_rules.tests.test_channelization import ( PLAIN_TYPE, @@ -140,9 +141,10 @@ def _interface(self, name): """Create one plain interface on the shared device.""" return Interface.objects.create(device=self.device, name=name, type=PLAIN_TYPE) - def _cascade(self, child, name): + @staticmethod + def _cascade(child, name): """Rename *child* the way NetBox's parent cascade does, without running the plugin.""" - Interface.objects.filter(pk=child.pk).update(name=name) + rename_out_of_band(child, name) def test_the_intended_name_is_restored_after_the_cascade(self): child = self._interface("et-0/0/3:1") @@ -299,7 +301,7 @@ def test_execution_creates_the_complete_family(self): def test_a_base_that_changed_after_planning_is_stale_and_untouched(self): module, _bay, plan = self._plan() - Interface.objects.filter(pk=plan.base.pk).update(name="renamed-by-someone-else") + rename_out_of_band(Interface.objects.get(pk=plan.base.pk), "renamed-by-someone-else") with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: outcome = execute_structural_family(plan) diff --git a/netbox_interface_name_rules/tests/test_vc_drift.py b/netbox_interface_name_rules/tests/test_vc_drift.py index 4bbe931..e8c8c22 100644 --- a/netbox_interface_name_rules/tests/test_vc_drift.py +++ b/netbox_interface_name_rules/tests/test_vc_drift.py @@ -56,6 +56,7 @@ ) from netbox_interface_name_rules.models import InterfaceNameRule from netbox_interface_name_rules.signals import _apply_rules_deferred +from netbox_interface_name_rules.tests.out_of_band import rename_out_of_band from netbox_interface_name_rules.tests.test_channelization import ( CHANNEL_TYPE, PARENT_TYPE, @@ -340,7 +341,7 @@ def test_a_matcher_that_claims_two_interfaces_renames_neither(self): module, bay = self._install_on(self.device, self.decoy_type, "3") self.assertEqual(self._names(module), ["mgmt-3", "xe-1/0/3"]) # An earlier rename left the plain template's interface sitting on the token template's fallback name. - Interface.objects.filter(module=module, name="mgmt-3").update(name="xe-0/0/3") + rename_out_of_band(Interface.objects.get(module=module, name="mgmt-3"), "xe-0/0/3") self._renumber(2) InterfaceNameRule.objects.create(module_type=self.decoy_type, name_template="et-{base}") @@ -362,7 +363,7 @@ def test_a_forced_re_apply_does_not_break_out_an_ambiguous_pair(self): downstream refuses the second one: the guard has to be the thing that stops it. """ module, _ = self._install_on(self.device, self.decoy_type, "3") - Interface.objects.filter(module=module, name="mgmt-3").update(name="xe-0/0/3") + rename_out_of_band(Interface.objects.get(module=module, name="mgmt-3"), "xe-0/0/3") InterfaceNameRule.objects.create( module_type=self.decoy_type, name_template="et-{base}:{channel}", channel_count=2, channel_start=0 ) @@ -519,7 +520,7 @@ def test_matching_takes_the_exact_only_path_without_the_constant(self): """Byte-identical pre-4.6 behaviour: a name only a matcher could claim is not a candidate.""" module, bay = self._install_on(self.device, self.module_type, "3") # Named explicitly, so the interface sits on a position variant whatever the release resolved. - Interface.objects.filter(module=module).update(name="xe-1/0/3") + rename_out_of_band(Interface.objects.get(module=module), "xe-1/0/3") self._renumber(2) InterfaceNameRule.objects.create(module_type=self.module_type, name_template="et-0/0/{bay_position}") From 247ea82509ab376c8ea52d94c415a0999d31dab6 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 13:12:54 +0200 Subject: [PATCH 30/74] refactor: install module families through the family package Module installation planned its families through the family package and then fell back to a private engine implementation for every interface no installed family claimed: a second flat-breakout builder, a second channelized-family builder and a second rename, each with its own collision handling. The install path and retroactive apply could therefore disagree about what a rule builds. Installation now plans the whole module with plan_module_families and executes every plan through the package, so one authoritative path builds and names a family whoever asks for it. The raw-name idempotency guard stays in the engine, where it belongs: it decides which planned families this path may touch, not what any of them mean. plan_module_families returns its installed and leftover plans separately, so the guard can hold back a leftover interface without holding back the family the module already carries. The decision to leave a standalone interface alone beside a channelized family now logs where it is made. Deletes the private family implementation the install path used: _apply_rule_with_family, _apply_rule_to_interface, _create_channel, _apply_channelized_rule and the four family rename helpers behind them. --- netbox_interface_name_rules/engine.py | 350 ++++-------------- .../family/__init__.py | 11 +- netbox_interface_name_rules/family/batch.py | 47 ++- .../tests/test_engine_advanced.py | 23 +- .../tests/test_installed_families.py | 2 +- 5 files changed, 121 insertions(+), 312 deletions(-) diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 420dc7b..86cebb7 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -16,7 +16,6 @@ from . import family as family_ops from . import naming, rule_selection from .choices import BreakoutModeChoices -from .family import names as family_names from .family import targets as family_targets from .family import template_names as family_template_names @@ -236,6 +235,47 @@ def _collect_unrenamed(interfaces, rule, raw_names, force_reapply, matchers=(), return _forced_channel_bases(interfaces, raw_names, matchers, module) +def _plan_base(plan): + """Return the interface facts a leftover plan is anchored on.""" + if isinstance(plan, family_ops.InstalledFamilyPlan): + return plan.members[0].snapshot + return plan.base + + +def _touches_a_family(plan) -> bool: + """Return whether *plan* acts on a family rather than one standalone interface.""" + if isinstance(plan, family_ops.InstalledFamilyPlan): + return plan.parent_pk is not None or len(plan.members) > 1 + return True + + +def _admitted_installed(plans, rule, raw_names, force_reapply, matchers, module): + """Return the installed families this install path should execute. + + A channelized family is always executed: its parent decides the family's names, and the raw-name + guard describes flat rows. A flat family is executed while the guard still claims a member of it. + """ + flat = [plan for plan in plans if plan.topology == family_ops.FamilyTopology.FLAT] + snapshots = [member.snapshot for plan in flat for member in plan.members] + selected = { + interface.pk for interface in _collect_unrenamed(snapshots, rule, raw_names, force_reapply, matchers, module) + } + return [ + plan + for plan in plans + if plan.topology == family_ops.FamilyTopology.CHANNELIZED or selected.intersection(plan.member_pks) + ] + + +def _admitted_leftover(plans, rule, raw_names, force_reapply, matchers, module): + """Return the plans for leftover interfaces the raw-name guard still claims.""" + bases = [_plan_base(plan) for plan in plans] + selected = { + interface.pk for interface in _collect_unrenamed(bases, rule, raw_names, force_reapply, matchers, module) + } + return [plan for plan, base in zip(plans, bases, strict=True) if base.pk in selected] + + def apply_interface_name_rules(module, module_bay, force_reapply=False): """Apply InterfaceNameRule rename after module installation. @@ -247,122 +287,52 @@ def apply_interface_name_rules(module, module_bay, force_reapply=False): ``force_reapply=True`` to skip this check and re-apply rules to ALL module interfaces (used when vc_position or other variables change). - A channelized parent and its channel subinterfaces are processed as one family: the parent - decides, the children follow it (see ``_apply_rule_with_family``). + Every rename and every creation goes through the family package, so this path builds and names + exactly what retroactive apply and the preview describe. Returns: Number of interfaces renamed/created, or 0 if no rule matched. """ - from dcim.models import Interface - device_type = module.device.device_type if module.device else None platform = module.device.platform if module.device else None rule = find_matching_rule(module.module_type, _get_parent_module_type(module_bay), device_type, platform) if not rule: return 0 + # One pin for the module: the raw-name matchers and the family planner resolve its templates once. + with family_ops.pinned_template_cache(): + return _apply_rule_to_module(rule, module, module_bay, force_reapply) + + +def _apply_rule_to_module(rule, module, module_bay, force_reapply): + """Plan and execute every family *rule* intends on *module*; see ``apply_interface_name_rules``.""" + from dcim.models import Interface variables = build_variables(module_bay, device=module.device) raw = _raw_name_matchers(module) raw_names = raw.names or {variables["bay_position"]} - plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=()) - family_outcome = family_ops.InstalledPlanSetOutcome(families=()) - if supports_channelization() or (force_reapply and rule.channel_count > 0): - discovered = family_ops.plan_installed_families(module, rule, variables) - flat_snapshots = [ - member.snapshot - for plan in discovered.plans - if plan.topology == family_ops.FamilyTopology.FLAT - for member in plan.members - ] - selected_flat_member_pks = frozenset( - interface.pk - for interface in _collect_unrenamed( - flat_snapshots, - rule, - raw_names, - force_reapply, - raw.matchers, - module, - ) - ) - plans = tuple( - plan - for plan in discovered.plans - if plan.topology == family_ops.FamilyTopology.CHANNELIZED - or selected_flat_member_pks.intersection(plan.member_pks) - ) - plan_set = family_ops.InstalledFamilyPlanSet(module_id=module.pk, plans=plans) - family_outcome = family_ops.execute_installed_plan_set(plan_set) - - remaining = Interface.objects.using(family_ops.module_db_alias(module)).filter(module=module) - interfaces = list(remaining.exclude(pk__in=plan_set.member_pks)) - - if not interfaces: - return family_outcome.changed_count - - # Only bases are rule candidates; the idempotency guard therefore looks at them alone. - bases, children_by_parent = _partition_families(interfaces) - unrenamed = _collect_unrenamed(bases, rule, raw_names, force_reapply, raw.matchers, module) - - if not unrenamed: - return family_outcome.changed_count # Already renamed (idempotent guard) - - # A breakout rule on a module that has channelized families processes only those families — - # the same rule the preview and bulk-apply paths follow. - installed_channelized = any(plan.topology == family_ops.FamilyTopology.CHANNELIZED for plan in plan_set.plans) - families_only = rule.channel_count > 0 and ( - installed_channelized or any(_is_channelized_parent(base) for base in bases) + interfaces = list( + Interface.objects.using(family_ops.module_db_alias(module)).filter(module_id=module.pk).order_by("pk") ) - - renamed = family_outcome.changed_count - families_seen = bool(plan_set.plans) or families_only - conflicts: list = [ - member - for result in family_outcome.families - for member in result.members - if member.status == family_ops.FamilyStatus.BLOCKED + planned = family_ops.plan_module_families(module, rule, variables, interfaces) + installed = _admitted_installed(planned.installed, rule, raw_names, force_reapply, raw.matchers, module) + leftover = _admitted_leftover(planned.leftover, rule, raw_names, force_reapply, raw.matchers, module) + + outcomes = family_ops.execute_module_families(rule, module, [*installed, *leftover]) + renamed = sum(outcome.changed_count for outcome in outcomes) + blocked = [ + member for outcome in outcomes for member in outcome.members if member.status == family_ops.FamilyStatus.BLOCKED ] - for iface in unrenamed: - children = children_by_parent.get(iface.pk, ()) - if families_only and not _is_channelized_parent(iface): # pragma: no cover - see families_only above - logger.debug( - "Interface %r is not channelized; skipping it while rule '%s' breaks out this module's families.", - iface.name, - rule, - ) - continue - families_seen = families_seen or bool(children) or _is_channelized_parent(iface) - try: - count = _apply_rule_with_family(rule, iface, children, variables, module, conflicts) - except (ValueError, ValidationError, IntegrityError): - # The collision pre-check closes the common case, but a concurrent - # insert can still win between that check and the save — surfacing - # here as IntegrityError/ValidationError out of the per-interface - # atomic block (which has already rolled back cleanly). Log and keep - # going so one racing interface never aborts the whole install batch, - # mirroring apply_rule_to_existing(). - logger.exception( - "Failed to apply rule '%s' to interface '%s' (id=%s); skipping.", - rule, - iface.name, - iface.pk, - ) - continue - if count is None: - # A structural skip (unsupported topology, channel-count mismatch) says nothing about the rule. - families_seen = True - continue - renamed += count + families_seen = bool(installed) or any(_touches_a_family(plan) for plan in leftover) - if unrenamed and renamed == 0 and not conflicts and not families_seen: + if leftover and renamed == 0 and not blocked and not families_seen: # All interfaces already have the names the rule would produce — flag as # potentially obsolete (e.g., newer NetBox generates correct names natively). # Skipped when the 0-count was caused by name collisions (a different reason # than a no-op rule), so a collision never mislabels the rule as deprecated. - # Skipped for channelized families too: a structural skip, or a family whose parent - # deliberately keeps its raw name, says nothing about the rule being obsolete. + # Skipped for families too: a structural skip, or a family whose parent deliberately + # keeps its raw name, says nothing about the rule being obsolete. _flag_rule_potentially_deprecated(rule) return renamed @@ -786,201 +756,11 @@ def _rename_for_family(iface, new_name, device, conflicts): # pragma: no cover return _RenameResult(new_name, _RENAMED, 1) if renamed else _RenameResult(new_name, _COLLISION, 0) -def _rename_channel_children(parent, parent_before, children, module, conflicts): # pragma: no cover - see above - """Carry the parent's new name onto its channel subinterfaces; return how many were renamed.""" - count = 0 - for child, target in _child_target_names(children, parent_before, parent.name, module): - if target is None: - logger.warning( - "Cannot derive a name for channel interface %r from parent %r; leaving it unchanged.", - child.name, - parent.name, - ) - continue - count += _rename_for_family(child, target, module.device, conflicts).count - return count - - -def _apply_simple_rule_to_family(rule, parent, children, variables, module, conflicts): # pragma: no cover - """Rename a channelized family in lockstep with its parent; return the count renamed. - - The children act on the parent's *outcome*, never on its computed target: a parent that - collided or failed to save leaves the whole family untouched, while a parent that already - carries the right name still lets a stale child be repaired. - """ - parent_before = parent.name - new_name = evaluate_name_template(rule.name_template, {**variables, "base": parent.name}) - result = _rename_for_family(parent, new_name, module.device, conflicts) - if result.outcome in (_COLLISION, _ERROR): - logger.debug("Family of %r left unchanged: the parent could not be renamed to %r.", parent.name, new_name) - return result.count - return result.count + _rename_channel_children(parent, parent_before, children, module, conflicts) - - -def _rename_family_parent(rule, parent, variables, module, conflicts): # pragma: no cover - see above - """Rename an existing family's parent per the rule's parent template; return its rename outcome. - - Only a channelized rule that names its parent touches it — a flat rule, or a blank parent - template, leaves the parent the name it already has. - """ - if not (_is_channelized_rule(rule) and rule.parent_name_template): - return _RenameResult(parent.name, _UNCHANGED, 0) - target = evaluate_name_template(rule.parent_name_template, {**variables, "base": parent.name}) - return _rename_for_family(parent, target, module.device, conflicts) - - -def _apply_breakout_rule_to_family(rule, parent, children, variables, module, conflicts): # pragma: no cover - """Rename an already-channelized family; return the count renamed, or None when skipped. - - Nothing is ever created here: the channels the rule describes are rows NetBox already models, - so a breakout rule renames them in place. The parent is renamed only when the rule builds - channelized families and names their parent; the channels' ``{base}`` stays the parent's name - as it was before that rename. A rule whose channel count disagrees with the hardware is a - modelling mismatch — the family is skipped whole rather than renamed into a shape it does not - have, and a parent that could not take its name stops the family the same way a simple rule's - does. - - Every child's name is computed before the first save, so a template that only fails on a later - channel (channel-dependent arithmetic) aborts the family untouched instead of half renaming it. - """ - if getattr(parent, "channels", None) != rule.channel_count: - logger.warning( - "Interface %r provides %s channels but rule '%s' defines %s; skipping the family.", - parent.name, - getattr(parent, "channels", None), - rule, - rule.channel_count, - ) - return None - base_name = parent.name - targets = [ - ( - child, - evaluate_name_template( - rule.name_template, - {**variables, "base": base_name, "channel": str(rule.channel_start + child.channel_id - 1)}, - ), - ) - for child in children - ] - result = _rename_family_parent(rule, parent, variables, module, conflicts) - if result.outcome in (_COLLISION, _ERROR): - logger.debug( - "Family of %r left unchanged: the parent could not be renamed to %r.", base_name, result.target_name - ) - return result.count - count = result.count - final_names = [] - for child, new_name in targets: - previous_name = child.name - child_result = _rename_for_family(child, new_name, module.device, conflicts) - count += child_result.count - final_name = new_name if child_result.outcome in (_RENAMED, _UNCHANGED) else previous_name - final_names.append((child, final_name)) - family_names.reconcile_after_parent_cascade( - base_name, - parent.name, - tuple((child.pk, child.channel_id, final_name) for child, final_name in final_names), - family_ops.module_db_alias(module), - ) - return count - - def _is_channelized_rule(rule): """Return True when *rule* asks for the channelized topology instead of flat sibling interfaces.""" return rule.breakout_mode == BreakoutModeChoices.CHANNELIZED -def _apply_channelized_rule(rule, base, variables, module, conflicts): - """Build the channelized family *rule* describes on a plain base interface. - - Returns the rows the family creation changed, 0 when a structural precondition blocked it, or - None where NetBox cannot model channels: the rule describes a topology this release has no rows - for, and building a flat family instead would silently give the operator another one. - """ - outcome = family_ops.install_channelized_family(module, rule, variables, base) - if outcome.status == family_ops.FamilyStatus.UNSUPPORTED: - return None - if outcome.status != family_ops.FamilyStatus.CHANGED: - _record_skip(conflicts, module.device, base.name, outcome.members[0].target_name, base.pk) - return 0 - return outcome.changed_count - - -def _apply_rule_with_family(rule, iface, children, variables, module, conflicts): - """Apply *rule* to *iface*, carrying its channel subinterfaces along. - - Returns the number of interfaces renamed/created, or None when a channelized family was - skipped for a structural reason. Interfaces that own no family take the plain path unchanged. - """ - if rule.channel_count > 0 and (_is_channelized_parent(iface) or children): # pragma: no cover - return _apply_breakout_rule_to_family(rule, iface, children, variables, module, conflicts) - if children: # pragma: no cover - requires channelization support - return _apply_simple_rule_to_family(rule, iface, children, variables, module, conflicts) - if rule.channel_count > 0 and _is_channelized_rule(rule): - return _apply_channelized_rule(rule, iface, variables, module, conflicts) - return _apply_rule_to_interface(rule, iface, {**variables, "base": iface.name}, module, conflicts=conflicts) - - -def _create_channel(iface, module, new_name, device, conflicts): - """Create a breakout channel interface *new_name*; return 1 if created, else 0. - - Silently skips when this module already has the channel (idempotent - re-apply); records a conflict when *new_name* is taken by a different - interface on the device. - """ - from dcim.models import Interface - - if Interface.objects.filter(module=module, name=new_name).exists(): - return 0 # idempotent: channel already created on this module - if _name_exists_on_device(device, new_name): - _record_conflict(conflicts, device, iface.name, new_name, iface.pk) - return 0 - breakout_iface = Interface( - device=device, - module=module, - name=new_name, - type=iface.type, - enabled=iface.enabled, - ) - breakout_iface.full_clean() - breakout_iface.save() - return 1 - - -def _apply_rule_to_interface(rule, iface, variables, module, conflicts=None): - """Apply a single rule to an interface, handling breakout channels. - - All saves are wrapped in a transaction so a failure mid-breakout rolls - back any partially created interfaces. A computed name that already exists - on the device is skipped (logged, and recorded in *conflicts* when a list - is passed) instead of raising — so automatic renaming (module install, - module-type change, VC change) never aborts the rest of the batch on a - name collision. - - Returns the number of interfaces renamed/created. - """ - count = 0 - device = module.device - - with transaction.atomic(): - if rule.channel_count > 0: - # Breakout: rename base interface and create additional channel interfaces - for ch in range(rule.channel_count): - variables["channel"] = str(rule.channel_start + ch) - new_name = evaluate_name_template(rule.name_template, variables) - if ch == 0: - count += _rename_in_place(iface, new_name, device, conflicts) - else: - count += _create_channel(iface, module, new_name, device, conflicts) - else: - # Simple rename (converter offset, platform naming, etc.) - new_name = evaluate_name_template(rule.name_template, variables) - count += _rename_in_place(iface, new_name, device, conflicts) - - return count - - def _matching_moduletype_pks(module_type_pattern): """Return PKs of ModuleTypes whose model name matches the given regex pattern. diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py index f10e1ed..06a75cb 100644 --- a/netbox_interface_name_rules/family/__init__.py +++ b/netbox_interface_name_rules/family/__init__.py @@ -2,7 +2,14 @@ # Copyright (C) 2025 Marcin Zieba """Plan and execute interface-family operations.""" -from .batch import BatchOutcome, apply_rule_to_modules, execute_family_plan, plan_module_families +from .batch import ( + BatchOutcome, + ModuleFamilyPlans, + apply_rule_to_modules, + execute_family_plan, + execute_module_families, + plan_module_families, +) from .capabilities import supports_channelization from .conversion import ( conversion_offered, @@ -75,6 +82,7 @@ "InterfaceSnapshot", "MemberOutcome", "MemberRole", + "ModuleFamilyPlans", "PlannedChannel", "PlannedMember", "PlannedName", @@ -95,6 +103,7 @@ "execute_flat_family", "execute_installed_plan", "execute_installed_plan_set", + "execute_module_families", "execute_structural_family", "has_flat_expansion", "install_channelized_family", diff --git a/netbox_interface_name_rules/family/batch.py b/netbox_interface_name_rules/family/batch.py index 7ff7238..e2172c3 100644 --- a/netbox_interface_name_rules/family/batch.py +++ b/netbox_interface_name_rules/family/batch.py @@ -42,6 +42,23 @@ } +@dataclass(frozen=True, slots=True) +class ModuleFamilyPlans: + """The families a rule intends on one module, split by how each was found. + + *installed* are the families the module already carries; *leftover* are the plans for the + interfaces no installed family claimed, whether the rule renames one or builds a family on it. + """ + + installed: tuple + leftover: tuple + + @property + def plans(self) -> tuple: + """Return every plan, installed families first.""" + return (*self.installed, *self.leftover) + + @dataclass(frozen=True, slots=True) class BatchOutcome: """Every family one batch operation planned, and what happened to it.""" @@ -102,24 +119,29 @@ def _creation_plans(module, rule, variables, plain): return [_creation_plan(module, rule, variables, candidates[index][0]) for index in kept] -def plan_module_families(module, rule, variables, interfaces): +def plan_module_families(module, rule, variables, interfaces) -> ModuleFamilyPlans: """Return one executable plan for every family *rule* intends on *module*. Every interface belongs to at most one plan: an installed family claims its members first, and what is left over is planned as the family the rule would build on it. """ installed = plan_installed_families(module, rule, variables, interfaces=interfaces) - plans = list(installed.plans) claimed = installed.member_pks plain = [interface for interface in interfaces if interface.pk not in claimed and not _is_channel(interface)] if rule.channel_count <= 0: - plans.extend(plan_interface_rename(module, rule, variables, interface) for interface in plain) - return tuple(plans) - if any(plan.topology == FamilyTopology.CHANNELIZED for plan in installed.plans): + leftover = tuple(plan_interface_rename(module, rule, variables, interface) for interface in plain) + elif any(plan.topology == FamilyTopology.CHANNELIZED for plan in installed.plans): # A breakout rule renames the families the module already models; it never adds one beside them. - return tuple(plans) # pragma: no cover - requires channelization support - plans.extend(_creation_plans(module, rule, variables, plain)) - return tuple(plans) + leftover = () # pragma: no cover - requires channelization support + for interface in plain: # pragma: no cover - see above + logger.debug( + "Interface %r is not channelized; skipping it while rule '%s' breaks out this module's families.", + interface.name, + rule, + ) + else: + leftover = tuple(_creation_plans(module, rule, variables, plain)) + return ModuleFamilyPlans(installed=installed.plans, leftover=leftover) def _selection_pks(plan): @@ -142,6 +164,11 @@ def _selected(plans, selected_pks): return [plan for plan in plans if selected_pks.intersection(_selection_pks(plan))] +def execute_module_families(rule, module, plans): + """Execute each planned family in order, keeping the ones after a failure.""" + return [outcome for plan in plans if (outcome := _execute(rule, module, plan)) is not None] + + def _execute(rule, module, plan): """Execute one family, logging (never raising) so the batch keeps its later families.""" try: @@ -156,8 +183,8 @@ def _execute(rule, module, plan): def _apply_module(rule, module, interfaces, selected_pks): """Plan and execute every selected family on one module.""" variables = build_variables(module.module_bay, device=module.device) - plans = _selected(plan_module_families(module, rule, variables, interfaces), selected_pks) - return [outcome for plan in plans if (outcome := _execute(rule, module, plan)) is not None] + plans = _selected(plan_module_families(module, rule, variables, interfaces).plans, selected_pks) + return execute_module_families(rule, module, plans) def apply_rule_to_modules(rule, modules, selected_pks=None, limit=None) -> BatchOutcome: diff --git a/netbox_interface_name_rules/tests/test_engine_advanced.py b/netbox_interface_name_rules/tests/test_engine_advanced.py index 2850f76..07f4185 100644 --- a/netbox_interface_name_rules/tests/test_engine_advanced.py +++ b/netbox_interface_name_rules/tests/test_engine_advanced.py @@ -305,7 +305,7 @@ def test_interface_ids_filter(self): self.assertEqual(iface1.name, "1") # untouched def test_channel_rule_applies_once_per_module(self): - """Channel rule calls _apply_rule_to_interface once per module, not per interface.""" + """A channel rule plans one family per module, not one per interface.""" rule = InterfaceNameRule.objects.create( module_type=self.module_type, name_template="xe-0/0/{bay_position}:{channel}", @@ -674,7 +674,7 @@ def test_no_op_rename_adds_deprecated_tag(self): name_template="et-0/0/{bay_position}", ) module = Module.objects.create(device=self.device, module_bay=self.bay0, module_type=self.module_type) - # Create with the final correct name (so _apply_rule_to_interface returns 0 for it) + # Create with the final correct name (so the rule renames nothing for it) # But the name "et-0/0/0" is NOT in raw_names (raw = "0"), so this won't trigger deprecated. # Instead, set force_reapply so it's in unrenamed but produces 0 renames. iface = Interface.objects.create(device=self.device, module=module, name="et-0/0/0", type="10gbase-x-sfpp") @@ -1527,18 +1527,18 @@ def test_multiple_modules_all_counted(self): class BreakoutTransactionRollbackTest(EngineAdvancedFixtures): - """Test that _apply_rule_to_interface rolls back on mid-breakout failure.""" + """The install path writes a breakout family whole or not at all.""" def test_partial_breakout_rolls_back(self): """If channel 2 fails validation, channels 0–1 are rolled back too.""" - rule = InterfaceNameRule.objects.create( + InterfaceNameRule.objects.create( module_type=self.module_type, name_template="Hu0/0/0/{bay_position}:{channel}", channel_count=4, channel_start=0, ) module = Module.objects.create(device=self.device, module_bay=self.bay0, module_type=self.module_type) - iface = Interface.objects.create(device=self.device, module=module, name="0", type="100gbase-x-qsfp28") + Interface.objects.create(device=self.device, module=module, name="0", type="100gbase-x-qsfp28") original_full_clean = Interface.full_clean call_count = [0] @@ -1551,18 +1551,11 @@ def failing_full_clean(self_iface, *args, **kwargs): raise ValidationError("simulated failure") return original_full_clean(self_iface, *args, **kwargs) - from netbox_interface_name_rules.engine import _apply_rule_to_interface - - variables = build_variables(module.module_bay, device=module.device) - variables["base"] = iface.name - - from django.core.exceptions import ValidationError - with patch.object(Interface, "full_clean", failing_full_clean): - with self.assertRaises(ValidationError): - _apply_rule_to_interface(rule, iface, variables, module) + renamed = apply_interface_name_rules(module, module.module_bay) - # Transaction rolled back — only the original interface remains + # Transaction rolled back — only the original interface remains, under its original name + self.assertEqual(renamed, 0) iface_names = list(Interface.objects.filter(module=module).values_list("name", flat=True)) self.assertEqual(iface_names, ["0"]) diff --git a/netbox_interface_name_rules/tests/test_installed_families.py b/netbox_interface_name_rules/tests/test_installed_families.py index 49e7b16..8927eb4 100644 --- a/netbox_interface_name_rules/tests/test_installed_families.py +++ b/netbox_interface_name_rules/tests/test_installed_families.py @@ -260,7 +260,7 @@ def test_automatic_reapplication_propagates_planner_failures(self): with ( patch( - "netbox_interface_name_rules.engine.family_ops.plan_installed_families", + "netbox_interface_name_rules.engine.family_ops.plan_module_families", side_effect=TypeError("planner defect"), ), self.assertRaisesMessage(TypeError, "planner defect"), From 803d6c020f7be81720a7dbf30019eda5fa991c06 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 13:37:51 +0200 Subject: [PATCH 31/74] fix: guard leftover interfaces before equivalent families collapse Contracting the install path let plan_module_families collapse two leftover interfaces that intend one family before the raw-name guard had seen them. A breakout rule without {base} gives every base on a module the same names, so a drifted virtual-chassis matcher claiming both a template row and a renamed decoy reached the guard as a single survivor: the pair no longer looked ambiguous and one arbitrary row was broken out, silently. The guard now runs inside planning, on the interfaces no installed family claimed, before any of them are collapsed. Found by adversarial review and bisected to the contraction commit; the regression test fails against it and passes here. Two more findings from the same review: Carrying an address or an FHRP group assignment onto the new channel reads the row and saves it back whole, so an edit landing in between was overwritten with the values the conversion started with. Both are now locked for the transaction that carries them. A refused conversion named the interface and the parent it wanted, but not the device or module. One rule spans many devices and those names repeat, and the view reports only a count, so the log could not identify the family to repair. --- netbox_interface_name_rules/engine.py | 28 +++++++------------ netbox_interface_name_rules/family/batch.py | 8 +++++- .../family/conversion.py | 15 +++++++--- .../tests/test_vc_drift.py | 24 ++++++++++++++++ 4 files changed, 52 insertions(+), 23 deletions(-) diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 86cebb7..8ed1de1 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -235,13 +235,6 @@ def _collect_unrenamed(interfaces, rule, raw_names, force_reapply, matchers=(), return _forced_channel_bases(interfaces, raw_names, matchers, module) -def _plan_base(plan): - """Return the interface facts a leftover plan is anchored on.""" - if isinstance(plan, family_ops.InstalledFamilyPlan): - return plan.members[0].snapshot - return plan.base - - def _touches_a_family(plan) -> bool: """Return whether *plan* acts on a family rather than one standalone interface.""" if isinstance(plan, family_ops.InstalledFamilyPlan): @@ -267,15 +260,6 @@ def _admitted_installed(plans, rule, raw_names, force_reapply, matchers, module) ] -def _admitted_leftover(plans, rule, raw_names, force_reapply, matchers, module): - """Return the plans for leftover interfaces the raw-name guard still claims.""" - bases = [_plan_base(plan) for plan in plans] - selected = { - interface.pk for interface in _collect_unrenamed(bases, rule, raw_names, force_reapply, matchers, module) - } - return [plan for plan, base in zip(plans, bases, strict=True) if base.pk in selected] - - def apply_interface_name_rules(module, module_bay, force_reapply=False): """Apply InterfaceNameRule rename after module installation. @@ -315,9 +299,17 @@ def _apply_rule_to_module(rule, module, module_bay, force_reapply): interfaces = list( Interface.objects.using(family_ops.module_db_alias(module)).filter(module_id=module.pk).order_by("pk") ) - planned = family_ops.plan_module_families(module, rule, variables, interfaces) + planned = family_ops.plan_module_families( + module, + rule, + variables, + interfaces, + # The guard runs while it can still see every claimed row, before two of them that intend + # one family are collapsed into it. + admit_leftover=lambda plain: _collect_unrenamed(plain, rule, raw_names, force_reapply, raw.matchers, module), + ) installed = _admitted_installed(planned.installed, rule, raw_names, force_reapply, raw.matchers, module) - leftover = _admitted_leftover(planned.leftover, rule, raw_names, force_reapply, raw.matchers, module) + leftover = planned.leftover outcomes = family_ops.execute_module_families(rule, module, [*installed, *leftover]) renamed = sum(outcome.changed_count for outcome in outcomes) diff --git a/netbox_interface_name_rules/family/batch.py b/netbox_interface_name_rules/family/batch.py index e2172c3..0e8845f 100644 --- a/netbox_interface_name_rules/family/batch.py +++ b/netbox_interface_name_rules/family/batch.py @@ -119,15 +119,21 @@ def _creation_plans(module, rule, variables, plain): return [_creation_plan(module, rule, variables, candidates[index][0]) for index in kept] -def plan_module_families(module, rule, variables, interfaces) -> ModuleFamilyPlans: +def plan_module_families(module, rule, variables, interfaces, admit_leftover=None) -> ModuleFamilyPlans: """Return one executable plan for every family *rule* intends on *module*. Every interface belongs to at most one plan: an installed family claims its members first, and what is left over is planned as the family the rule would build on it. + + *admit_leftover* filters the interfaces no installed family claimed. It runs before two of + them that intend one family are collapsed into it, so a caller that must not touch one of the + two cannot have it survive the collapse as the row the family is built on. """ installed = plan_installed_families(module, rule, variables, interfaces=interfaces) claimed = installed.member_pks plain = [interface for interface in interfaces if interface.pk not in claimed and not _is_channel(interface)] + if admit_leftover is not None: + plain = list(admit_leftover(plain)) if rule.channel_count <= 0: leftover = tuple(plan_interface_rename(module, rule, variables, interface) for interface in plain) elif any(plan.topology == FamilyTopology.CHANNELIZED for plan in installed.plans): diff --git a/netbox_interface_name_rules/family/conversion.py b/netbox_interface_name_rules/family/conversion.py index 249c3fc..ff19064 100644 --- a/netbox_interface_name_rules/family/conversion.py +++ b/netbox_interface_name_rules/family/conversion.py @@ -166,8 +166,11 @@ def _outcome(plan, status, members, reason=""): # pragma: no cover - requires c def _refused(plan, status, reason): # pragma: no cover - requires channelization support """Log why the family was not converted and return an outcome that touched no row.""" logger.warning( - "Cannot convert the flat family of interface %r into the channelized parent %r: %s. Skipping.", + "Cannot convert the flat family of interface %r (device %s, module %s) into the channelized " + "parent %r: %s. Skipping.", plan.base.name, + plan.device_id, + plan.module_id, plan.parent_target_name, reason, ) @@ -240,13 +243,17 @@ def _carry_assignments(plan, base, channel): # pragma: no cover - requires chan """Move the ch-0 row's addresses and first-hop groups onto the channel that took its name. Saved one row at a time so each carried object is validated, and recorded in the changelog, - like every other row this conversion writes. + like every other row this conversion writes. A model save writes back every field it read, so + each row is locked first: an edit landing between the read and the save would otherwise be + overwritten by the values this transaction started with. """ - for address in base.ip_addresses.using(plan.db_alias).all(): + addresses = base.ip_addresses.using(plan.db_alias).select_for_update().order_by("pk") + for address in addresses: address.assigned_object = channel address.full_clean() address.save(using=plan.db_alias) - for assignment in base.fhrp_group_assignments.using(plan.db_alias).all(): + assignments = base.fhrp_group_assignments.using(plan.db_alias).select_for_update().order_by("pk") + for assignment in assignments: assignment.interface = channel assignment.full_clean() assignment.save(using=plan.db_alias) diff --git a/netbox_interface_name_rules/tests/test_vc_drift.py b/netbox_interface_name_rules/tests/test_vc_drift.py index e8c8c22..07d0c61 100644 --- a/netbox_interface_name_rules/tests/test_vc_drift.py +++ b/netbox_interface_name_rules/tests/test_vc_drift.py @@ -378,6 +378,30 @@ def test_a_forced_re_apply_does_not_break_out_an_ambiguous_pair(self): for candidate in ("xe-0/0/3", "xe-1/0/3"): self.assertIn(candidate, output) + def test_a_forced_re_apply_does_not_break_out_an_ambiguous_pair_with_one_target(self): + """The same claim where both bases intend one family, so nothing downstream tells them apart. + + A breakout rule without ``{base}`` gives every base on the module the same names, so the two + claimed rows collapse into one family before anything is written. The guard has to refuse + the pair while it can still see both of them. + """ + module, _ = self._install_on(self.device, self.decoy_type, "3") + rename_out_of_band(Interface.objects.get(module=module, name="mgmt-3"), "xe-0/0/3") + InterfaceNameRule.objects.create( + module_type=self.decoy_type, + name_template="et-0/0/{bay_position}:{channel}", + channel_count=2, + channel_start=0, + ) + + with self.assertLogs(PLUGIN_LOGGER, level="WARNING") as logs: + self._renumber(2) + + self.assertEqual(self._names(module), ["xe-0/0/3", "xe-1/0/3"]) + output = "\n".join(logs.output) + for candidate in ("xe-0/0/3", "xe-1/0/3"): + self.assertIn(candidate, output) + def test_an_interface_claimed_by_two_templates_renames_nothing(self): """Two matchers over one name is the same failure seen from the other side; both claims are dropped.""" module, bay = self._install_on(self.device, self.overlap_type, "4") From a3249ea6c66e199973e4fd1f27b97f757e7f50f7 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 14:07:13 +0200 Subject: [PATCH 32/74] refactor: rename device-level families through the family package The device-level path renamed virtual-chassis interfaces through its own implementation: its own collision pre-check, its own validation handling, its own child-suffix derivation and its own rollback. It was the last family mutation left in the engine, and the only one that never revalidated a row before writing it. Device families are now planned in the family package and executed by the same locked, revalidating executor every other path uses. The engine keeps what is genuinely its own: which rule wins, the {vc_position}/{base}/{port} variables, and the claim bookkeeping that stops a lower-priority rule taking the leftovers of a family a higher-priority rule already renamed. A device rule never builds a family, so its channel count says nothing about one it finds: the device planner asks for lockstep targets directly rather than routing through the breakout branch, which would refuse any family whose channel count did not match the rule's. Deletes the last private family helpers: _partition_families, _try_rename_device_interface, _try_rename_device_family, _rename_for_family, _rename_in_place, _child_target_names, _recovered_suffix, _record_conflict, _name_exists_on_device, _is_channel_child, _is_channelized_parent and the _RenameResult status constants. The engine is down from 1619 lines to 785 and holds no family discovery, planning or mutation. --- netbox_interface_name_rules/engine.py | 323 ++---------------- .../family/__init__.py | 6 + netbox_interface_name_rules/family/domain.py | 2 +- .../family/installed.py | 100 ++++-- netbox_interface_name_rules/family/targets.py | 10 +- .../tests/test_channelization.py | 14 + .../tests/test_device_rules.py | 6 +- .../tests/test_engine_advanced.py | 16 +- 8 files changed, 147 insertions(+), 330 deletions(-) diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 8ed1de1..82f3cd1 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -8,14 +8,13 @@ import logging import re -from collections import defaultdict, namedtuple +from collections import defaultdict from django.core.exceptions import ValidationError -from django.db import IntegrityError, transaction +from django.db import IntegrityError from . import family as family_ops from . import naming, rule_selection -from .choices import BreakoutModeChoices from .family import targets as family_targets from .family import template_names as family_template_names @@ -89,44 +88,6 @@ def supports_vc_position_token(): return _vc_position_re() is not None -def _is_channel_child(iface): - """Return True when *iface* is a channel subinterface bound to a parent's channel. - - Structural, not name-based: a row imported without ``full_clean()`` may carry a ``channel_id`` - without the channel type. ``channel_id`` does not exist before NetBox 4.7, so this is False - on every older release and the family paths below stay dormant there. - """ - return getattr(iface, "channel_id", None) is not None - - -def _is_channelized_parent(iface): - """Return True when *iface* declares a channel count. - - A channelized parent owns a family even when no subinterface is bound yet — this, not the - presence of children, is what disables flat channel creation. - """ - return getattr(iface, "channels", None) is not None - - -def _partition_families(interfaces): - """Split *interfaces* into ``(bases, children_by_parent_pk)``. - - Bases are the interfaces a rule may match on its own: standalone interfaces and channelized - parents. Channel subinterfaces are never independent candidates — they are renamed only by - following their parent, so they are grouped under it instead. - """ - bases = [] - children = defaultdict(list) - for iface in interfaces: - if not _is_channel_child(iface): - bases.append(iface) - continue - children[iface.parent_id].append(iface) # pragma: no cover - requires channelization support - for group in children.values(): # pragma: no cover - no channel children exist without support - group.sort(key=lambda child: child.channel_id) - return bases, children - - def _unambiguous_claims(candidates, matchers, module): # pragma: no cover - requires vc_position token support """Return the labels of *candidates* that exactly one drifted ``{vc_position}`` template claims. @@ -188,7 +149,7 @@ def _forced_channel_bases(interfaces, raw_names, matchers, module): for i in interfaces: # A channelized parent is its own base: its channels are separate rows, so the name needs no # ":"-splitting to find them. - base = i.name if _is_channelized_parent(i) else i.name.rsplit(":", 1)[0] + base = i.name if family_ops.is_channelized_parent(i) else i.name.rsplit(":", 1)[0] forms = (base, base.rsplit("/", 1)[-1]) if not any(form in raw_names for form in forms) and not any( matcher.pattern.fullmatch(form) for matcher in matchers for form in forms @@ -361,112 +322,6 @@ def predict_rule_output(module, module_bay, raw_names): return [name for raw_name in raw_names for name in plan_set.predicted_names(raw_name)] -def _try_rename_device_interface(rule, iface, vc_position, device, renamed_pks, conflicts=None): - """Attempt to rename a single device-level interface using *rule*. - - Returns ``True`` if the interface was successfully renamed, ``False`` otherwise. - Mutates ``renamed_pks`` on success. - - A computed name already taken by another interface on the device is skipped - with a tidy WARNING (no traceback), mirroring the module-install path; pass a - list as *conflicts* to also collect them. ``full_clean()`` remains the - backstop for the rarer cross-member (VC) uniqueness violation. - """ - if iface.pk in renamed_pks: - return False # Already renamed by a higher-priority rule - - if rule.module_type_pattern: - try: - if not re.fullmatch(rule.module_type_pattern, iface.name): - return False - except re.error: - return False - - port = iface.name.rsplit("/", 1)[-1] if "/" in iface.name else iface.name - variables = {"vc_position": vc_position, "base": iface.name, "port": port} - - try: - new_name = evaluate_name_template(rule.name_template, variables) - except (ValueError, TypeError, re.error): - logger.exception( - "Failed to evaluate template %r for interface %s (rule %s)", - rule.name_template, - iface.name, - rule.pk, - ) - return False - - if new_name == iface.name: - return False - - # Pre-check device-scope name uniqueness so an expected collision is a clean - # WARNING + skip instead of an ERROR traceback out of full_clean(). - if _name_exists_on_device(device, new_name, exclude_pk=iface.pk): - _record_conflict(conflicts, device, iface.name, new_name, iface.pk) - return False - - old_name = iface.name - iface.name = new_name - try: - iface.full_clean() - except ValidationError as exc: - logger.warning( - "Validation failed renaming device interface %r → %r (rule %s, device %s); skipping: %s", - old_name, - new_name, - rule.pk, - device.pk, - exc, - ) - iface.name = old_name - return False - try: - iface.save() - except (IntegrityError, ValidationError): - logger.exception( - "DB save failed for device interface %s → %s (rule %s, device %s)", - old_name, - new_name, - rule.pk, - device.pk, - ) - iface.name = old_name - return False - - renamed_pks.add(iface.pk) - logger.debug("Renamed device interface %s → %s (rule %s, device %s)", old_name, new_name, rule.pk, device.pk) - return True - - -def _try_rename_device_family(rule, iface, children, vc_position, device, renamed_pks, conflicts=None): - """Rename a device-level interface with *rule* and carry its channel subinterfaces along. - - Returns the number of interfaces renamed. The whole family is claimed in *renamed_pks* the - moment its parent is renamed, so a lower-priority rule can never rename the leftovers of a - family a higher-priority rule already took. - - Healing is best-effort here: device-level interfaces have no module template family to recover - a suffix from, so a child that lost its parent's prefix in an earlier run is left alone. - """ - parent_before = iface.name - if not _try_rename_device_interface(rule, iface, vc_position, device, renamed_pks, conflicts): - return 0 - count = 1 - for child, target in _child_target_names( # pragma: no cover - requires channelization support - children, parent_before, iface.name, module=None - ): - renamed_pks.add(child.pk) - if target is None: - logger.warning( - "Cannot derive a name for channel interface %r from parent %r; leaving it unchanged.", - child.name, - iface.name, - ) - continue - count += _rename_for_family(child, target, device, conflicts).count - return count - - def reapply_module_rules(device): """Re-apply module rules to every module on *device* after its virtual-chassis position changed. @@ -555,18 +410,39 @@ def apply_device_interface_rules(device): if not rules: return 0 - interfaces = list(Interface.objects.filter(device=device, module=None)) + interfaces = list(Interface.objects.filter(device=device, module=None).order_by("pk")) if not interfaces: return 0 - bases, children_by_parent = _partition_families(interfaces) + families = family_ops.device_interface_families(interfaces) total = 0 renamed_pks: set[int] = set() for rule in rules: - for iface in bases: - total += _try_rename_device_family( - rule, iface, children_by_parent.get(iface.pk, ()), vc_position, device, renamed_pks - ) + for interface, children in families: + if interface.pk in renamed_pks: + continue + if rule.module_type_pattern: + try: + if not re.fullmatch(rule.module_type_pattern, interface.name): + continue + except re.error: + continue + port = interface.name.rsplit("/", 1)[-1] + variables = {"vc_position": vc_position, "base": interface.name, "port": port} + plan = family_ops.plan_device_interface_rename(device, rule, variables, interface, children) + try: + outcome = family_ops.execute_installed_plan(plan) + except (IntegrityError, ValidationError): + logger.exception( + "Failed to apply rule %s to device interface %r on device %s; skipping.", + rule.pk, + interface.name, + device.pk, + ) + continue + total += outcome.changed_count + if outcome.members[0].status == family_ops.FamilyStatus.CHANGED: + renamed_pks.update(plan.member_pks) return total @@ -586,47 +462,6 @@ def _raw_name_patterns(module): return family_template_names.raw_name_patterns(module) -def _recovered_suffix(child, suffixes): # pragma: no cover - requires channelization support - """Return the template suffix for *child*'s channel, or None when it is not unambiguous. - - Once a parent has been renamed there is no reliable way back from a stranded child to the family - it belongs to, so a channel spelled differently by two families is left alone rather than guessed. - """ - candidates = suffixes.get(child.channel_id) or set() - if len(candidates) == 1: - return next(iter(candidates)) - if candidates: - logger.warning( - "Channel %s is spelled %s by different families of this module type; " - "cannot recover a name for interface %r.", - child.channel_id, - sorted(candidates), - child.name, - ) - return None - - -def _child_target_names(children, parent_before, parent_after, module): - """Pair every child with the name it takes when its parent is renamed to *parent_after*. - - The suffix is read from the child's own name against *parent_before* (the parent's name before - this run's rename); when the child no longer carries that prefix the suffix is recovered from - the module's template family instead. A child that neither shares the prefix nor has an - unambiguous template pairing is returned with a None target — the engine leaves it alone rather - than guessing at a free-form name. - """ - suffixes = None - targets = [] - for child in children: # pragma: no cover - requires channelization support - suffix = family_targets.child_name_suffix(child.name, parent_before) - if suffix is None and module is not None: - if suffixes is None: - suffixes = family_ops.template_channel_suffixes(family_ops.resolved_template_names(module)) - suffix = _recovered_suffix(child, suffixes) - targets.append((child, None if suffix is None else parent_after + suffix)) - return targets - - def _flag_rule_potentially_deprecated(rule): """Tag a rule as 'potentially-deprecated' when its rename is a no-op. @@ -655,104 +490,6 @@ def _flag_rule_potentially_deprecated(rule): logger.exception("Failed to flag rule '%s' as potentially-deprecated.", rule) -def _name_exists_on_device(device, name, exclude_pk=None): - """Return True if another interface on *device* already uses *name*. - - Pre-checks the per-device interface-name uniqueness NetBox enforces so a - rename/create that would collide is skipped cleanly instead of raising - mid-transaction. (VC-wide uniqueness is not pre-checked here; full_clean() - remains the authoritative validator for that rarer cross-member case.) - """ - from dcim.models import Interface - - qs = Interface.objects.filter(device=device, name=name) - if exclude_pk is not None: - qs = qs.exclude(pk=exclude_pk) - return qs.exists() - - -def _record_skip(conflicts, device, current_name, attempted_name, interface_pk=None): - """Append a skipped rename to *conflicts* when the caller is collecting them. - - The caller has already logged why it skipped; this only lets the interactive Apply view report - how many renames were dropped. - """ - if conflicts is not None: - conflicts.append( - { - "device": str(device), - "current_name": current_name, - "attempted_name": attempted_name, - "interface_pk": interface_pk, - } - ) - - -def _record_conflict(conflicts, device, current_name, attempted_name, interface_pk=None): - """Log a name collision at WARNING and record it as a skipped rename. - - Collisions are expected during automatic renaming (module install, type - change, VC change) when the computed name is already taken on the device; - they must never abort the batch, so callers skip the rename and carry on. - """ - logger.warning( - "Interface name %r already exists on device %s — skipping rename of %r → %r", - attempted_name, - device, - current_name, - attempted_name, - ) - _record_skip(conflicts, device, current_name, attempted_name, interface_pk) - - -# What a family-aware rename did, so the children can act on their parent's outcome rather than on -# its computed target name (which says nothing about whether the parent actually took it). -_RENAMED = "renamed" -_UNCHANGED = "unchanged" -_COLLISION = "collision" -_ERROR = "error" - -_RenameResult = namedtuple("_RenameResult", ("target_name", "outcome", "count")) - - -def _rename_in_place(iface, new_name, device, conflicts): - """Rename *iface* to *new_name*; return 1 if renamed, 0 if no-op or collision.""" - if new_name == iface.name: - return 0 - if _name_exists_on_device(device, new_name, exclude_pk=iface.pk): - _record_conflict(conflicts, device, iface.name, new_name, iface.pk) - return 0 - iface.name = new_name - iface.full_clean() - iface.save() - return 1 - - -def _rename_for_family(iface, new_name, device, conflicts): # pragma: no cover - requires channelization support - """Rename *iface* as part of a family walk, reporting the outcome instead of raising. - - The save runs in its own savepoint so an unexpected failure on one member leaves the - surrounding transaction usable: family processing is best-effort per interface, and only a - failed *parent* stops the rest of its family. - """ - if new_name == iface.name: - return _RenameResult(new_name, _UNCHANGED, 0) - old_name = iface.name - try: - with transaction.atomic(): - renamed = _rename_in_place(iface, new_name, device, conflicts) - except (ValueError, ValidationError, IntegrityError): - logger.exception("Failed to rename interface %r → %r on device %s; skipping.", old_name, new_name, device) - iface.name = old_name - return _RenameResult(new_name, _ERROR, 0) - return _RenameResult(new_name, _RENAMED, 1) if renamed else _RenameResult(new_name, _COLLISION, 0) - - -def _is_channelized_rule(rule): - """Return True when *rule* asks for the channelized topology instead of flat sibling interfaces.""" - return rule.breakout_mode == BreakoutModeChoices.CHANNELIZED - - def _matching_moduletype_pks(module_type_pattern): """Return PKs of ModuleTypes whose model name matches the given regex pattern. diff --git a/netbox_interface_name_rules/family/__init__.py b/netbox_interface_name_rules/family/__init__.py index 06a75cb..50aa43a 100644 --- a/netbox_interface_name_rules/family/__init__.py +++ b/netbox_interface_name_rules/family/__init__.py @@ -43,8 +43,11 @@ ) from .execution import execute_installed_plan, execute_installed_plan_set from .installed import ( + device_interface_families, interfaces_by_module, + is_channelized_parent, module_db_alias, + plan_device_interface_rename, plan_installed_families, plan_interface_rename, ) @@ -98,6 +101,7 @@ "describe_interfaces", "describe_module_interfaces", "describe_template_interfaces", + "device_interface_families", "execute_conversion", "execute_family_plan", "execute_flat_family", @@ -108,9 +112,11 @@ "has_flat_expansion", "install_channelized_family", "interfaces_by_module", + "is_channelized_parent", "module_db_alias", "one_family_per_name_set", "pinned_template_cache", + "plan_device_interface_rename", "plan_flat_family", "plan_installed_families", "plan_interface_rename", diff --git a/netbox_interface_name_rules/family/domain.py b/netbox_interface_name_rules/family/domain.py index 572dc9e..c908288 100644 --- a/netbox_interface_name_rules/family/domain.py +++ b/netbox_interface_name_rules/family/domain.py @@ -75,7 +75,7 @@ class InstalledFamilyPlan: family_id: str topology: FamilyTopology device_id: int - module_id: int + module_id: int | None db_alias: str members: tuple[PlannedMember, ...] parent_pk: int | None = None diff --git a/netbox_interface_name_rules/family/installed.py b/netbox_interface_name_rules/family/installed.py index b11c35d..db365e6 100644 --- a/netbox_interface_name_rules/family/installed.py +++ b/netbox_interface_name_rules/family/installed.py @@ -19,7 +19,12 @@ MemberRole, PlannedMember, ) -from .targets import channelized_family_targets, flat_family_names, template_channel_suffixes +from .targets import ( + channelized_family_targets, + flat_family_names, + lockstep_family_targets, + template_channel_suffixes, +) from .template_names import resolved_template_names logger = logging.getLogger(__name__) @@ -27,9 +32,14 @@ _BASE_SENTINEL = "InrBaseSentinelEnd" +def _db_alias(instance) -> str: + """Return the database alias that *instance* was loaded from.""" + return instance._state.db or DEFAULT_DB_ALIAS + + def module_db_alias(module) -> str: """Return the database alias that *module* was loaded from.""" - return module._state.db or DEFAULT_DB_ALIAS + return _db_alias(module) def is_plain_interface(interface) -> bool: @@ -41,7 +51,7 @@ def is_plain_interface(interface) -> bool: ) -def _is_channelized_parent(interface) -> bool: # pragma: no cover - requires channelization support +def is_channelized_parent(interface) -> bool: # pragma: no cover - requires channelization support """Return whether *interface* declares a channelized family.""" return getattr(interface, "channels", None) is not None @@ -187,16 +197,8 @@ def _flat_plan(module, db_alias, target_names, interfaces): ) -def _channelized_plan(module, rule, variables, db_alias, parent, children, suffixes): # pragma: no cover - """Build one plan for an existing channelized family.""" - targets = channelized_family_targets( - rule, - variables, - parent.name, - parent.channels, - tuple((child.name, child.channel_id) for child in children), - suffixes, - ) +def _channelized_plan(device_id, module_id, db_alias, parent, children, targets): # pragma: no cover + """Build one plan for an existing channelized family from the names *targets* intends.""" members = [ PlannedMember( snapshot=InterfaceSnapshot.from_interface(parent), @@ -216,8 +218,8 @@ def _channelized_plan(module, rule, variables, db_alias, parent, children, suffi return InstalledFamilyPlan( family_id=f"channelized:{parent.pk}", topology=FamilyTopology.CHANNELIZED, - device_id=module.device_id, - module_id=module.pk, + device_id=device_id, + module_id=module_id, db_alias=db_alias, members=tuple(members), parent_pk=parent.pk, @@ -226,9 +228,21 @@ def _channelized_plan(module, rule, variables, db_alias, parent, children, suffi ) +def _module_family_targets(rule, variables, parent, children, suffixes): # pragma: no cover + """Return the names *rule* intends for a channelized family a module carries.""" + return channelized_family_targets( + rule, + variables, + parent.name, + parent.channels, + tuple((child.name, child.channel_id) for child in children), + suffixes, + ) + + def _channelized_plans(module, rule, variables, db_alias, interfaces, catalog): # pragma: no cover """Return one plan for every structurally discovered channelized family.""" - parents = [interface for interface in interfaces if _is_channelized_parent(interface)] + parents = [interface for interface in interfaces if is_channelized_parent(interface)] if not parents: return [] children_by_parent: dict[int, list] = {} @@ -240,7 +254,8 @@ def _channelized_plans(module, rule, variables, db_alias, interfaces, catalog): for parent in parents: children = children_by_parent.get(parent.pk, []) children.sort(key=lambda child: (child.channel_id, child.pk)) - plans.append(_channelized_plan(module, rule, variables, db_alias, parent, children, suffixes)) + targets = _module_family_targets(rule, variables, parent, children, suffixes) + plans.append(_channelized_plan(module.device_id, module.pk, db_alias, parent, children, targets)) return plans @@ -273,8 +288,23 @@ def interfaces_by_module(modules): return by_module -def plan_interface_rename(module, rule, variables, interface) -> InstalledFamilyPlan: - """Return the plan that renames one interface which belongs to no family.""" +def device_interface_families(interfaces): + """Return each device-level base interface with its channel children.""" + children_by_parent: dict[int, list] = {} + for interface in interfaces: + if _is_channel(interface) and interface.parent_id is not None: + children_by_parent.setdefault(interface.parent_id, []).append(interface) + for children in children_by_parent.values(): + children.sort(key=lambda child: (child.channel_id, child.pk)) + return tuple( + (interface, tuple(children_by_parent.get(interface.pk, ()))) + for interface in interfaces + if not _is_channel(interface) + ) + + +def _interface_rename_plan(device_id, module_id, db_alias, rule, variables, interface) -> InstalledFamilyPlan: + """Return a plan that renames one interface which belongs to no family.""" status, reason, target_name = None, "", interface.name try: target_name = evaluate_name_template(rule.name_template, {**variables, "base": interface.name}) @@ -283,9 +313,9 @@ def plan_interface_rename(module, rule, variables, interface) -> InstalledFamily return InstalledFamilyPlan( family_id=f"flat:{interface.pk}", topology=FamilyTopology.FLAT, - device_id=module.device_id, - module_id=module.pk, - db_alias=module_db_alias(module), + device_id=device_id, + module_id=module_id, + db_alias=db_alias, members=( PlannedMember( snapshot=InterfaceSnapshot.from_interface(interface), @@ -298,6 +328,32 @@ def plan_interface_rename(module, rule, variables, interface) -> InstalledFamily ) +def plan_interface_rename(module, rule, variables, interface) -> InstalledFamilyPlan: + """Return the plan that renames one interface which belongs to no family.""" + return _interface_rename_plan( + module.device_id, + module.pk, + module_db_alias(module), + rule, + variables, + interface, + ) + + +def plan_device_interface_rename(device, rule, variables, interface, children=()) -> InstalledFamilyPlan: + """Return the plan that renames one device-level interface family.""" + db_alias = _db_alias(device) + if not children and not is_channelized_parent(interface): + return _interface_rename_plan(device.pk, None, db_alias, rule, variables, interface) + # A device rule never builds a family, so its channel count says nothing about this one: the + # members keep the suffixes they carry under whatever name the parent takes. A device-level + # interface has no module template family, so there is no suffix to recover from one either. + targets = lockstep_family_targets( + rule, variables, interface.name, tuple((child.name, child.channel_id) for child in children), {} + ) + return _channelized_plan(device.pk, None, db_alias, interface, children, targets) + + def plan_installed_families(module, rule, variables, interfaces=None) -> InstalledFamilyPlanSet: """Return immutable plans for the installed families owned by *module*. diff --git a/netbox_interface_name_rules/family/targets.py b/netbox_interface_name_rules/family/targets.py index 8eefa72..fce7ca4 100644 --- a/netbox_interface_name_rules/family/targets.py +++ b/netbox_interface_name_rules/family/targets.py @@ -183,8 +183,12 @@ def _breakout_targets(rule, variables, parent_name, parent_channels, children): return FamilyTargets(parent_name=parent_target, channels=channels) -def _lockstep_targets(rule, variables, parent_name, children, suffixes): # pragma: no cover - """Return the names a simple rule intends for a family renamed in lockstep with its parent.""" +def lockstep_family_targets(rule, variables, parent_name, children, suffixes): # pragma: no cover + """Return the names a simple rule intends for a family renamed in lockstep with its parent. + + The rule's channel count says nothing here: this family already exists, and every member keeps + the suffix it carries under whatever name the parent takes. + """ try: parent_target = evaluate_name_template(rule.name_template, {**variables, "base": parent_name}) except (TypeError, ValueError) as error: @@ -207,4 +211,4 @@ def channelized_family_targets( # pragma: no cover - requires channelization su """ if rule.channel_count > 0: return _breakout_targets(rule, variables, parent_name, parent_channels, children) - return _lockstep_targets(rule, variables, parent_name, children, suffixes) + return lockstep_family_targets(rule, variables, parent_name, children, suffixes) diff --git a/netbox_interface_name_rules/tests/test_channelization.py b/netbox_interface_name_rules/tests/test_channelization.py index dba630c..a1ceca5 100644 --- a/netbox_interface_name_rules/tests/test_channelization.py +++ b/netbox_interface_name_rules/tests/test_channelization.py @@ -491,6 +491,20 @@ def test_children_follow_parent_and_are_not_matched_independently(self): self.assertEqual(renamed, 5) self.assertEqual(self._names(), ["eth1", "eth1:1", "eth1:2", "eth1:3", "eth1:4"]) + def test_a_channel_count_on_a_device_rule_does_not_block_the_family(self): + """A device rule never builds a family, so a channel count on one says nothing about this one.""" + InterfaceNameRule.objects.create( + applies_to_device_interfaces=True, + name_template="eth{vc_position}", + channel_count=2, + channel_start=0, + ) + + renamed = apply_device_interface_rules(self.device) + + self.assertEqual(renamed, 5) + self.assertEqual(self._names(), ["eth1", "eth1:1", "eth1:2", "eth1:3", "eth1:4"]) + def test_rule_matching_only_children_renames_nothing(self): """A pattern that hits only channel subinterfaces has no parent to act on.""" InterfaceNameRule.objects.create( diff --git a/netbox_interface_name_rules/tests/test_device_rules.py b/netbox_interface_name_rules/tests/test_device_rules.py index 80e7bdb..9647610 100644 --- a/netbox_interface_name_rules/tests/test_device_rules.py +++ b/netbox_interface_name_rules/tests/test_device_rules.py @@ -157,12 +157,12 @@ def test_validation_failure_is_logged_and_skipped(self): # assertLogs asserts the warning branch actually fired — without it, "no rule matched" would # also yield result==0 and a preserved name, so the test would pass without covering the path. - with self.assertLogs("netbox_interface_name_rules.engine", level="WARNING") as logs: + with self.assertLogs("netbox_interface_name_rules.family.execution", level="WARNING") as logs: result = apply_device_interface_rules(self.device1) self.assertEqual(result, 0) # validation failed → nothing renamed self.assertTrue( - any("Validation failed renaming device interface" in line for line in logs.output), + any("NetBox rejected rename" in line for line in logs.output), logs.output, ) iface.refresh_from_db() @@ -309,7 +309,7 @@ def test_global_rule_applies_to_any_device_type(self): class DeviceInterfaceEdgeCaseNamesTest(TestCase): - """Test _try_rename_device_interface with edge-case interface names.""" + """Test device-level rules with edge-case interface names.""" @classmethod def setUpTestData(cls): diff --git a/netbox_interface_name_rules/tests/test_engine_advanced.py b/netbox_interface_name_rules/tests/test_engine_advanced.py index 07f4185..e70be6b 100644 --- a/netbox_interface_name_rules/tests/test_engine_advanced.py +++ b/netbox_interface_name_rules/tests/test_engine_advanced.py @@ -1350,12 +1350,12 @@ def test_tag_getorcreate_exception_is_swallowed(self): # --------------------------------------------------------------------------- -# engine.py — DB save exception rollback in _try_rename_device_interface (lines 159-168) +# Device interface save exception rollback # --------------------------------------------------------------------------- class DeviceInterfaceSaveExceptionTest(TestCase): - """Test _try_rename_device_interface rolls back name on iface.save() failure (lines 159-168).""" + """Test the device rule path rolls back the name when an interface save fails.""" @classmethod def setUpTestData(cls): @@ -1373,11 +1373,11 @@ def setUpTestData(cls): vc_position=1, ) - def test_save_exception_restores_name_and_returns_false(self): - """When iface.save() raises, name is rolled back to old_name and False returned (lines 159-168).""" - from netbox_interface_name_rules.engine import _try_rename_device_interface + def test_save_exception_restores_name_and_returns_zero(self): + """Restore the old name and return zero when an interface save fails.""" + from netbox_interface_name_rules.engine import apply_device_interface_rules - rule = InterfaceNameRule.objects.create( + InterfaceNameRule.objects.create( applies_to_device_interfaces=True, name_template="xe-{vc_position}/{port}", ) @@ -1386,9 +1386,9 @@ def test_save_exception_restores_name_and_returns_false(self): from django.db import IntegrityError with patch.object(Interface, "save", side_effect=IntegrityError("disk full")): - result = _try_rename_device_interface(rule, iface, "1", self.device, set()) + result = apply_device_interface_rules(self.device) - self.assertFalse(result) + self.assertEqual(result, 0) self.assertEqual(iface.name, "Gi0/1") # rolled back From 3f1cc49a6c5f6281027d4c62dc2d961180432cf7 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 14:08:00 +0200 Subject: [PATCH 33/74] docs: describe the contracted family architecture Records the engine contraction as ADR 0011, completing the direction ADR 0006 set and the remaining step ADR 0009 named. Adds the vocabulary the finished design uses to the domain glossary: the conversion as a structural family change, the out-of-band rename a stale plan protects against, and the engine facade as a compatibility surface that holds no family logic. Corrects the Apply-page description: a family the plugin can already refuse from the rows it found is reported without a dry run, so not every verdict comes from a rolled-back conversion any more. --- CONTEXT.md | 12 ++++++++++++ .../0011-contract-the-engine-to-a-family-facade.md | 13 +++++++++++++ docs/examples.md | 12 +++++++----- 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 docs/adr/0011-contract-the-engine-to-a-family-facade.md diff --git a/CONTEXT.md b/CONTEXT.md index 29eabd8..18f11d1 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -49,6 +49,18 @@ _Avoid_: Family conversion A change that creates an interface family or changes it between flat and channelized topologies. _Avoid_: Family rename +**Flat-to-channelized conversion**: +A structural family change that rebuilds one installed flat breakout family as a channelized family, keeping the physical interface row and moving its logical identity onto the channel that takes its name. It is always an explicit operator action, never a side effect of applying a rule. +_Avoid_: Migration, upgrade + +**Out-of-band rename**: +A change to an interface name made by an actor other than this plugin, such as an operator edit or an import. A family plan is stale when one arrives between planning and execution. +_Avoid_: External rename, manual fix + +**Engine facade**: +The compatibility surface downstream callers import. It selects rules, builds template variables and decides which interfaces an automatic path may touch on a run; it holds no family discovery, planning or mutation. +_Avoid_: Engine layer, core + **Unsupported topology**: An interface-family topology that the active NetBox data model cannot represent. _Avoid_: Legacy fallback diff --git a/docs/adr/0011-contract-the-engine-to-a-family-facade.md b/docs/adr/0011-contract-the-engine-to-a-family-facade.md new file mode 100644 index 0000000..f798ae0 --- /dev/null +++ b/docs/adr/0011-contract-the-engine-to-a-family-facade.md @@ -0,0 +1,13 @@ +--- +status: accepted +--- + +# Contract the engine to a family facade + +The engine no longer holds a family implementation. Automatic installation, prediction, interactive preview and apply, bulk operations, virtual-chassis reapplication, device-level renaming, conversion and deferred reconciliation all reach the family package, and every rename, creation and rewrite goes through one locked, revalidating executor. This completes the direction set in ADR 0006 and the remaining step named in ADR 0009. + +What stays in the engine is what was never about families: which rule wins, how a rule's variables are built, and the raw-name idempotency guard that decides which interfaces an automatic path may touch on this run. The guard runs while it can still see every interface a rule claimed, before two of them that intend one family are collapsed into it, because an ambiguous pair is only visible while both are present. The device-level path keeps its own rule selection and its claim bookkeeping for the same reason, and asks the package for lockstep names directly: a device rule never builds a family, so its channel count says nothing about one it finds. + +Module installation now reads a module's interfaces once and plans the whole module, rather than planning installed families, executing them, and then re-reading what was left. Device-level renaming gained revalidation and row locking it never had. + +The private helpers the engine used are deleted rather than wrapped, so no second implementation can drift from the package. The family package does not import the engine facade, and the shared dependencies point only at rule selection and naming. diff --git a/docs/examples.md b/docs/examples.md index adb1a07..4db36de 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -176,11 +176,13 @@ disabled rule converts nothing, on this page or in the background job. Conversion is only ever performed from that page, by an operator who confirmed it: **Apply** renames, it never rewrites a family. Each family gets its own -verdict before anything is written, produced by performing the whole conversion -inside a transaction that is rolled back again — so a family that NetBox would -reject is reported with NetBox's own reason (a cabled sibling, an occupied -parent name, a missing sibling, a sibling already channelized, a sibling that is -already a channel of another parent) instead of being half converted. Selecting +verdict before anything is written. A family the plugin can already refuse from +what it knows — a module that no longer carries the whole family — is reported +without touching a row; every other verdict comes from performing the whole +conversion inside a transaction that is rolled back again, so a family NetBox +would reject is reported with NetBox's own reason (a cabled sibling, an occupied +parent name, a sibling already channelized, a sibling that is already a channel +of another parent) instead of being half converted. Selecting a blocked family converts the others and skips that one. What the conversion does to the ch-0 row, per family: From b82000b9d30cb6647b0eb35e6ea23e47a57b1687 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 14:28:56 +0200 Subject: [PATCH 34/74] refactor: describe every previewed name with one immutable value The apply preview built its name details as plain dicts while conversion built the same thing as PlannedName, so one concept had two shapes and a caller had to know which path produced its rows. The preview now uses PlannedName too, and the templates that render both loops are unchanged because they already read the names as attributes. Also adds a comparison tool for the before and after performance artifacts, so the evidence for this refactor is reproducible rather than transcribed. --- netbox_interface_name_rules/engine.py | 19 +-- .../tests/test_channelization.py | 19 ++- .../tests/test_channelized_mode.py | 2 +- .../tests/test_prospective_families.py | 2 +- performance/compare.py | 150 ++++++++++++++++++ 5 files changed, 168 insertions(+), 24 deletions(-) create mode 100644 performance/compare.py diff --git a/netbox_interface_name_rules/engine.py b/netbox_interface_name_rules/engine.py index 82f3cd1..d75edb6 100644 --- a/netbox_interface_name_rules/engine.py +++ b/netbox_interface_name_rules/engine.py @@ -545,29 +545,20 @@ def _build_module_qs(rule): return qs -def _name_detail(name, role, channel_id=None) -> dict: - """Describe one previewed name so the UI can render a family as a family. - - *role* is ``interface`` (a plain rename), ``parent`` (the family's physical interface) or - ``channel``; *channel_id* is the parent channel a channel name is bound to, when known. - """ - return {"name": name, "role": role, "channel_id": channel_id} - - _PREVIEW_ROLES = { family_ops.MemberRole.PARENT: "parent", family_ops.MemberRole.CHANNEL: "channel", } -def _member_detail(plan, member) -> dict: +def _member_detail(plan, member) -> family_ops.PlannedName: """Describe one planned member so the UI can render a family as a family. A flat family's members are the channels a breakout rule spells out; a plan that holds only one of them is a plain rename, not a family. """ role = _PREVIEW_ROLES.get(member.role) or ("channel" if len(plan.members) > 1 else "interface") - return _name_detail(member.target_name, role, member.channel_id) + return family_ops.PlannedName(member.target_name, role, member.channel_id) def _plan_details(plan) -> list: @@ -575,7 +566,7 @@ def _plan_details(plan) -> list: if plan.precondition_status != family_ops.FamilyStatus.FAILED: return [_member_detail(plan, member) for member in plan.members] root = _member_detail(plan, plan.members[0]) - return [_name_detail(f"", root["role"], root["channel_id"])] + return [family_ops.PlannedName(f"", root.role, root.channel_id)] def _plan_changes_names(plan, existing_names) -> bool: @@ -609,7 +600,7 @@ def _plan_entry(module, plan, interface, existing_names) -> dict | None: "module": module, "interface": interface, "current_name": interface.name, - "new_names": [detail["name"] for detail in details], + "new_names": [detail.name for detail in details], "name_details": details, } @@ -678,7 +669,7 @@ def find_interfaces_for_rule(rule, limit=None): "interface": Interface instance, "current_name": str, "new_names": list[str], # one entry per channel, or single-element - "name_details": list[dict], # {"name", "role", "channel_id"} per new_names entry + "name_details": list[PlannedName], # name, role and channel id per new_names entry } Only includes entries where at least one new_name differs from current_name. diff --git a/netbox_interface_name_rules/tests/test_channelization.py b/netbox_interface_name_rules/tests/test_channelization.py index a1ceca5..6c39cdd 100644 --- a/netbox_interface_name_rules/tests/test_channelization.py +++ b/netbox_interface_name_rules/tests/test_channelization.py @@ -347,7 +347,7 @@ def test_preview_offers_channel_renames_and_no_new_interfaces(self): self.assertEqual(results[0]["current_name"], "3") self.assertEqual(results[0]["new_names"], ["3", "xe-0/0/3:0", "xe-0/0/3:1", "xe-0/0/3:2", "xe-0/0/3:3"]) self.assertEqual( - [(detail["role"], detail["channel_id"]) for detail in results[0]["name_details"]], + [(detail.role, detail.channel_id) for detail in results[0]["name_details"]], [("parent", None), ("channel", 1), ("channel", 2), ("channel", 3), ("channel", 4)], ) @@ -402,17 +402,20 @@ def test_preview_annotates_the_family_behind_the_parent_entry(self): self.assertEqual(family["new_names"], ["et-3", "et-3:1", "et-3:2", "et-3:3", "et-3:4"]) self.assertEqual( - family["name_details"], + [(detail.name, detail.role, detail.channel_id) for detail in family["name_details"]], [ - {"name": "et-3", "role": "parent", "channel_id": None}, - {"name": "et-3:1", "role": "channel", "channel_id": 1}, - {"name": "et-3:2", "role": "channel", "channel_id": 2}, - {"name": "et-3:3", "role": "channel", "channel_id": 3}, - {"name": "et-3:4", "role": "channel", "channel_id": 4}, + ("et-3", "parent", None), + ("et-3:1", "channel", 1), + ("et-3:2", "channel", 2), + ("et-3:3", "channel", 3), + ("et-3:4", "channel", 4), ], ) self.assertEqual(family["interface"], self._parent(family["module"])) - self.assertEqual(standalone["name_details"], [{"name": "et-3-mgmt", "role": "interface", "channel_id": None}]) + self.assertEqual( + [(detail.name, detail.role, detail.channel_id) for detail in standalone["name_details"]], + [("et-3-mgmt", "interface", None)], + ) def test_has_applicable_interfaces_ignores_a_renamed_family(self): """Children must not keep the rule looking 'applicable' after the family is correctly named.""" diff --git a/netbox_interface_name_rules/tests/test_channelized_mode.py b/netbox_interface_name_rules/tests/test_channelized_mode.py index ee4cf5d..e7ae4ae 100644 --- a/netbox_interface_name_rules/tests/test_channelized_mode.py +++ b/netbox_interface_name_rules/tests/test_channelized_mode.py @@ -524,7 +524,7 @@ def test_preview_describes_the_family_it_would_build(self): self.assertEqual(results[0]["current_name"], "3") self.assertEqual(results[0]["new_names"], self.FAMILY_NAMES) self.assertEqual( - [(detail["role"], detail["channel_id"]) for detail in results[0]["name_details"]], + [(detail.role, detail.channel_id) for detail in results[0]["name_details"]], [("parent", None), ("channel", 1), ("channel", 2), ("channel", 3), ("channel", 4)], ) diff --git a/netbox_interface_name_rules/tests/test_prospective_families.py b/netbox_interface_name_rules/tests/test_prospective_families.py index 71a9e8b..df5cac7 100644 --- a/netbox_interface_name_rules/tests/test_prospective_families.py +++ b/netbox_interface_name_rules/tests/test_prospective_families.py @@ -507,7 +507,7 @@ def test_the_preview_names_are_the_planned_names(self): self.assertEqual(checked, 1) self.assertEqual(preview[0]["new_names"], list(plan.target_names)) - self.assertEqual([detail["role"] for detail in preview[0]["name_details"]], ["channel"] * 4) + self.assertEqual([detail.role for detail in preview[0]["name_details"]], ["channel"] * 4) def test_the_preview_changes_no_interface(self): from netbox_interface_name_rules.engine import find_interfaces_for_rule diff --git a/performance/compare.py b/performance/compare.py new file mode 100644 index 0000000..10ca100 --- /dev/null +++ b/performance/compare.py @@ -0,0 +1,150 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Compare two automatic naming performance artifacts and write a readable summary. + +Usage: python performance/compare.py BEFORE.json AFTER.json OUT.md + +Database work is deterministic, so its deltas are evidence on any machine. Machine time is only +evidence when both runs were taken on the same hardware under a comparable load; the summary says +which numbers it is reporting and leaves the judgement to the reader. +""" + +import json +import sys +from pathlib import Path + +_DB_METRICS = ( + ("statement_calls", "SQL calls"), + ("planner_total_cost", "Planner cost"), + ("shared_hit_blocks", "Shared hits"), + ("shared_read_blocks", "Shared reads"), + ("wal_bytes", "WAL bytes"), +) +_TIME_METRICS = ( + ("wall", "median_ms", "Wall median (ms)"), + ("wall", "p95_ms", "Wall p95 (ms)"), + ("process_cpu", "median_ms", "CPU median (ms)"), +) + + +def _scenarios(artifact): + """Return the artifact's scenarios keyed by name.""" + return {scenario["name"]: scenario for scenario in artifact["scenarios"]} + + +def _delta(before, after): + """Return the absolute and percentage change, or None when there is no baseline to divide by.""" + change = after - before + if not before: + return change, None + return change, change / before * 100 + + +def _format(value): + """Return a compact fixed-point rendering of one metric value.""" + if isinstance(value, float) and not value.is_integer(): + return f"{value:.2f}" + return f"{int(value)}" + + +def _row(name, before, after): + """Return one Markdown table row for a metric that both runs recorded.""" + change, percent = _delta(before, after) + share = "n/a" if percent is None else f"{percent:+.1f}%" + return f"| `{name}` | {_format(before)} | {_format(after)} | {_format(change)} | {share} |" + + +def _database_table(before, after): + """Return the per-scenario database-work comparison.""" + lines = ["| Scenario | Metric | Before | After | Change | Share |", "| --- | --- | ---: | ---: | ---: | ---: |"] + regressions = [] + for name, before_scenario in before.items(): + after_scenario = after.get(name) + if after_scenario is None: + lines.append(f"| `{name}` | — | — | missing | — | — |") + continue + for key, label in _DB_METRICS: + old = before_scenario["database"]["totals"].get(key) + new = after_scenario["database"]["totals"].get(key) + if old is None or new is None: + continue + change, percent = _delta(old, new) + share = "n/a" if percent is None else f"{percent:+.1f}%" + lines.append(f"| `{name}` | {label} | {_format(old)} | {_format(new)} | {_format(change)} | {share} |") + if key == "statement_calls" and change > 0: + regressions.append((name, label, old, new)) + return lines, regressions + + +def _time_table(before, after): + """Return the per-scenario machine-time comparison.""" + lines = ["| Scenario | Metric | Before | After | Change | Share |", "| --- | --- | ---: | ---: | ---: | ---: |"] + for name, before_scenario in before.items(): + after_scenario = after.get(name) + if after_scenario is None: + continue + for section, key, label in _TIME_METRICS: + old = before_scenario["machine_time"][section][key] + new = after_scenario["machine_time"][section][key] + change, percent = _delta(old, new) + share = "n/a" if percent is None else f"{percent:+.1f}%" + lines.append(f"| `{name}` | {label} | {_format(old)} | {_format(new)} | {_format(change)} | {share} |") + return lines + + +def _environment_table(before, after): + """Return the revisions and settings each run was taken under.""" + rows = ["| Field | Before | After |", "| --- | --- | --- |"] + for key in ("plugin_revision", "netbox_revision", "netbox_version", "cpu_model", "operating_system_release"): + rows.append(f"| {key} | `{before['environment'].get(key)}` | `{after['environment'].get(key)}` |") + for key in ("samples", "warmups"): + rows.append(f"| {key} | `{before['configuration'].get(key)}` | `{after['configuration'].get(key)}` |") + postgres_before = before["environment"].get("postgresql", {}).get("version") + postgres_after = after["environment"].get("postgresql", {}).get("version") + rows.append(f"| postgresql | `{postgres_before}` | `{postgres_after}` |") + return rows + + +def main(argv): + """Write the comparison of two artifacts to a Markdown file.""" + if len(argv) != 4: + raise SystemExit(__doc__) + before = json.loads(Path(argv[1]).read_text()) + after = json.loads(Path(argv[2]).read_text()) + before_scenarios, after_scenarios = _scenarios(before), _scenarios(after) + + database_lines, regressions = _database_table(before_scenarios, after_scenarios) + report = [ + "# Automatic naming performance comparison", + "", + "Generated by `performance/compare.py` from the before and after artifacts of the " + "interface-family refactor. Database work is deterministic and is the evidence this " + "comparison rests on. Machine time is reported for completeness and is only evidence when " + "both runs were taken on the same otherwise-idle hardware.", + "", + "## Environment", + "", + *_environment_table(before, after), + "", + "## Database work", + "", + *database_lines, + "", + "## Machine time", + "", + *_time_table(before_scenarios, after_scenarios), + "", + "## Statement-count regressions", + "", + ] + if regressions: + report.extend(f"- `{name}` {label}: {_format(old)} to {_format(new)}" for name, label, old, new in regressions) + else: + report.append("None. No scenario issues more statements than the baseline.") + report.append("") + Path(argv[3]).write_text("\n".join(report)) + print(f"wrote {argv[3]} ({len(regressions)} statement-count regressions)") + + +if __name__ == "__main__": + main(sys.argv) From 6e0f6ec606a261151960f6bc90c7b661855253ce Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 14:32:23 +0200 Subject: [PATCH 35/74] fix: validate the comparison tool's artifact paths The comparison tool took three file paths straight from its arguments, so a mistyped or pasted path could read and write outside the repository. Each path is now resolved inside the repository and refused when it points outside it. --- performance/compare.py | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/performance/compare.py b/performance/compare.py index 10ca100..41735f7 100644 --- a/performance/compare.py +++ b/performance/compare.py @@ -13,6 +13,8 @@ import sys from pathlib import Path +_ROOT = Path(__file__).resolve().parent.parent + _DB_METRICS = ( ("statement_calls", "SQL calls"), ("planner_total_cost", "Planner cost"), @@ -27,6 +29,17 @@ ) +def _artifact_path(raw, must_exist): + """Resolve *raw* inside this repository, refusing a path that points outside it.""" + candidate = Path(raw) + path = (candidate if candidate.is_absolute() else _ROOT / candidate).resolve() + if not path.is_relative_to(_ROOT): + raise SystemExit(f"{raw} is outside the repository") + if must_exist and not path.is_file(): + raise SystemExit(f"{raw} is not a readable artifact") + return path + + def _scenarios(artifact): """Return the artifact's scenarios keyed by name.""" return {scenario["name"]: scenario for scenario in artifact["scenarios"]} @@ -47,13 +60,6 @@ def _format(value): return f"{int(value)}" -def _row(name, before, after): - """Return one Markdown table row for a metric that both runs recorded.""" - change, percent = _delta(before, after) - share = "n/a" if percent is None else f"{percent:+.1f}%" - return f"| `{name}` | {_format(before)} | {_format(after)} | {_format(change)} | {share} |" - - def _database_table(before, after): """Return the per-scenario database-work comparison.""" lines = ["| Scenario | Metric | Before | After | Change | Share |", "| --- | --- | ---: | ---: | ---: | ---: |"] @@ -109,8 +115,9 @@ def main(argv): """Write the comparison of two artifacts to a Markdown file.""" if len(argv) != 4: raise SystemExit(__doc__) - before = json.loads(Path(argv[1]).read_text()) - after = json.loads(Path(argv[2]).read_text()) + before = json.loads(_artifact_path(argv[1], must_exist=True).read_text()) + after = json.loads(_artifact_path(argv[2], must_exist=True).read_text()) + destination = _artifact_path(argv[3], must_exist=False) before_scenarios, after_scenarios = _scenarios(before), _scenarios(after) database_lines, regressions = _database_table(before_scenarios, after_scenarios) @@ -142,8 +149,8 @@ def main(argv): else: report.append("None. No scenario issues more statements than the baseline.") report.append("") - Path(argv[3]).write_text("\n".join(report)) - print(f"wrote {argv[3]} ({len(regressions)} statement-count regressions)") + destination.write_text("\n".join(report)) + print(f"wrote {destination} ({len(regressions)} statement-count regressions)") if __name__ == "__main__": From d2f104c67653b9d9fd636e56dbb5523185a80780 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 14:52:26 +0200 Subject: [PATCH 36/74] perf: record the interface-family after artifact and its comparison Reruns the #74 scenarios against the family package on the NetBox revision and the host the baseline was taken on, and retains the generated summary and a readable comparison beside it. The plugin's own committed callback issues fewer or the same statements in every scenario: unchanged where no rule matches, and down 5% to 36% elsewhere, with the largest reductions on virtual-chassis reapplication. Two complete-model-save scenarios issue more statements than the baseline. The comparison breaks each one down by table and attributes every added statement to core_objecttype, extras_customfield and extras_cachedvalue, which is NetBox's own per-save bookkeeping for the object types and custom fields the database holds. The control is the scenario where no rule matches: the callback issues the same 7 statements in both runs while the surrounding save costs 17 more. Machine time from this run is recorded but is not evidence. The host was running unrelated workloads throughout, and the same no-op scenario shows +72% wall time against identical SQL. That comparison needs an idle host. --- performance/README.md | 28 +++ performance/baselines/family-package.md | 29 +++ performance/compare.py | 40 +++++ .../comparisons/family-package-vs-existing.md | 168 ++++++++++++++++++ 4 files changed, 265 insertions(+) create mode 100644 performance/baselines/family-package.md create mode 100644 performance/comparisons/family-package-vs-existing.md diff --git a/performance/README.md b/performance/README.md index 4afa7f2..dd14fd6 100644 --- a/performance/README.md +++ b/performance/README.md @@ -36,3 +36,31 @@ The complete model-save scenarios include NetBox model creation, plugin signal s committed callback. Direct-callback scenarios isolate the deferred callback for diagnosis. Compare the complete model-save scenarios first when deciding whether the refactor changed production-path performance. + +## Comparing two runs + +`performance/compare.py BEFORE.json AFTER.json OUT.md` writes a readable comparison of database +work and machine time, and breaks any scenario whose statement count rose down by table. + +## Result of the interface-family comparison + +`comparisons/family-package-vs-existing.md` compares the pre-refactor baseline with the family +package on the same NetBox revision and the same host. + +Database work carries the verdict, because it is deterministic. The plugin's own committed callback +issues fewer or the same statements in every scenario: unchanged where no rule matches, and down by +5% to 36% everywhere else, with the largest reductions on virtual-chassis reapplication (-29% for +one module, -36% for eight). + +Two complete-model-save scenarios show more statements than the baseline. The per-table breakdown +attributes every one of them to `core_objecttype`, `extras_customfield` and `extras_cachedvalue`: +NetBox's own per-save bookkeeping for the object types and custom fields the test database holds, +which grew between the two runs. The control is `module.complete_model_save.no_matching_rule`, where +this plugin returns before doing anything and its callback issues the same 7 statements in both +runs, yet the surrounding save costs 17 more. Neither increase is work this refactor added. + +Machine time in that run is not evidence. The host was running unrelated workloads at a load average +between 17 and 44, and the same no-op scenario shows +72% wall time against identical SQL. The +virtual-chassis scenarios were still 32% to 35% faster despite the contention, which is consistent +with their statement reductions. Rerun both artifacts on an otherwise-idle host before quoting any +timing figure as evidence. diff --git a/performance/baselines/family-package.md b/performance/baselines/family-package.md new file mode 100644 index 0000000..e2245de --- /dev/null +++ b/performance/baselines/family-package.md @@ -0,0 +1,29 @@ +# Existing automatic naming performance + +This file is generated by `netbox_interface_name_rules.tests.signal_performance`. +Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits. + +| Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) | +| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | +| `module.complete_model_save.no_matching_rule` | complete_model_save | 77 | 1316.720 | 304 | 224.931 | 246.449 | 166.772 | +| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 12.440 | 12 | 20.586 | 22.829 | 16.504 | +| `module.complete_model_save.plain_rename` | complete_model_save | 86 | 1210.160 | 374 | 304.300 | 353.808 | 234.664 | +| `module.direct_callback.plain_rename` | direct_callback | 38 | 262.200 | 121 | 125.019 | 142.708 | 94.155 | +| `module.complete_model_save.structural_creation` | complete_model_save | 183 | 2278.820 | 790 | 421.892 | 483.334 | 318.683 | +| `module.direct_callback.structural_creation` | direct_callback | 94 | 757.000 | 369 | 229.884 | 249.306 | 175.313 | +| `module.complete_model_save.existing_family` | complete_model_save | 288 | 2802.850 | 1280 | 912.449 | 959.241 | 680.826 | +| `module.direct_callback.existing_family` | direct_callback | 168 | 1278.460 | 555 | 489.865 | 541.660 | 387.956 | +| `module.complete_model_save.reconciliation` | complete_model_save | 349 | 4091.820 | 1720 | 1290.722 | 1427.899 | 1007.947 | +| `module.direct_callback.reconciliation` | direct_callback | 257 | 2950.820 | 1021 | 538.176 | 651.427 | 428.691 | +| `vc.complete_model_save.reapply_1` | complete_model_save | 46 | 391.270 | 234 | 146.467 | 160.689 | 111.903 | +| `vc.direct_callback.reapply_1` | direct_callback | 29 | 229.320 | 133 | 99.000 | 105.570 | 75.957 | +| `vc.complete_model_save.reapply_8` | complete_model_save | 200 | 1739.100 | 978 | 588.211 | 630.194 | 468.481 | +| `vc.direct_callback.reapply_8` | direct_callback | 183 | 1423.260 | 857 | 536.223 | 583.242 | 424.543 | + +Plugin revision: `b82000b9d30cb6647b0eb35e6ea23e47a57b1687` + +NetBox revision: `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` + +PostgreSQL: `18.3 (Debian 18.3-1.pgdg13+1)` + +Samples per scenario: `15` diff --git a/performance/compare.py b/performance/compare.py index 41735f7..a5a5e2f 100644 --- a/performance/compare.py +++ b/performance/compare.py @@ -10,7 +10,9 @@ """ import json +import re import sys +from collections import Counter from pathlib import Path _ROOT = Path(__file__).resolve().parent.parent @@ -40,6 +42,31 @@ def _artifact_path(raw, must_exist): return path +def _statement_table(sql): + """Return the table a normalized statement reads or writes, for attribution.""" + match = re.search(r'(?:FROM|INTO|UPDATE)\s+"([a-z_]+)"', sql) + return match.group(1) if match else sql.split()[0][:24] + + +def _calls_by_table(scenario): + """Return how many statements the scenario issued against each table.""" + counts: Counter = Counter() + for entry in scenario["database"]["statements"]: + counts[_statement_table(entry["normalized_sql"])] += entry["calls"] + return counts + + +def _attribution(name, before_scenario, after_scenario): + """Return the per-table statement deltas behind one scenario's change.""" + before_calls, after_calls = _calls_by_table(before_scenario), _calls_by_table(after_scenario) + rows = [] + for table in sorted(set(before_calls) | set(after_calls)): + change = after_calls[table] - before_calls[table] + if change: + rows.append(f"| `{name}` | `{table}` | {before_calls[table]} | {after_calls[table]} | {change:+d} |") + return rows + + def _scenarios(artifact): """Return the artifact's scenarios keyed by name.""" return {scenario["name"]: scenario for scenario in artifact["scenarios"]} @@ -146,6 +173,19 @@ def main(argv): ] if regressions: report.extend(f"- `{name}` {label}: {_format(old)} to {_format(new)}" for name, label, old, new in regressions) + report += [ + "", + "### Where those statements come from", + "", + "Each raised scenario is broken down by the table its statements touch, so the work this " + "plugin drives can be told apart from the per-save bookkeeping NetBox does for the object " + "types and custom fields the database happens to hold.", + "", + "| Scenario | Table | Before | After | Change |", + "| --- | --- | ---: | ---: | ---: |", + ] + for name, _label, _old, _new in regressions: + report.extend(_attribution(name, before_scenarios[name], after_scenarios[name])) else: report.append("None. No scenario issues more statements than the baseline.") report.append("") diff --git a/performance/comparisons/family-package-vs-existing.md b/performance/comparisons/family-package-vs-existing.md new file mode 100644 index 0000000..7a19658 --- /dev/null +++ b/performance/comparisons/family-package-vs-existing.md @@ -0,0 +1,168 @@ +# Automatic naming performance comparison + +Generated by `performance/compare.py` from the before and after artifacts of the interface-family refactor. Database work is deterministic and is the evidence this comparison rests on. Machine time is reported for completeness and is only evidence when both runs were taken on the same otherwise-idle hardware. + +## Environment + +| Field | Before | After | +| --- | --- | --- | +| plugin_revision | `ccadd0bb5b2852ff81f2747769d61746254173e1` | `b82000b9d30cb6647b0eb35e6ea23e47a57b1687` | +| netbox_revision | `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` | `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` | +| netbox_version | `4.7.0-beta1` | `4.7.0-beta1` | +| cpu_model | `Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz` | `Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz` | +| operating_system_release | `6.12.96+deb13-amd64` | `6.12.96+deb13-amd64` | +| samples | `15` | `15` | +| warmups | `3` | `3` | +| postgresql | `None` | `None` | + +## Database work + +| Scenario | Metric | Before | After | Change | Share | +| --- | --- | ---: | ---: | ---: | ---: | +| `module.complete_model_save.no_matching_rule` | SQL calls | 60 | 77 | 17 | +28.3% | +| `module.complete_model_save.no_matching_rule` | Planner cost | 912.14 | 1316.72 | 404.58 | +44.4% | +| `module.complete_model_save.no_matching_rule` | Shared hits | 172 | 304 | 132 | +76.7% | +| `module.complete_model_save.no_matching_rule` | Shared reads | 31 | 0 | -31 | -100.0% | +| `module.complete_model_save.no_matching_rule` | WAL bytes | 2204 | 5273 | 3069 | +139.2% | +| `module.direct_callback.no_matching_rule` | SQL calls | 7 | 7 | 0 | +0.0% | +| `module.direct_callback.no_matching_rule` | Planner cost | 12.44 | 12.44 | 0 | +0.0% | +| `module.direct_callback.no_matching_rule` | Shared hits | 12 | 12 | 0 | +0.0% | +| `module.direct_callback.no_matching_rule` | Shared reads | 0 | 0 | 0 | n/a | +| `module.direct_callback.no_matching_rule` | WAL bytes | 0 | 0 | 0 | n/a | +| `module.complete_model_save.plain_rename` | SQL calls | 94 | 86 | -8 | -8.5% | +| `module.complete_model_save.plain_rename` | Planner cost | 1318.71 | 1210.16 | -108.55 | -8.2% | +| `module.complete_model_save.plain_rename` | Shared hits | 420 | 374 | -46 | -11.0% | +| `module.complete_model_save.plain_rename` | Shared reads | 23 | 0 | -23 | -100.0% | +| `module.complete_model_save.plain_rename` | WAL bytes | 4134 | 5142 | 1008 | +24.4% | +| `module.direct_callback.plain_rename` | SQL calls | 40 | 38 | -2 | -5.0% | +| `module.direct_callback.plain_rename` | Planner cost | 344.01 | 262.20 | -81.81 | -23.8% | +| `module.direct_callback.plain_rename` | Shared hits | 172 | 121 | -51 | -29.7% | +| `module.direct_callback.plain_rename` | Shared reads | 0 | 0 | 0 | n/a | +| `module.direct_callback.plain_rename` | WAL bytes | 1783 | 1999 | 216 | +12.1% | +| `module.complete_model_save.structural_creation` | SQL calls | 172 | 183 | 11 | +6.4% | +| `module.complete_model_save.structural_creation` | Planner cost | 2478.22 | 2278.82 | -199.40 | -8.0% | +| `module.complete_model_save.structural_creation` | Shared hits | 752 | 790 | 38 | +5.1% | +| `module.complete_model_save.structural_creation` | Shared reads | 13 | 0 | -13 | -100.0% | +| `module.complete_model_save.structural_creation` | WAL bytes | 11613 | 12820 | 1207 | +10.4% | +| `module.direct_callback.structural_creation` | SQL calls | 119 | 94 | -25 | -21.0% | +| `module.direct_callback.structural_creation` | Planner cost | 1430.53 | 757.00 | -673.53 | -47.1% | +| `module.direct_callback.structural_creation` | Shared hits | 560 | 369 | -191 | -34.1% | +| `module.direct_callback.structural_creation` | Shared reads | 1 | 0 | -1 | -100.0% | +| `module.direct_callback.structural_creation` | WAL bytes | 15235 | 8670 | -6565 | -43.1% | +| `module.complete_model_save.existing_family` | SQL calls | 333 | 288 | -45 | -13.5% | +| `module.complete_model_save.existing_family` | Planner cost | 4186.01 | 2802.85 | -1383.16 | -33.0% | +| `module.complete_model_save.existing_family` | Shared hits | 1720 | 1280 | -440 | -25.6% | +| `module.complete_model_save.existing_family` | Shared reads | 13 | 18 | 5 | +38.5% | +| `module.complete_model_save.existing_family` | WAL bytes | 23266 | 26508 | 3242 | +13.9% | +| `module.direct_callback.existing_family` | SQL calls | 180 | 168 | -12 | -6.7% | +| `module.direct_callback.existing_family` | Planner cost | 2001.68 | 1278.46 | -723.22 | -36.1% | +| `module.direct_callback.existing_family` | Shared hits | 769 | 555 | -214 | -27.8% | +| `module.direct_callback.existing_family` | Shared reads | 4 | 0 | -4 | -100.0% | +| `module.direct_callback.existing_family` | WAL bytes | 12651 | 10024 | -2627 | -20.8% | +| `module.complete_model_save.reconciliation` | SQL calls | 432 | 349 | -83 | -19.2% | +| `module.complete_model_save.reconciliation` | Planner cost | 6015.69 | 4091.82 | -1923.87 | -32.0% | +| `module.complete_model_save.reconciliation` | Shared hits | 1914 | 1720 | -194 | -10.1% | +| `module.complete_model_save.reconciliation` | Shared reads | 14 | 0 | -14 | -100.0% | +| `module.complete_model_save.reconciliation` | WAL bytes | 33638 | 36448 | 2810 | +8.4% | +| `module.direct_callback.reconciliation` | SQL calls | 279 | 257 | -22 | -7.9% | +| `module.direct_callback.reconciliation` | Planner cost | 3884.15 | 2950.82 | -933.33 | -24.0% | +| `module.direct_callback.reconciliation` | Shared hits | 1164 | 1021 | -143 | -12.3% | +| `module.direct_callback.reconciliation` | Shared reads | 0 | 0 | 0 | n/a | +| `module.direct_callback.reconciliation` | WAL bytes | 18941 | 17804 | -1137 | -6.0% | +| `vc.complete_model_save.reapply_1` | SQL calls | 59 | 46 | -13 | -22.0% | +| `vc.complete_model_save.reapply_1` | Planner cost | 637.31 | 391.27 | -246.04 | -38.6% | +| `vc.complete_model_save.reapply_1` | Shared hits | 356 | 234 | -122 | -34.3% | +| `vc.complete_model_save.reapply_1` | Shared reads | 9 | 0 | -9 | -100.0% | +| `vc.complete_model_save.reapply_1` | WAL bytes | 4504 | 4736 | 232 | +5.2% | +| `vc.direct_callback.reapply_1` | SQL calls | 41 | 29 | -12 | -29.3% | +| `vc.direct_callback.reapply_1` | Planner cost | 496.02 | 229.32 | -266.70 | -53.8% | +| `vc.direct_callback.reapply_1` | Shared hits | 205 | 133 | -72 | -35.1% | +| `vc.direct_callback.reapply_1` | Shared reads | 0 | 0 | 0 | n/a | +| `vc.direct_callback.reapply_1` | WAL bytes | 1749 | 2086 | 337 | +19.3% | +| `vc.complete_model_save.reapply_8` | SQL calls | 303 | 200 | -103 | -34.0% | +| `vc.complete_model_save.reapply_8` | Planner cost | 3625.18 | 1739.10 | -1886.08 | -52.0% | +| `vc.complete_model_save.reapply_8` | Shared hits | 1453 | 978 | -475 | -32.7% | +| `vc.complete_model_save.reapply_8` | Shared reads | 2 | 0 | -2 | -100.0% | +| `vc.complete_model_save.reapply_8` | WAL bytes | 16354 | 19365 | 3011 | +18.4% | +| `vc.direct_callback.reapply_8` | SQL calls | 286 | 183 | -103 | -36.0% | +| `vc.direct_callback.reapply_8` | Planner cost | 3624.89 | 1423.26 | -2201.63 | -60.7% | +| `vc.direct_callback.reapply_8` | Shared hits | 1427 | 857 | -570 | -39.9% | +| `vc.direct_callback.reapply_8` | Shared reads | 4 | 0 | -4 | -100.0% | +| `vc.direct_callback.reapply_8` | WAL bytes | 13992 | 16787 | 2795 | +20.0% | + +## Machine time + +| Scenario | Metric | Before | After | Change | Share | +| --- | --- | ---: | ---: | ---: | ---: | +| `module.complete_model_save.no_matching_rule` | Wall median (ms) | 130.84 | 224.93 | 94.09 | +71.9% | +| `module.complete_model_save.no_matching_rule` | Wall p95 (ms) | 134.84 | 246.45 | 111.61 | +82.8% | +| `module.complete_model_save.no_matching_rule` | CPU median (ms) | 95.20 | 166.77 | 71.57 | +75.2% | +| `module.direct_callback.no_matching_rule` | Wall median (ms) | 16.84 | 20.59 | 3.75 | +22.3% | +| `module.direct_callback.no_matching_rule` | Wall p95 (ms) | 22.19 | 22.83 | 0.64 | +2.9% | +| `module.direct_callback.no_matching_rule` | CPU median (ms) | 13.43 | 16.50 | 3.08 | +22.9% | +| `module.complete_model_save.plain_rename` | Wall median (ms) | 225.88 | 304.30 | 78.42 | +34.7% | +| `module.complete_model_save.plain_rename` | Wall p95 (ms) | 243.82 | 353.81 | 109.98 | +45.1% | +| `module.complete_model_save.plain_rename` | CPU median (ms) | 166.73 | 234.66 | 67.93 | +40.7% | +| `module.direct_callback.plain_rename` | Wall median (ms) | 110.54 | 125.02 | 14.47 | +13.1% | +| `module.direct_callback.plain_rename` | Wall p95 (ms) | 122.77 | 142.71 | 19.94 | +16.2% | +| `module.direct_callback.plain_rename` | CPU median (ms) | 84.19 | 94.15 | 9.97 | +11.8% | +| `module.complete_model_save.structural_creation` | Wall median (ms) | 356.12 | 421.89 | 65.77 | +18.5% | +| `module.complete_model_save.structural_creation` | Wall p95 (ms) | 375.38 | 483.33 | 107.95 | +28.8% | +| `module.complete_model_save.structural_creation` | CPU median (ms) | 263.61 | 318.68 | 55.07 | +20.9% | +| `module.direct_callback.structural_creation` | Wall median (ms) | 239.88 | 229.88 | -9.99 | -4.2% | +| `module.direct_callback.structural_creation` | Wall p95 (ms) | 271.19 | 249.31 | -21.88 | -8.1% | +| `module.direct_callback.structural_creation` | CPU median (ms) | 178.60 | 175.31 | -3.29 | -1.8% | +| `module.complete_model_save.existing_family` | Wall median (ms) | 763.76 | 912.45 | 148.69 | +19.5% | +| `module.complete_model_save.existing_family` | Wall p95 (ms) | 780.53 | 959.24 | 178.71 | +22.9% | +| `module.complete_model_save.existing_family` | CPU median (ms) | 572.30 | 680.83 | 108.52 | +19.0% | +| `module.direct_callback.existing_family` | Wall median (ms) | 469.17 | 489.86 | 20.70 | +4.4% | +| `module.direct_callback.existing_family` | Wall p95 (ms) | 512.32 | 541.66 | 29.34 | +5.7% | +| `module.direct_callback.existing_family` | CPU median (ms) | 368.63 | 387.96 | 19.32 | +5.2% | +| `module.complete_model_save.reconciliation` | Wall median (ms) | 1057.15 | 1290.72 | 233.57 | +22.1% | +| `module.complete_model_save.reconciliation` | Wall p95 (ms) | 1122.91 | 1427.90 | 304.99 | +27.2% | +| `module.complete_model_save.reconciliation` | CPU median (ms) | 800.11 | 1007.95 | 207.84 | +26.0% | +| `module.direct_callback.reconciliation` | Wall median (ms) | 793.48 | 538.18 | -255.30 | -32.2% | +| `module.direct_callback.reconciliation` | Wall p95 (ms) | 850.50 | 651.43 | -199.07 | -23.4% | +| `module.direct_callback.reconciliation` | CPU median (ms) | 604.29 | 428.69 | -175.60 | -29.1% | +| `vc.complete_model_save.reapply_1` | Wall median (ms) | 148.06 | 146.47 | -1.59 | -1.1% | +| `vc.complete_model_save.reapply_1` | Wall p95 (ms) | 158.04 | 160.69 | 2.65 | +1.7% | +| `vc.complete_model_save.reapply_1` | CPU median (ms) | 110.50 | 111.90 | 1.41 | +1.3% | +| `vc.direct_callback.reapply_1` | Wall median (ms) | 126.86 | 99.00 | -27.86 | -22.0% | +| `vc.direct_callback.reapply_1` | Wall p95 (ms) | 134.68 | 105.57 | -29.11 | -21.6% | +| `vc.direct_callback.reapply_1` | CPU median (ms) | 94.07 | 75.96 | -18.12 | -19.3% | +| `vc.complete_model_save.reapply_8` | Wall median (ms) | 870.67 | 588.21 | -282.46 | -32.4% | +| `vc.complete_model_save.reapply_8` | Wall p95 (ms) | 913.07 | 630.19 | -282.88 | -31.0% | +| `vc.complete_model_save.reapply_8` | CPU median (ms) | 647.91 | 468.48 | -179.43 | -27.7% | +| `vc.direct_callback.reapply_8` | Wall median (ms) | 822.68 | 536.22 | -286.46 | -34.8% | +| `vc.direct_callback.reapply_8` | Wall p95 (ms) | 852.62 | 583.24 | -269.38 | -31.6% | +| `vc.direct_callback.reapply_8` | CPU median (ms) | 619.16 | 424.54 | -194.62 | -31.4% | + +## Statement-count regressions + +- `module.complete_model_save.no_matching_rule` SQL calls: 60 to 77 +- `module.complete_model_save.structural_creation` SQL calls: 172 to 183 + +### Where those statements come from + +Each raised scenario is broken down by the table its statements touch, so the work this plugin drives can be told apart from the per-save bookkeeping NetBox does for the object types and custom fields the database happens to hold. + +| Scenario | Table | Before | After | Change | +| --- | --- | ---: | ---: | ---: | +| `module.complete_model_save.no_matching_rule` | `RELEASE` | 0 | 2 | +2 | +| `module.complete_model_save.no_matching_rule` | `SAVEPOINT` | 0 | 2 | +2 | +| `module.complete_model_save.no_matching_rule` | `core_objecttype` | 13 | 19 | +6 | +| `module.complete_model_save.no_matching_rule` | `dcim_interface` | 2 | 3 | +1 | +| `module.complete_model_save.no_matching_rule` | `dcim_module` | 2 | 3 | +1 | +| `module.complete_model_save.no_matching_rule` | `extras_cachedvalue` | 0 | 3 | +3 | +| `module.complete_model_save.no_matching_rule` | `extras_customfield` | 11 | 13 | +2 | +| `module.complete_model_save.structural_creation` | `RELEASE` | 4 | 3 | -1 | +| `module.complete_model_save.structural_creation` | `SAVEPOINT` | 4 | 3 | -1 | +| `module.complete_model_save.structural_creation` | `core_objecttype` | 40 | 46 | +6 | +| `module.complete_model_save.structural_creation` | `dcim_device` | 12 | 11 | -1 | +| `module.complete_model_save.structural_creation` | `dcim_interface` | 34 | 37 | +3 | +| `module.complete_model_save.structural_creation` | `dcim_interfacetemplate` | 5 | 6 | +1 | +| `module.complete_model_save.structural_creation` | `dcim_module` | 8 | 9 | +1 | +| `module.complete_model_save.structural_creation` | `dcim_moduletype` | 3 | 2 | -1 | +| `module.complete_model_save.structural_creation` | `dcim_site` | 3 | 2 | -1 | +| `module.complete_model_save.structural_creation` | `extras_cachedvalue` | 2 | 5 | +3 | +| `module.complete_model_save.structural_creation` | `extras_customfield` | 26 | 28 | +2 | From b652523770af041cecd4fdde5d27bea0fc18361c Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 14:54:47 +0200 Subject: [PATCH 37/74] perf: label a performance artifact with what it measured Both artifacts recorded `baseline_kind: existing_implementation` and titled themselves "Existing automatic naming performance", because the runner hardcoded both. The after artifact therefore claimed to be the before one, which is the wrong thing for a reviewer to read off review evidence. The runner now takes the kind from INTERFACE_FAMILY_PERFORMANCE_KIND and titles the summary from it. Both retained summaries are re-rendered from their existing measurements; no scenario was measured again. --- netbox_interface_name_rules/tests/signal_performance.py | 7 +++++-- performance/README.md | 4 ++++ performance/baselines/existing-feature.md | 2 +- performance/baselines/family-package.md | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index cb9505c..9d4bb00 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -57,6 +57,8 @@ _WARMUP_VARIABLE = "INTERFACE_FAMILY_PERFORMANCE_WARMUPS" _PLUGIN_REVISION_VARIABLE = "INTERFACE_FAMILY_PERFORMANCE_SOURCE_REVISION" _NETBOX_REVISION_VARIABLE = "NETBOX_PERFORMANCE_SOURCE_REVISION" +_KIND_VARIABLE = "INTERFACE_FAMILY_PERFORMANCE_KIND" +_DEFAULT_KIND = "existing_implementation" _DEFAULT_SAMPLES = 15 _DEFAULT_WARMUPS = 3 @@ -583,8 +585,9 @@ def _work_totals(statements: list[dict[str, Any]], plans: list[dict[str, Any]], def _markdown_summary(artifact: dict[str, Any]) -> str: """Render the comparison fields that a reviewer usually needs first.""" + kind = artifact.get("baseline_kind", _DEFAULT_KIND).replace("_", " ") lines = [ - "# Existing automatic naming performance", + f"# Automatic naming performance: {kind}", "", "This file is generated by `netbox_interface_name_rules.tests.signal_performance`.", "Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits.", @@ -1060,7 +1063,7 @@ def test_record_existing_signal_path_performance(self): artifact = { "schema_version": 1, - "baseline_kind": "existing_implementation", + "baseline_kind": os.environ.get(_KIND_VARIABLE, _DEFAULT_KIND), "generated_at": datetime.now(UTC).isoformat(), "configuration": { "samples": samples, diff --git a/performance/README.md b/performance/README.md index dd14fd6..3f579f2 100644 --- a/performance/README.md +++ b/performance/README.md @@ -17,6 +17,7 @@ export NETBOX_PERFORMANCE_SOURCE_REVISION="$(git -C /path/to/netbox rev-parse HE export INTERFACE_FAMILY_PERFORMANCE_OUTPUT="$PWD/performance/baselines/existing-feature.json" export INTERFACE_FAMILY_PERFORMANCE_SAMPLES="15" export INTERFACE_FAMILY_PERFORMANCE_WARMUPS="3" +export INTERFACE_FAMILY_PERFORMANCE_KIND="existing_implementation" cd /path/to/netbox/netbox python manage.py test \ @@ -42,6 +43,9 @@ performance. `performance/compare.py BEFORE.json AFTER.json OUT.md` writes a readable comparison of database work and machine time, and breaks any scenario whose statement count rose down by table. +Set `INTERFACE_FAMILY_PERFORMANCE_KIND` to name what a run measured, such as `family_package` for +an after run. It labels the artifact and titles its summary. + ## Result of the interface-family comparison `comparisons/family-package-vs-existing.md` compares the pre-refactor baseline with the family diff --git a/performance/baselines/existing-feature.md b/performance/baselines/existing-feature.md index 397da85..eb49c8c 100644 --- a/performance/baselines/existing-feature.md +++ b/performance/baselines/existing-feature.md @@ -1,4 +1,4 @@ -# Existing automatic naming performance +# Automatic naming performance: existing implementation This file is generated by `netbox_interface_name_rules.tests.signal_performance`. Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits. diff --git a/performance/baselines/family-package.md b/performance/baselines/family-package.md index e2245de..2190a20 100644 --- a/performance/baselines/family-package.md +++ b/performance/baselines/family-package.md @@ -1,4 +1,4 @@ -# Existing automatic naming performance +# Automatic naming performance: family package This file is generated by `netbox_interface_name_rules.tests.signal_performance`. Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits. From 648793c0a495306ed2eca773d089a7ebfffc307c Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 14:57:10 +0200 Subject: [PATCH 38/74] fix: report the PostgreSQL version the artifacts actually record The comparison read a `version` key the artifacts do not have, so both sides of the environment table said `None` for the one field that shows the two runs met the same database. It reads `server_version` now, and reports whether the planner settings match, because a planner difference would explain a cost change on its own. --- performance/compare.py | 7 +++++-- performance/comparisons/family-package-vs-existing.md | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/performance/compare.py b/performance/compare.py index a5a5e2f..2a7ad78 100644 --- a/performance/compare.py +++ b/performance/compare.py @@ -132,9 +132,12 @@ def _environment_table(before, after): rows.append(f"| {key} | `{before['environment'].get(key)}` | `{after['environment'].get(key)}` |") for key in ("samples", "warmups"): rows.append(f"| {key} | `{before['configuration'].get(key)}` | `{after['configuration'].get(key)}` |") - postgres_before = before["environment"].get("postgresql", {}).get("version") - postgres_after = after["environment"].get("postgresql", {}).get("version") + postgres_before = before["environment"].get("postgresql", {}).get("server_version") + postgres_after = after["environment"].get("postgresql", {}).get("server_version") rows.append(f"| postgresql | `{postgres_before}` | `{postgres_after}` |") + settings_before = before["environment"].get("postgresql", {}).get("planner_settings") + settings_after = after["environment"].get("postgresql", {}).get("planner_settings") + rows.append(f"| planner settings | `{'identical' if settings_before == settings_after else 'CHANGED'}` | |") return rows diff --git a/performance/comparisons/family-package-vs-existing.md b/performance/comparisons/family-package-vs-existing.md index 7a19658..9f62bdd 100644 --- a/performance/comparisons/family-package-vs-existing.md +++ b/performance/comparisons/family-package-vs-existing.md @@ -13,7 +13,8 @@ Generated by `performance/compare.py` from the before and after artifacts of the | operating_system_release | `6.12.96+deb13-amd64` | `6.12.96+deb13-amd64` | | samples | `15` | `15` | | warmups | `3` | `3` | -| postgresql | `None` | `None` | +| postgresql | `18.3 (Debian 18.3-1.pgdg13+1)` | `18.3 (Debian 18.3-1.pgdg13+1)` | +| planner settings | `identical` | | ## Database work From 9625d9b941a7885aefb12b9848fd81852e14c91f Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 20:36:11 +0200 Subject: [PATCH 39/74] fix: report the planner settings status in both compared columns The environment table declares a Before and an After column, but the planner settings row wrote its status only into the Before cell. Every generated comparison therefore ended that row with an empty After cell. The status describes the two runs together, so it now fills both cells. The committed comparison is regenerated through the generator. --- .../tests/test_performance_compare.py | 47 +++++++++++++++++++ performance/compare.py | 3 +- .../comparisons/family-package-vs-existing.md | 2 +- 3 files changed, 50 insertions(+), 2 deletions(-) create mode 100644 netbox_interface_name_rules/tests/test_performance_compare.py diff --git a/netbox_interface_name_rules/tests/test_performance_compare.py b/netbox_interface_name_rules/tests/test_performance_compare.py new file mode 100644 index 0000000..1933567 --- /dev/null +++ b/netbox_interface_name_rules/tests/test_performance_compare.py @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright (C) 2025 Marcin Zieba +"""Tests for the performance artifact comparison script.""" + +import importlib.util +import unittest +from pathlib import Path + +_COMPARE_PATH = Path(__file__).resolve().parents[2] / "performance" / "compare.py" +_spec = importlib.util.spec_from_file_location("performance_compare", _COMPARE_PATH) +compare = importlib.util.module_from_spec(_spec) +_spec.loader.exec_module(compare) + + +def _artifact(planner_settings): + """Return the smallest artifact the environment table reads.""" + return { + "environment": { + "plugin_revision": "abc123", + "netbox_revision": "def456", + "netbox_version": "4.7", + "cpu_model": "Test CPU", + "operating_system_release": "test-release", + "postgresql": {"server_version": "18.3", "planner_settings": planner_settings}, + }, + "configuration": {"samples": 15, "warmups": 3}, + } + + +class EnvironmentTableTest(unittest.TestCase): + """Exercise the environment table the comparison writes.""" + + def _planner_row(self, before, after): + rows = compare._environment_table(before, after) + return next(row for row in rows if row.startswith("| planner settings |")) + + def test_identical_planner_settings_fill_both_columns(self): + settings = {"work_mem": "4MB"} + + row = self._planner_row(_artifact(settings), _artifact(dict(settings))) + + self.assertEqual(row, "| planner settings | `identical` | `identical` |") + + def test_changed_planner_settings_fill_both_columns(self): + row = self._planner_row(_artifact({"work_mem": "4MB"}), _artifact({"work_mem": "64MB"})) + + self.assertEqual(row, "| planner settings | `CHANGED` | `CHANGED` |") diff --git a/performance/compare.py b/performance/compare.py index 2a7ad78..39c99d4 100644 --- a/performance/compare.py +++ b/performance/compare.py @@ -137,7 +137,8 @@ def _environment_table(before, after): rows.append(f"| postgresql | `{postgres_before}` | `{postgres_after}` |") settings_before = before["environment"].get("postgresql", {}).get("planner_settings") settings_after = after["environment"].get("postgresql", {}).get("planner_settings") - rows.append(f"| planner settings | `{'identical' if settings_before == settings_after else 'CHANGED'}` | |") + planner_status = "identical" if settings_before == settings_after else "CHANGED" + rows.append(f"| planner settings | `{planner_status}` | `{planner_status}` |") return rows diff --git a/performance/comparisons/family-package-vs-existing.md b/performance/comparisons/family-package-vs-existing.md index 9f62bdd..8d18843 100644 --- a/performance/comparisons/family-package-vs-existing.md +++ b/performance/comparisons/family-package-vs-existing.md @@ -14,7 +14,7 @@ Generated by `performance/compare.py` from the before and after artifacts of the | samples | `15` | `15` | | warmups | `3` | `3` | | postgresql | `18.3 (Debian 18.3-1.pgdg13+1)` | `18.3 (Debian 18.3-1.pgdg13+1)` | -| planner settings | `identical` | | +| planner settings | `identical` | `identical` | ## Database work From 06630bac8a5c04338bb216a290f9442803ec200c Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 20:36:17 +0200 Subject: [PATCH 40/74] docs: name the component that converts and fix the comparison sentence The ADR opened without a subject, so it did not say what plans and executes a conversion plan. The performance README described the comparison with a split verb phrase that read as "rose down by table". --- docs/adr/0010-convert-flat-families-through-conversion-plans.md | 2 +- performance/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/adr/0010-convert-flat-families-through-conversion-plans.md b/docs/adr/0010-convert-flat-families-through-conversion-plans.md index 48b6f62..964d136 100644 --- a/docs/adr/0010-convert-flat-families-through-conversion-plans.md +++ b/docs/adr/0010-convert-flat-families-through-conversion-plans.md @@ -4,7 +4,7 @@ status: accepted # Convert flat families through conversion plans -Assisted flat to channelized conversion plans and executes one immutable conversion plan per family, in the family package, beside the planners that install and rename families. A plan carries the row snapshots the ch-0 split needs and nothing else: the base row that becomes the parent, the siblings that become channels 2..N, and the parent name the rule resolves. Execution locks the planned rows, compares them against those snapshots, and refuses a family whose identity, names, membership or topology moved since the scan. The scan itself performs each conversion inside a savepoint it always rolls back, so a candidate reports the reason NetBox would refuse the family rather than a guess at its rules. +The family package plans and executes one immutable flat-to-channelized conversion plan per family, beside the planners that install and rename families. A plan carries the row snapshots the ch-0 split needs and nothing else: the base row that becomes the parent, the siblings that become channels 2..N, and the parent name the rule resolves. Execution locks the planned rows, compares them against those snapshots, and refuses a family whose identity, names, membership or topology moved since the scan. The scan itself performs each conversion inside a savepoint it always rolls back, so a candidate reports the reason NetBox would refuse the family rather than a guess at its rules. Conversion recovers its families through the base names the rename path recovers, so the two cannot drift on which rows belong to which family, a family named before a virtual-chassis renumber included. It identifies a family by its ch-0 row, the way the flat apply that installed it named that row, and then takes whatever the module still carries for the rest of the family. A family with a gap is offered and refused, naming the row it is missing, because dropping it from the page would read as "nothing here to convert" and hide an edit the operator needs to see. A sibling that already belongs to another parent is refused the same way rather than taken from that family. The parent takes the name the rule resolves for the module now, which is the name an apply would give it; the channels keep the names they carry, because converting retypes those rows in place. diff --git a/performance/README.md b/performance/README.md index 3f579f2..8e8ac52 100644 --- a/performance/README.md +++ b/performance/README.md @@ -41,7 +41,7 @@ performance. ## Comparing two runs `performance/compare.py BEFORE.json AFTER.json OUT.md` writes a readable comparison of database -work and machine time, and breaks any scenario whose statement count rose down by table. +work and machine time, and breaks down by table any scenario whose statement count rose. Set `INTERFACE_FAMILY_PERFORMANCE_KIND` to name what a run measured, such as `family_package` for an after run. It labels the artifact and titles its summary. From 63bec29dcdf212eb27f21ac7baf73e5095b06658 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Fri, 28 Aug 2026 20:45:28 +0200 Subject: [PATCH 41/74] docs: attribute the raised statement counts to every table that rose The narrative said the per-table breakdown attributed every raised statement to core_objecttype, extras_customfield and extras_cachedvalue. The breakdown also shows RELEASE, SAVEPOINT, dcim_interface and dcim_module rising in the no-matching-rule scenario. Those three tables carry the whole net increase in structural_creation and 11 of the 17 in no_matching_rule. The paragraph now says so, and names the remaining 6. It also reports that the plugin's own callback got cheaper on structural_creation, from 119 statements to 94. --- performance/README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/performance/README.md b/performance/README.md index 8e8ac52..62af8b9 100644 --- a/performance/README.md +++ b/performance/README.md @@ -56,12 +56,18 @@ issues fewer or the same statements in every scenario: unchanged where no rule m 5% to 36% everywhere else, with the largest reductions on virtual-chassis reapplication (-29% for one module, -36% for eight). -Two complete-model-save scenarios show more statements than the baseline. The per-table breakdown -attributes every one of them to `core_objecttype`, `extras_customfield` and `extras_cachedvalue`: +Two complete-model-save scenarios show more statements than the baseline. Most of the increase is NetBox's own per-save bookkeeping for the object types and custom fields the test database holds, -which grew between the two runs. The control is `module.complete_model_save.no_matching_rule`, where -this plugin returns before doing anything and its callback issues the same 7 statements in both -runs, yet the surrounding save costs 17 more. Neither increase is work this refactor added. +which grew between the two runs: `core_objecttype`, `extras_customfield` and `extras_cachedvalue` +carry the whole net increase of 11 in `structural_creation`, where every other table nets to zero, +and 11 of the 17 in `no_matching_rule`. The remaining 6 there are 2 `RELEASE` and 2 `SAVEPOINT` +statements beside the new cached-value writes, and one extra read each of `dcim_interface` and +`dcim_module`. + +The control is `module.complete_model_save.no_matching_rule`, where this plugin returns before doing +anything and its callback issues the same 7 statements in both runs, yet the surrounding save costs +17 more. On `structural_creation` the plugin's own callback got cheaper, from 119 statements to 94. +Neither increase is work this refactor added. Machine time in that run is not evidence. The host was running unrelated workloads at a load average between 17 and 44, and the same no-op scenario shows +72% wall time against identical SQL. The From 19fefd3e972ca878b793bedc4312ff4efa964493 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sat, 29 Aug 2026 06:33:15 +0200 Subject: [PATCH 42/74] fix: refuse a module-type pattern that backtracks exponentially _REDOS_PATTERN was a denylist over the pattern text. It looked for two quantifiers next to a group, so it missed every classic ReDoS pattern: ^(a+)+$, (a*)*, ^(a|a)+$, (?:a|aa)+ and ^(\w+\s?)*$ all passed it. Measured before the fix, re.fullmatch("^(a+)+$", "a"*24 + "!") took 0.96s, and module model names are long enough to reach that. The guard now reads the parsed pattern instead of its text. It refuses a repeat whose body can match one string in more than one way, which is the condition that makes backtracking exponential. Python exposes no public regex AST, so this uses re._parser; an incompatible release fails at import rather than silently accepting a pattern. The check is conservative: it can refuse a safe pattern, never accept an exponential one. Realistic module-model patterns are unaffected, and the tests pin eight of them. RuleTestForm duplicated the compile and the guard. It now calls _validate_module_type_pattern, so the tester and every write path refuse the same patterns. Two tests asserted the old heuristic's false positive on "(a)+?", which is a lazy repeat of one literal and safe; they now use a pattern that really backtracks. Stored patterns are not revalidated by this change. A rule saved before it can still hold an exponential pattern. --- netbox_interface_name_rules/forms.py | 16 ++-- netbox_interface_name_rules/models.py | 51 +++++++++++-- .../tests/test_misc.py | 39 ++-------- .../tests/test_regex.py | 73 +++++++++++++++++++ 4 files changed, 127 insertions(+), 52 deletions(-) diff --git a/netbox_interface_name_rules/forms.py b/netbox_interface_name_rules/forms.py index 8509915..e2feb9d 100644 --- a/netbox_interface_name_rules/forms.py +++ b/netbox_interface_name_rules/forms.py @@ -1,7 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright (C) 2025 Marcin Zieba -import re - from dcim.models import DeviceType, ModuleType, Platform from django import forms from django.core.exceptions import ValidationError @@ -139,15 +137,13 @@ def clean(self): if not module_type_pattern: self.add_error("module_type_pattern", "A regex pattern is required when regex mode is enabled.") else: + from .models import _validate_module_type_pattern + try: - re.compile(module_type_pattern) - except re.error as exc: - self.add_error("module_type_pattern", f"Invalid regex: {exc}") - else: - from .models import _REDOS_PATTERN - - if _REDOS_PATTERN.search(module_type_pattern): - self.add_error("module_type_pattern", "Pattern contains potentially unsafe nested quantifiers.") + _validate_module_type_pattern(module_type_pattern) + except ValidationError as exc: + for field, messages in exc.message_dict.items(): + self.add_error(field, messages) if module_type: self.add_error("module_type", "Module Type (exact) must be empty when regex mode is enabled.") else: diff --git a/netbox_interface_name_rules/models.py b/netbox_interface_name_rules/models.py index ce371da..3025597 100644 --- a/netbox_interface_name_rules/models.py +++ b/netbox_interface_name_rules/models.py @@ -3,6 +3,10 @@ import ast import re +# Python exposes no public regex AST, and re._parser is the only way to see a nested quantifier. +from re import _constants as _re_constants +from re import _parser as _re_parser + from dcim.models import DeviceType, ModuleType, Platform from django.core.exceptions import ValidationError from django.db import models @@ -12,7 +16,7 @@ from .choices import BreakoutModeChoices -_REDOS_PATTERN = re.compile(r"(\+\*|\*\+|\?\?|\)\s*[\+\*\?]\s*[\+\*\?]|\)\s*\{[^{}]+\}\s*[\+\*\?])") +_BACKTRACKING_REPEATS = frozenset({_re_constants.MAX_REPEAT, _re_constants.MIN_REPEAT}) _TEMPLATE_FIELD = re.compile(r"\{([^{}]*)\}") @@ -64,20 +68,51 @@ def _has_unbalanced_braces(template): return depth != 0 +def _parsed_subpatterns(argument): + """Yield every sub-pattern nested anywhere inside a parsed node's argument.""" + if isinstance(argument, _re_parser.SubPattern): + yield argument + elif isinstance(argument, (tuple, list)): + for item in argument: + yield from _parsed_subpatterns(item) + + +def _matches_ambiguously(node): + """Return True when *node* can match one string in more than one way.""" + for opcode, argument in node: + if opcode in _BACKTRACKING_REPEATS or opcode is _re_constants.BRANCH: + return True + if any(_matches_ambiguously(child) for child in _parsed_subpatterns(argument)): + return True + return False + + +def _repeats_ambiguously(node): + """Return True when *node* repeats an ambiguous body, which backtracks exponentially.""" + for opcode, argument in node: + if opcode in _BACKTRACKING_REPEATS and argument[1] > 1 and _matches_ambiguously(argument[2]): + return True + if any(_repeats_ambiguously(child) for child in _parsed_subpatterns(argument)): + return True + return False + + def _validate_module_type_pattern(pattern): - """Compile *pattern* and check for ReDoS-prone constructs. + """Compile *pattern* and refuse one whose evaluation can backtrack exponentially. - Raises ``ValidationError`` targeting ``module_type_pattern`` if the - pattern is syntactically invalid or contains nested quantifiers. - Called from ``InterfaceNameRule.clean()`` to avoid duplicating the same - try/except + ReDoS guard in each branch. + Raises ``ValidationError`` targeting ``module_type_pattern`` if the pattern is syntactically + invalid, or if it repeats a body that can match the same input in more than one way. Called + from ``InterfaceNameRule.clean()`` and from ``RuleTestForm``, so every write path and the + interactive tester refuse the same patterns. """ try: re.compile(pattern) except re.error as e: raise ValidationError({"module_type_pattern": f"Invalid regex pattern: {e}"}) - if _REDOS_PATTERN.search(pattern): - raise ValidationError({"module_type_pattern": "Pattern contains potentially unsafe nested quantifiers."}) + if _repeats_ambiguously(_re_parser.parse(pattern)): + raise ValidationError( + {"module_type_pattern": "Pattern contains nested quantifiers that can backtrack exponentially."} + ) def _validate_breakout_topology(breakout_mode, channel_count, parent_name_template, applies_to_device_interfaces=False): diff --git a/netbox_interface_name_rules/tests/test_misc.py b/netbox_interface_name_rules/tests/test_misc.py index 8022bbe..2a8c7e6 100644 --- a/netbox_interface_name_rules/tests/test_misc.py +++ b/netbox_interface_name_rules/tests/test_misc.py @@ -262,12 +262,11 @@ def test_device_iface_rule_forces_regex_false(self): rule.clean() self.assertFalse(rule.module_type_is_regex) - def test_exact_rule_with_redos_pattern_fails(self): - """Regex rule with ReDoS-prone pattern (nested quantifiers) fails validation.""" - # "(ab)+*" has ")+*" which triggers the nested-quantifier guard + def test_exact_rule_with_unsafe_pattern_fails(self): + """A regex rule that repeats an ambiguous body fails validation.""" rule = InterfaceNameRule( module_type_is_regex=True, - module_type_pattern="(ab)+*", + module_type_pattern="^(a+)+$", name_template="port{bay_position}", ) with self.assertRaises(ValidationError) as ctx: @@ -485,12 +484,8 @@ def test_regex_mode_invalid_pattern_adds_error(self): self.assertIn("module_type_pattern", form.errors) def test_regex_mode_redos_pattern_adds_error(self): - """RuleTestForm.clean() adds error when pattern contains nested quantifiers (line 125). - - (a)+? compiles OK (valid lazy quantifier syntax) but triggers the ReDoS guard - because )+? matches \\)\\s*[\\+\\*\\?]\\s*[\\+\\*\\?] in _REDOS_PATTERN. - """ - form = self._make_form({"module_type_is_regex": True, "module_type_pattern": "(a)+?"}) + """RuleTestForm.clean() adds an error when the pattern repeats an ambiguous body.""" + form = self._make_form({"module_type_is_regex": True, "module_type_pattern": "^(a+)+$"}) form.is_valid() self.assertIn("module_type_pattern", form.errors) @@ -663,30 +658,6 @@ def test_specificity_label_all_scopes(self): self.assertIn("platform", label) -# --------------------------------------------------------------------------- -# models.py — _validate_module_type_pattern ReDoS guard (line 29) -# --------------------------------------------------------------------------- - - -class ModelValidatePatternReDoSTest(TestCase): - """Test _validate_module_type_pattern raises for valid-but-ReDoS-prone patterns.""" - - def test_valid_regex_with_nested_quantifiers_raises(self): - """A valid regex with nested quantifiers e.g. (a)+? raises ValidationError (line 29). - - (a)+? compiles without error but contains )+? which matches - \\)\\s*[\\+\\*\\?]\\s*[\\+\\*\\?] in _REDOS_PATTERN. - """ - from django.core.exceptions import ValidationError - - from netbox_interface_name_rules.models import _validate_module_type_pattern - - with self.assertRaises(ValidationError) as ctx: - _validate_module_type_pattern("(a)+?") - self.assertIn("module_type_pattern", ctx.exception.message_dict) - self.assertIn("nested quantifiers", str(ctx.exception)) - - # --------------------------------------------------------------------------- # jobs.py — ApplyRuleJob.run() success + exception paths (lines 30-36) # --------------------------------------------------------------------------- diff --git a/netbox_interface_name_rules/tests/test_regex.py b/netbox_interface_name_rules/tests/test_regex.py index cf2ae7f..b41e10c 100644 --- a/netbox_interface_name_rules/tests/test_regex.py +++ b/netbox_interface_name_rules/tests/test_regex.py @@ -20,6 +20,79 @@ from netbox_interface_name_rules.engine import apply_interface_name_rules, find_matching_rule from netbox_interface_name_rules.models import InterfaceNameRule +# Realistic module-model patterns an operator writes; none of these may be refused. +_SAFE_PATTERNS = ( + "QSFP-.*", + "QSFP28-(100G|40G)", + r"^ge-\d+/\d+/\d+$", + r"[A-Z]+-\d+", + "(abc)+", + "(a)+?", + r"Ethernet\d+", + "^(10|25|100)G$", +) + +# Patterns whose evaluation backtracks exponentially; all must be refused. +_EXPONENTIAL_PATTERNS = ( + "^(a+)+$", + "(a*)*", + "^(a|a)+$", + r"(\d+)+", + "(a+)+?", + "(?:a|aa)+", + r"^(\w+\s?)*$", +) + + +class RegexPatternSafetyTest(TestCase): + """Refuse a module-type pattern whose evaluation can backtrack exponentially.""" + + def _rule(self, pattern): + return InterfaceNameRule( + module_type_is_regex=True, + module_type_pattern=pattern, + name_template="port{bay_position}", + ) + + def test_exponential_patterns_are_refused(self): + for pattern in _EXPONENTIAL_PATTERNS: + with self.subTest(pattern=pattern), self.assertRaises(ValidationError) as ctx: + self._rule(pattern).clean() + self.assertIn("module_type_pattern", ctx.exception.message_dict) + + def test_realistic_patterns_are_accepted(self): + for pattern in _SAFE_PATTERNS: + with self.subTest(pattern=pattern): + self._rule(pattern).clean() + + def test_device_level_rule_refuses_an_exponential_pattern(self): + rule = InterfaceNameRule( + applies_to_device_interfaces=True, + module_type_pattern="^(a+)+$", + name_template="port{bay_position}", + ) + + with self.assertRaises(ValidationError) as ctx: + rule.clean() + + self.assertIn("module_type_pattern", ctx.exception.message_dict) + + def test_rule_tester_refuses_an_exponential_pattern(self): + from netbox_interface_name_rules.forms import RuleTestForm + + form = RuleTestForm( + { + "name_template": "et-0/0/{bay_position}", + "channel_count": "0", + "channel_start": "0", + "module_type_is_regex": True, + "module_type_pattern": "^(a+)+$", + } + ) + + self.assertFalse(form.is_valid()) + self.assertIn("module_type_pattern", form.errors) + class RegexModelValidationTest(TestCase): """Test model clean() validation for regex fields.""" From 6fcbe401d406f3282fc7880899e1bc90e05fdbb7 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sat, 29 Aug 2026 06:35:34 +0200 Subject: [PATCH 43/74] fix: accept a bounded repeat over an ambiguous body The guard flagged any repeat of an ambiguous body, which refused \d{1,3}(\.\d{1,3}){3}. A bounded repeat costs a bounded exponent, so it does not blow up the way an unbounded one does. The guard now flags a repeat only when its maximum is unbounded. Nesting is still caught, because the walk visits every sub-pattern: the inner repeat of ((a+)+){2} is unbounded and is refused on its own. --- netbox_interface_name_rules/models.py | 9 +++++++-- netbox_interface_name_rules/tests/test_regex.py | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/netbox_interface_name_rules/models.py b/netbox_interface_name_rules/models.py index 3025597..ae741da 100644 --- a/netbox_interface_name_rules/models.py +++ b/netbox_interface_name_rules/models.py @@ -88,9 +88,14 @@ def _matches_ambiguously(node): def _repeats_ambiguously(node): - """Return True when *node* repeats an ambiguous body, which backtracks exponentially.""" + """Return True when *node* repeats an ambiguous body without bound, which backtracks exponentially.""" for opcode, argument in node: - if opcode in _BACKTRACKING_REPEATS and argument[1] > 1 and _matches_ambiguously(argument[2]): + # A bounded repeat costs a bounded exponent; only an unbounded one compounds. + if ( + opcode in _BACKTRACKING_REPEATS + and argument[1] == _re_constants.MAXREPEAT + and _matches_ambiguously(argument[2]) + ): return True if any(_repeats_ambiguously(child) for child in _parsed_subpatterns(argument)): return True diff --git a/netbox_interface_name_rules/tests/test_regex.py b/netbox_interface_name_rules/tests/test_regex.py index b41e10c..fe1b1eb 100644 --- a/netbox_interface_name_rules/tests/test_regex.py +++ b/netbox_interface_name_rules/tests/test_regex.py @@ -30,6 +30,8 @@ "(a)+?", r"Ethernet\d+", "^(10|25|100)G$", + "(ab){2,4}", + r"\d{1,3}(\.\d{1,3}){3}", ) # Patterns whose evaluation backtracks exponentially; all must be refused. @@ -41,6 +43,7 @@ "(a+)+?", "(?:a|aa)+", r"^(\w+\s?)*$", + "((a+)+){2}", ) From 89142bd364f385e05cc172e265a6f2ad35708b60 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sat, 29 Aug 2026 07:08:20 +0200 Subject: [PATCH 44/74] perf: record the host load each performance run was taken under Machine time is only evidence when both runs ran under a comparable load, but the artifact recorded the CPU model and the OS and not the load. Whether the last run's timing counted lived in one hand-written README sentence, which no reader could check against the artifact. The runner now samples the run-queue averages before the first scenario and after the last, stores both, and states them in its summary. The comparison reports the span for each run, and says "not recorded" for an artifact taken before this change rather than leaving the cell blank. --- .../tests/signal_performance.py | 22 +++++++++++++++++ .../tests/test_performance_compare.py | 24 ++++++++++++++++++- performance/compare.py | 11 +++++++++ 3 files changed, 56 insertions(+), 1 deletion(-) diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index 9d4bb00..65b937f 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -541,6 +541,12 @@ def _planner_environment() -> dict[str, str]: } +def _host_load() -> dict[str, float]: + """Return the 1, 5 and 15 minute run-queue averages, which decide whether timing is evidence.""" + one, five, fifteen = os.getloadavg() + return {"one_minute": one, "five_minute": five, "fifteen_minute": fifteen} + + def _source_environment() -> dict[str, Any]: """Return source and machine revisions without an environment-specific host name.""" plugin_root = Path(__file__).resolve().parents[2] @@ -583,6 +589,18 @@ def _work_totals(statements: list[dict[str, Any]], plans: list[dict[str, Any]], } +def _load_sentence(artifact: dict[str, Any]) -> str: + """Report the run-queue length this run competed with, so a reader can judge its timing.""" + load = artifact["environment"].get("host_load") + if not load: + return "Host load during the run was not recorded, so treat the machine time as unverified." + return ( + f"Host load averaged {load['started']['one_minute']:.2f} over the minute before the run and " + f"{load['finished']['one_minute']:.2f} over the minute it ended. Machine time is evidence only " + "when both runs were taken under a comparable load." + ) + + def _markdown_summary(artifact: dict[str, Any]) -> str: """Render the comparison fields that a reviewer usually needs first.""" kind = artifact.get("baseline_kind", _DEFAULT_KIND).replace("_", " ") @@ -592,6 +610,8 @@ def _markdown_summary(artifact: dict[str, Any]) -> str: "This file is generated by `netbox_interface_name_rules.tests.signal_performance`.", "Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits.", "", + _load_sentence(artifact), + "", "| Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) |", "| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: |", ] @@ -1048,6 +1068,7 @@ def test_record_existing_signal_path_performance(self): self.assertTrue(supports_channelization(), "The baseline requires NetBox channelization support.") self.assertTrue(supports_vc_position_token(), "The baseline requires NetBox VC position token support.") + load_before = _host_load() scenario_results = [] for scenario in self._scenarios(): profiled = self._profile_scenario(scenario) @@ -1074,6 +1095,7 @@ def test_record_existing_signal_path_performance(self): "environment": { **_source_environment(), "postgresql": _planner_environment(), + "host_load": {"started": load_before, "finished": _host_load()}, }, "scenarios": scenario_results, } diff --git a/netbox_interface_name_rules/tests/test_performance_compare.py b/netbox_interface_name_rules/tests/test_performance_compare.py index 1933567..de04b7f 100644 --- a/netbox_interface_name_rules/tests/test_performance_compare.py +++ b/netbox_interface_name_rules/tests/test_performance_compare.py @@ -12,10 +12,11 @@ _spec.loader.exec_module(compare) -def _artifact(planner_settings): +def _artifact(planner_settings, load=None): """Return the smallest artifact the environment table reads.""" return { "environment": { + "host_load": load, "plugin_revision": "abc123", "netbox_revision": "def456", "netbox_version": "4.7", @@ -45,3 +46,24 @@ def test_changed_planner_settings_fill_both_columns(self): row = self._planner_row(_artifact({"work_mem": "4MB"}), _artifact({"work_mem": "64MB"})) self.assertEqual(row, "| planner settings | `CHANGED` | `CHANGED` |") + + def _load_row(self, before, after): + rows = compare._environment_table(before, after) + return next(row for row in rows if row.startswith("| host load")) + + def test_recorded_host_load_is_reported_for_both_runs(self): + settings = {"work_mem": "4MB"} + quiet = {"started": {"one_minute": 0.5}, "finished": {"one_minute": 0.9}} + busy = {"started": {"one_minute": 31.0}, "finished": {"one_minute": 44.25}} + + row = self._load_row(_artifact(settings, busy), _artifact(settings, quiet)) + + self.assertEqual(row, "| host load (1 min, start to end) | `31.00 to 44.25` | `0.50 to 0.90` |") + + def test_unrecorded_host_load_is_named_rather_than_left_blank(self): + settings = {"work_mem": "4MB"} + quiet = {"started": {"one_minute": 0.5}, "finished": {"one_minute": 0.9}} + + row = self._load_row(_artifact(settings, None), _artifact(settings, quiet)) + + self.assertEqual(row, "| host load (1 min, start to end) | `not recorded` | `0.50 to 0.90` |") diff --git a/performance/compare.py b/performance/compare.py index 39c99d4..36169d4 100644 --- a/performance/compare.py +++ b/performance/compare.py @@ -125,6 +125,14 @@ def _time_table(before, after): return lines +def _load_span(artifact): + """Return the run-queue length a run started and finished under.""" + load = artifact["environment"].get("host_load") + if not load: + return "not recorded" + return f"{load['started']['one_minute']:.2f} to {load['finished']['one_minute']:.2f}" + + def _environment_table(before, after): """Return the revisions and settings each run was taken under.""" rows = ["| Field | Before | After |", "| --- | --- | --- |"] @@ -139,6 +147,9 @@ def _environment_table(before, after): settings_after = after["environment"].get("postgresql", {}).get("planner_settings") planner_status = "identical" if settings_before == settings_after else "CHANGED" rows.append(f"| planner settings | `{planner_status}` | `{planner_status}` |") + load_before = _load_span(before) + load_after = _load_span(after) + rows.append(f"| host load (1 min, start to end) | `{load_before}` | `{load_after}` |") return rows From c440a2d3c9a1c497af5bacbf00c4a0fd3a3795ca Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sat, 29 Aug 2026 08:37:20 +0200 Subject: [PATCH 45/74] fix: make the performance runner record reproducible statement counts The profiling pass ran each operation once with no warmup, while the timing pass had three. NetBox resolves object types, custom fields and its search backend lazily and keeps them for the life of the process, so the recorded count was whatever a single cold or warm execution happened to cost. Two runs of identical code agreed on only 4 of 14 scenarios and differed by up to 90 statements. Recording the same operation twice in one process showed the mechanism: 350 then 288 calls on existing_family, with content-type lookups 75 to 53, custom-field lookups 30 to 19, and NetBox switching from an inline search reindex to a queued job. Each scenario now runs once discarded before it is recorded, so the recorded pass never pays a first-use cost. Warm is also the state a production worker answers almost every caller in. The runner then records each scenario twice and fails, naming the differing statements, when the two do not agree. An artifact can no longer carry a count that does not reproduce. Two independent runs now agree on all 14 scenarios. Machine time becomes optional: INTERFACE_FAMILY_PERFORMANCE_SAMPLES=0 skips it, and the summary and the comparison report "not measured" rather than a number taken under an unknown load. --- .../tests/signal_performance.py | 72 +++++++++++++++++-- .../tests/test_performance_compare.py | 40 +++++++++++ performance/compare.py | 3 + 3 files changed, 109 insertions(+), 6 deletions(-) diff --git a/netbox_interface_name_rules/tests/signal_performance.py b/netbox_interface_name_rules/tests/signal_performance.py index 65b937f..a6202ea 100644 --- a/netbox_interface_name_rules/tests/signal_performance.py +++ b/netbox_interface_name_rules/tests/signal_performance.py @@ -601,6 +601,16 @@ def _load_sentence(artifact: dict[str, Any]) -> str: ) +def _timing_sentence(artifact: dict[str, Any]) -> str: + """Say whether this run measured machine time at all.""" + if artifact["configuration"]["samples"]: + return "This run measured machine time. Statement counts are reproducible and carry the verdict." + return ( + "This run measured statement counts only. It took no machine-time samples, so every timing " + "column reads `not measured` rather than reporting a number nobody should quote." + ) + + def _markdown_summary(artifact: dict[str, Any]) -> str: """Render the comparison fields that a reviewer usually needs first.""" kind = artifact.get("baseline_kind", _DEFAULT_KIND).replace("_", " ") @@ -610,6 +620,8 @@ def _markdown_summary(artifact: dict[str, Any]) -> str: "This file is generated by `netbox_interface_name_rules.tests.signal_performance`.", "Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits.", "", + _timing_sentence(artifact), + "", _load_sentence(artifact), "", "| Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) |", @@ -617,12 +629,16 @@ def _markdown_summary(artifact: dict[str, Any]) -> str: ] for scenario in artifact["scenarios"]: totals = scenario["database"]["totals"] - wall = scenario["machine_time"]["wall"] - cpu = scenario["machine_time"]["process_cpu"] + machine_time = scenario["machine_time"] + if machine_time is None: + timing = "not measured | not measured | not measured" + else: + wall = machine_time["wall"] + cpu = machine_time["process_cpu"] + timing = f"{wall['median_ms']:.3f} | {wall['p95_ms']:.3f} | {cpu['median_ms']:.3f}" lines.append( f"| `{scenario['name']}` | {scenario['layer']} | {totals['statement_calls']} | " - f"{totals.get('planner_total_cost', 0):.3f} | {totals.get('shared_hit_blocks', 0)} | " - f"{wall['median_ms']:.3f} | {wall['p95_ms']:.3f} | {cpu['median_ms']:.3f} |" + f"{totals.get('planner_total_cost', 0):.3f} | {totals.get('shared_hit_blocks', 0)} | {timing} |" ) lines.extend( [ @@ -984,7 +1000,51 @@ def _analyze_tables() -> None: for table in tables: cursor.execute(f"ANALYZE {connection.ops.quote_name(table)}") + def _warm_scenario(self, scenario: _Scenario) -> None: + """Run and discard the operation once, so the recorded pass never pays a first-use cost. + + NetBox resolves object types, custom fields and its search backend lazily and keeps them for + the process. A cold pass therefore issues statements a warm one does not, and a production + worker answers almost every caller warm. + """ + prepared = None + try: + prepared = scenario.prepare() + prepared.operation() + finally: + if prepared is not None: + prepared.cleanup() + def _profile_scenario(self, scenario: _Scenario) -> dict[str, Any]: + """Record the operation twice and refuse a scenario whose statement counts do not agree.""" + self._warm_scenario(scenario) + first = self._record_scenario(scenario) + second = self._record_scenario(scenario) + self._assert_same_statements(scenario, first, second) + return second + + def _assert_same_statements(self, scenario: _Scenario, first: dict[str, Any], second: dict[str, Any]) -> None: + """Fail with the differing statements, so an artifact can never record an unreproducible count.""" + counts = [ + {item["normalized_sql"]: item["calls"] for item in run["database"]["statements"]} for run in (first, second) + ] + differing = sorted( + (sql for sql in set(counts[0]) | set(counts[1]) if counts[0].get(sql, 0) != counts[1].get(sql, 0)), + key=lambda sql: abs(counts[1].get(sql, 0) - counts[0].get(sql, 0)), + reverse=True, + ) + if not differing: + return + detail = "\n".join( + f" {counts[0].get(sql, 0)} then {counts[1].get(sql, 0)}: {sql[:120]}" for sql in differing[:8] + ) + self.fail( + f"{scenario.name} issued different statements on two identical runs " + f"({first['database']['totals']['statement_calls']} then " + f"{second['database']['totals']['statement_calls']} calls):\n{detail}" + ) + + def _record_scenario(self, scenario: _Scenario) -> dict[str, Any]: """Record SQL statements and PostgreSQL work for one operation.""" prepared = None try: @@ -1063,7 +1123,7 @@ def _time_scenario(self, scenario: _Scenario, samples: int, warmups: int) -> dic def test_record_existing_signal_path_performance(self): """Write the retained before-refactor database and machine-time evidence.""" output = _output_path() - samples = _positive_integer_from_environment(_SAMPLE_VARIABLE, _DEFAULT_SAMPLES) + samples = _positive_integer_from_environment(_SAMPLE_VARIABLE, _DEFAULT_SAMPLES, allow_zero=True) warmups = _positive_integer_from_environment(_WARMUP_VARIABLE, _DEFAULT_WARMUPS, allow_zero=True) self.assertTrue(supports_channelization(), "The baseline requires NetBox channelization support.") self.assertTrue(supports_vc_position_token(), "The baseline requires NetBox VC position token support.") @@ -1078,7 +1138,7 @@ def test_record_existing_signal_path_performance(self): "description": scenario.description, "layer": scenario.layer, **profiled, - "machine_time": self._time_scenario(scenario, samples, warmups), + "machine_time": self._time_scenario(scenario, samples, warmups) if samples else None, } ) diff --git a/netbox_interface_name_rules/tests/test_performance_compare.py b/netbox_interface_name_rules/tests/test_performance_compare.py index de04b7f..b8c289d 100644 --- a/netbox_interface_name_rules/tests/test_performance_compare.py +++ b/netbox_interface_name_rules/tests/test_performance_compare.py @@ -28,6 +28,46 @@ def _artifact(planner_settings, load=None): } +def _timed_artifact(machine_time): + """Return an artifact whose single scenario carries *machine_time*.""" + artifact = _artifact({"work_mem": "4MB"}) + artifact["scenarios"] = [ + { + "name": "module.direct_callback.plain_rename", + "layer": "direct_callback", + "database": {"totals": {"statement_calls": 31}}, + "machine_time": machine_time, + } + ] + return artifact + + +_MACHINE_TIME = {"wall": {"median_ms": 2.0, "p95_ms": 3.0}, "process_cpu": {"median_ms": 1.0}} + + +class TimeTableTest(unittest.TestCase): + """A comparison must not invent machine time that a run did not measure.""" + + def test_unmeasured_machine_time_is_reported_not_crashed(self): + rows = compare._time_table( + {"module.direct_callback.plain_rename": _timed_artifact(None)["scenarios"][0]}, + {"module.direct_callback.plain_rename": _timed_artifact(_MACHINE_TIME)["scenarios"][0]}, + ) + + self.assertEqual( + rows[-1], + "| `module.direct_callback.plain_rename` | machine time | not measured | not measured | not measured | n/a |", + ) + + def test_measured_machine_time_is_still_compared(self): + rows = compare._time_table( + {"module.direct_callback.plain_rename": _timed_artifact(_MACHINE_TIME)["scenarios"][0]}, + {"module.direct_callback.plain_rename": _timed_artifact(_MACHINE_TIME)["scenarios"][0]}, + ) + + self.assertIn("Wall median (ms)", "".join(rows)) + + class EnvironmentTableTest(unittest.TestCase): """Exercise the environment table the comparison writes.""" diff --git a/performance/compare.py b/performance/compare.py index 36169d4..06912fa 100644 --- a/performance/compare.py +++ b/performance/compare.py @@ -116,6 +116,9 @@ def _time_table(before, after): after_scenario = after.get(name) if after_scenario is None: continue + if before_scenario["machine_time"] is None or after_scenario["machine_time"] is None: + lines.append(f"| `{name}` | machine time | not measured | not measured | not measured | n/a |") + continue for section, key, label in _TIME_METRICS: old = before_scenario["machine_time"][section][key] new = after_scenario["machine_time"][section][key] From 569f7713e26a9184b1ba83663f2f0e37e423f8ed Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sat, 29 Aug 2026 09:02:48 +0200 Subject: [PATCH 46/74] perf: re-measure both sides with the reproducible runner The committed artifacts could not be compared. The runner did not exist at the before revision, so the two sides had been measured by different versions of it, and neither count reproduced. Both sides are re-measured here with the same runner, the same NetBox revision and the same database build, each count recorded twice and required to agree. The before side runs the pre-refactor plugin source with the current runner laid over it. The result is smaller than the artifacts previously claimed. Naming a module into an existing family costs 86 fewer statements, a third of the callback's work. Virtual-chassis reapply is down 1 and 15. A plain rename and reconciliation each cost 2 more: one savepoint pair and one locked re-read, which is what the family executor buys revalidation and per-family rollback with. The earlier "5% to 36%, -36% on virtual chassis" was measurement noise. Every scenario's complete_model_save delta equals its direct_callback delta, so NetBox's per-save bookkeeping is identical on both sides and every difference belongs to this plugin. Machine time is not measured. Both runs used SAMPLES=0 and the timing columns say so. --- performance/README.md | 60 +++-- performance/baselines/existing-feature.md | 34 +-- performance/baselines/family-package.md | 38 +-- .../comparisons/family-package-vs-existing.md | 233 ++++++++---------- 4 files changed, 178 insertions(+), 187 deletions(-) diff --git a/performance/README.md b/performance/README.md index 62af8b9..30cc6a2 100644 --- a/performance/README.md +++ b/performance/README.md @@ -49,28 +49,38 @@ an after run. It labels the artifact and titles its summary. ## Result of the interface-family comparison `comparisons/family-package-vs-existing.md` compares the pre-refactor baseline with the family -package on the same NetBox revision and the same host. - -Database work carries the verdict, because it is deterministic. The plugin's own committed callback -issues fewer or the same statements in every scenario: unchanged where no rule matches, and down by -5% to 36% everywhere else, with the largest reductions on virtual-chassis reapplication (-29% for -one module, -36% for eight). - -Two complete-model-save scenarios show more statements than the baseline. Most of the increase is -NetBox's own per-save bookkeeping for the object types and custom fields the test database holds, -which grew between the two runs: `core_objecttype`, `extras_customfield` and `extras_cachedvalue` -carry the whole net increase of 11 in `structural_creation`, where every other table nets to zero, -and 11 of the 17 in `no_matching_rule`. The remaining 6 there are 2 `RELEASE` and 2 `SAVEPOINT` -statements beside the new cached-value writes, and one extra read each of `dcim_interface` and -`dcim_module`. - -The control is `module.complete_model_save.no_matching_rule`, where this plugin returns before doing -anything and its callback issues the same 7 statements in both runs, yet the surrounding save costs -17 more. On `structural_creation` the plugin's own callback got cheaper, from 119 statements to 94. -Neither increase is work this refactor added. - -Machine time in that run is not evidence. The host was running unrelated workloads at a load average -between 17 and 44, and the same no-op scenario shows +72% wall time against identical SQL. The -virtual-chassis scenarios were still 32% to 35% faster despite the contention, which is consistent -with their statement reductions. Rerun both artifacts on an otherwise-idle host before quoting any -timing figure as evidence. +package. Both sides were measured with the same runner, against the same NetBox revision, on the +same host, and each recorded count reproduced twice before it was written. + +The refactor moves the committed callback's database work as follows: + +| Scenario | Before | After | Change | +| --- | ---: | ---: | ---: | +| `no_matching_rule` | 7 | 7 | 0 | +| `plain_rename` | 36 | 38 | +2 | +| `structural_creation` | 113 | 113 | 0 | +| `existing_family` | 254 | 168 | -86 | +| `reconciliation` | 255 | 257 | +2 | +| `vc.reapply_1` | 37 | 36 | -1 | +| `vc.reapply_8` | 254 | 239 | -15 | + +One scenario improves substantially: naming a module into a family that already exists costs 86 +fewer statements, a third of the callback's work. Virtual-chassis reapplication is slightly cheaper. +Two scenarios cost two statements more. + +Those two increases are this refactor's, not the environment's. The per-table breakdown gives the +same shape for each: one more `SAVEPOINT` and `RELEASE`, one more `dcim_interface` read, and one +fewer `dcim_moduletype` read. That is the locked family executor: it opens a savepoint per family +and re-reads the rows it locked before it writes them. The plugin buys stale-plan revalidation and +per-family rollback for two statements on a rename. + +Read the deltas at the `direct_callback` layer. Every scenario's `complete_model_save` delta equals +its `direct_callback` delta exactly, which says NetBox's own per-save bookkeeping costs the same on +both sides and every difference above belongs to this plugin. `no_matching_rule` is the control: the +plugin returns before doing anything and issues the same 7 statements either way. + +Machine time is not measured in these artifacts. Both runs used +`INTERFACE_FAMILY_PERFORMANCE_SAMPLES=0`, so every timing column reads `not measured` rather than +reporting a number taken under an unknown load. This host carries unrelated work at load 8 to 33. +Rerun both sides with samples on an otherwise-idle host to fill those columns in; each artifact +records the load span it ran under, so a reader can check rather than trust the prose. diff --git a/performance/baselines/existing-feature.md b/performance/baselines/existing-feature.md index eb49c8c..3fc919c 100644 --- a/performance/baselines/existing-feature.md +++ b/performance/baselines/existing-feature.md @@ -3,22 +3,26 @@ This file is generated by `netbox_interface_name_rules.tests.signal_performance`. Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits. +This run measured statement counts only. It took no machine-time samples, so every timing column reads `not measured` rather than reporting a number nobody should quote. + +Host load averaged 18.71 over the minute before the run and 28.44 over the minute it ended. Machine time is evidence only when both runs were taken under a comparable load. + | Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) | | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | -| `module.complete_model_save.no_matching_rule` | complete_model_save | 60 | 912.140 | 172 | 130.838 | 134.836 | 95.205 | -| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 12.440 | 12 | 16.839 | 22.193 | 13.427 | -| `module.complete_model_save.plain_rename` | complete_model_save | 94 | 1318.710 | 420 | 225.878 | 243.823 | 166.734 | -| `module.direct_callback.plain_rename` | direct_callback | 40 | 344.010 | 172 | 110.545 | 122.771 | 84.187 | -| `module.complete_model_save.structural_creation` | complete_model_save | 172 | 2478.220 | 752 | 356.120 | 375.380 | 263.614 | -| `module.direct_callback.structural_creation` | direct_callback | 119 | 1430.530 | 560 | 239.876 | 271.187 | 178.600 | -| `module.complete_model_save.existing_family` | complete_model_save | 333 | 4186.010 | 1720 | 763.761 | 780.531 | 572.303 | -| `module.direct_callback.existing_family` | direct_callback | 180 | 2001.680 | 769 | 469.170 | 512.322 | 368.633 | -| `module.complete_model_save.reconciliation` | complete_model_save | 432 | 6015.690 | 1914 | 1057.152 | 1122.912 | 800.107 | -| `module.direct_callback.reconciliation` | direct_callback | 279 | 3884.150 | 1164 | 793.478 | 850.496 | 604.292 | -| `vc.complete_model_save.reapply_1` | complete_model_save | 59 | 637.310 | 356 | 148.062 | 158.043 | 110.496 | -| `vc.direct_callback.reapply_1` | direct_callback | 41 | 496.020 | 205 | 126.861 | 134.683 | 94.074 | -| `vc.complete_model_save.reapply_8` | complete_model_save | 303 | 3625.180 | 1453 | 870.672 | 913.070 | 647.909 | -| `vc.direct_callback.reapply_8` | direct_callback | 286 | 3624.890 | 1427 | 822.679 | 852.623 | 619.159 | +| `module.complete_model_save.no_matching_rule` | complete_model_save | 77 | 1198.010 | 248 | not measured | not measured | not measured | +| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 8.440 | 8 | not measured | not measured | not measured | +| `module.complete_model_save.plain_rename` | complete_model_save | 106 | 1568.860 | 394 | not measured | not measured | not measured | +| `module.direct_callback.plain_rename` | direct_callback | 36 | 338.530 | 150 | not measured | not measured | not measured | +| `module.complete_model_save.structural_creation` | complete_model_save | 183 | 2607.500 | 775 | not measured | not measured | not measured | +| `module.direct_callback.structural_creation` | direct_callback | 113 | 1399.570 | 540 | not measured | not measured | not measured | +| `module.complete_model_save.existing_family` | complete_model_save | 436 | 6237.990 | 2011 | not measured | not measured | not measured | +| `module.direct_callback.existing_family` | direct_callback | 254 | 3254.310 | 1245 | not measured | not measured | not measured | +| `module.complete_model_save.reconciliation` | complete_model_save | 437 | 5739.470 | 2090 | not measured | not measured | not measured | +| `module.direct_callback.reconciliation` | direct_callback | 255 | 3303.650 | 1203 | not measured | not measured | not measured | +| `vc.complete_model_save.reapply_1` | complete_model_save | 62 | 598.530 | 299 | not measured | not measured | not measured | +| `vc.direct_callback.reapply_1` | direct_callback | 37 | 361.240 | 192 | not measured | not measured | not measured | +| `vc.complete_model_save.reapply_8` | complete_model_save | 279 | 2651.250 | 1214 | not measured | not measured | not measured | +| `vc.direct_callback.reapply_8` | direct_callback | 254 | 2413.900 | 990 | not measured | not measured | not measured | Plugin revision: `ccadd0bb5b2852ff81f2747769d61746254173e1` @@ -26,4 +30,4 @@ NetBox revision: `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` PostgreSQL: `18.3 (Debian 18.3-1.pgdg13+1)` -Samples per scenario: `15` +Samples per scenario: `0` diff --git a/performance/baselines/family-package.md b/performance/baselines/family-package.md index 2190a20..caea10f 100644 --- a/performance/baselines/family-package.md +++ b/performance/baselines/family-package.md @@ -3,27 +3,31 @@ This file is generated by `netbox_interface_name_rules.tests.signal_performance`. Machine-time values are evidence for a same-hardware before/after comparison. They are not CI limits. +This run measured statement counts only. It took no machine-time samples, so every timing column reads `not measured` rather than reporting a number nobody should quote. + +Host load averaged 32.95 over the minute before the run and 24.17 over the minute it ended. Machine time is evidence only when both runs were taken under a comparable load. + | Scenario | Layer | SQL calls | Planner cost | Shared hits | Wall median (ms) | Wall p95 (ms) | CPU median (ms) | | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | -| `module.complete_model_save.no_matching_rule` | complete_model_save | 77 | 1316.720 | 304 | 224.931 | 246.449 | 166.772 | -| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 12.440 | 12 | 20.586 | 22.829 | 16.504 | -| `module.complete_model_save.plain_rename` | complete_model_save | 86 | 1210.160 | 374 | 304.300 | 353.808 | 234.664 | -| `module.direct_callback.plain_rename` | direct_callback | 38 | 262.200 | 121 | 125.019 | 142.708 | 94.155 | -| `module.complete_model_save.structural_creation` | complete_model_save | 183 | 2278.820 | 790 | 421.892 | 483.334 | 318.683 | -| `module.direct_callback.structural_creation` | direct_callback | 94 | 757.000 | 369 | 229.884 | 249.306 | 175.313 | -| `module.complete_model_save.existing_family` | complete_model_save | 288 | 2802.850 | 1280 | 912.449 | 959.241 | 680.826 | -| `module.direct_callback.existing_family` | direct_callback | 168 | 1278.460 | 555 | 489.865 | 541.660 | 387.956 | -| `module.complete_model_save.reconciliation` | complete_model_save | 349 | 4091.820 | 1720 | 1290.722 | 1427.899 | 1007.947 | -| `module.direct_callback.reconciliation` | direct_callback | 257 | 2950.820 | 1021 | 538.176 | 651.427 | 428.691 | -| `vc.complete_model_save.reapply_1` | complete_model_save | 46 | 391.270 | 234 | 146.467 | 160.689 | 111.903 | -| `vc.direct_callback.reapply_1` | direct_callback | 29 | 229.320 | 133 | 99.000 | 105.570 | 75.957 | -| `vc.complete_model_save.reapply_8` | complete_model_save | 200 | 1739.100 | 978 | 588.211 | 630.194 | 468.481 | -| `vc.direct_callback.reapply_8` | direct_callback | 183 | 1423.260 | 857 | 536.223 | 583.242 | 424.543 | - -Plugin revision: `b82000b9d30cb6647b0eb35e6ea23e47a57b1687` +| `module.complete_model_save.no_matching_rule` | complete_model_save | 77 | 1198.010 | 268 | not measured | not measured | not measured | +| `module.direct_callback.no_matching_rule` | direct_callback | 7 | 8.440 | 8 | not measured | not measured | not measured | +| `module.complete_model_save.plain_rename` | complete_model_save | 108 | 1511.590 | 392 | not measured | not measured | not measured | +| `module.direct_callback.plain_rename` | direct_callback | 38 | 330.300 | 140 | not measured | not measured | not measured | +| `module.complete_model_save.structural_creation` | complete_model_save | 183 | 2601.310 | 778 | not measured | not measured | not measured | +| `module.direct_callback.structural_creation` | direct_callback | 113 | 1371.420 | 510 | not measured | not measured | not measured | +| `module.complete_model_save.existing_family` | complete_model_save | 350 | 4162.680 | 1563 | not measured | not measured | not measured | +| `module.direct_callback.existing_family` | direct_callback | 168 | 1612.160 | 564 | not measured | not measured | not measured | +| `module.complete_model_save.reconciliation` | complete_model_save | 439 | 5315.880 | 1759 | not measured | not measured | not measured | +| `module.direct_callback.reconciliation` | direct_callback | 257 | 3105.990 | 941 | not measured | not measured | not measured | +| `vc.complete_model_save.reapply_1` | complete_model_save | 61 | 540.000 | 268 | not measured | not measured | not measured | +| `vc.direct_callback.reapply_1` | direct_callback | 36 | 310.810 | 147 | not measured | not measured | not measured | +| `vc.complete_model_save.reapply_8` | complete_model_save | 264 | 2491.080 | 1028 | not measured | not measured | not measured | +| `vc.direct_callback.reapply_8` | direct_callback | 239 | 2137.500 | 783 | not measured | not measured | not measured | + +Plugin revision: `c440a2d3c9a1c497af5bacbf00c4a0fd3a3795ca` NetBox revision: `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` PostgreSQL: `18.3 (Debian 18.3-1.pgdg13+1)` -Samples per scenario: `15` +Samples per scenario: `0` diff --git a/performance/comparisons/family-package-vs-existing.md b/performance/comparisons/family-package-vs-existing.md index 8d18843..4951a65 100644 --- a/performance/comparisons/family-package-vs-existing.md +++ b/performance/comparisons/family-package-vs-existing.md @@ -6,142 +6,117 @@ Generated by `performance/compare.py` from the before and after artifacts of the | Field | Before | After | | --- | --- | --- | -| plugin_revision | `ccadd0bb5b2852ff81f2747769d61746254173e1` | `b82000b9d30cb6647b0eb35e6ea23e47a57b1687` | +| plugin_revision | `ccadd0bb5b2852ff81f2747769d61746254173e1` | `c440a2d3c9a1c497af5bacbf00c4a0fd3a3795ca` | | netbox_revision | `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` | `d7f79bd50162b2b8a8d07b52348d332bd9404f3c` | | netbox_version | `4.7.0-beta1` | `4.7.0-beta1` | | cpu_model | `Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz` | `Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz` | | operating_system_release | `6.12.96+deb13-amd64` | `6.12.96+deb13-amd64` | -| samples | `15` | `15` | -| warmups | `3` | `3` | +| samples | `0` | `0` | +| warmups | `0` | `0` | | postgresql | `18.3 (Debian 18.3-1.pgdg13+1)` | `18.3 (Debian 18.3-1.pgdg13+1)` | | planner settings | `identical` | `identical` | +| host load (1 min, start to end) | `18.71 to 28.44` | `32.95 to 24.17` | ## Database work | Scenario | Metric | Before | After | Change | Share | | --- | --- | ---: | ---: | ---: | ---: | -| `module.complete_model_save.no_matching_rule` | SQL calls | 60 | 77 | 17 | +28.3% | -| `module.complete_model_save.no_matching_rule` | Planner cost | 912.14 | 1316.72 | 404.58 | +44.4% | -| `module.complete_model_save.no_matching_rule` | Shared hits | 172 | 304 | 132 | +76.7% | -| `module.complete_model_save.no_matching_rule` | Shared reads | 31 | 0 | -31 | -100.0% | -| `module.complete_model_save.no_matching_rule` | WAL bytes | 2204 | 5273 | 3069 | +139.2% | +| `module.complete_model_save.no_matching_rule` | SQL calls | 77 | 77 | 0 | +0.0% | +| `module.complete_model_save.no_matching_rule` | Planner cost | 1198.01 | 1198.01 | 0 | +0.0% | +| `module.complete_model_save.no_matching_rule` | Shared hits | 248 | 268 | 20 | +8.1% | +| `module.complete_model_save.no_matching_rule` | Shared reads | 25 | 0 | -25 | -100.0% | +| `module.complete_model_save.no_matching_rule` | WAL bytes | 2843 | 2843 | 0 | +0.0% | | `module.direct_callback.no_matching_rule` | SQL calls | 7 | 7 | 0 | +0.0% | -| `module.direct_callback.no_matching_rule` | Planner cost | 12.44 | 12.44 | 0 | +0.0% | -| `module.direct_callback.no_matching_rule` | Shared hits | 12 | 12 | 0 | +0.0% | +| `module.direct_callback.no_matching_rule` | Planner cost | 8.44 | 8.44 | 0 | +0.0% | +| `module.direct_callback.no_matching_rule` | Shared hits | 8 | 8 | 0 | +0.0% | | `module.direct_callback.no_matching_rule` | Shared reads | 0 | 0 | 0 | n/a | | `module.direct_callback.no_matching_rule` | WAL bytes | 0 | 0 | 0 | n/a | -| `module.complete_model_save.plain_rename` | SQL calls | 94 | 86 | -8 | -8.5% | -| `module.complete_model_save.plain_rename` | Planner cost | 1318.71 | 1210.16 | -108.55 | -8.2% | -| `module.complete_model_save.plain_rename` | Shared hits | 420 | 374 | -46 | -11.0% | -| `module.complete_model_save.plain_rename` | Shared reads | 23 | 0 | -23 | -100.0% | -| `module.complete_model_save.plain_rename` | WAL bytes | 4134 | 5142 | 1008 | +24.4% | -| `module.direct_callback.plain_rename` | SQL calls | 40 | 38 | -2 | -5.0% | -| `module.direct_callback.plain_rename` | Planner cost | 344.01 | 262.20 | -81.81 | -23.8% | -| `module.direct_callback.plain_rename` | Shared hits | 172 | 121 | -51 | -29.7% | +| `module.complete_model_save.plain_rename` | SQL calls | 106 | 108 | 2 | +1.9% | +| `module.complete_model_save.plain_rename` | Planner cost | 1568.86 | 1511.59 | -57.27 | -3.7% | +| `module.complete_model_save.plain_rename` | Shared hits | 394 | 392 | -2 | -0.5% | +| `module.complete_model_save.plain_rename` | Shared reads | 29 | 0 | -29 | -100.0% | +| `module.complete_model_save.plain_rename` | WAL bytes | 4734 | 4842 | 108 | +2.3% | +| `module.direct_callback.plain_rename` | SQL calls | 36 | 38 | 2 | +5.6% | +| `module.direct_callback.plain_rename` | Planner cost | 338.53 | 330.30 | -8.23 | -2.4% | +| `module.direct_callback.plain_rename` | Shared hits | 150 | 140 | -10 | -6.7% | | `module.direct_callback.plain_rename` | Shared reads | 0 | 0 | 0 | n/a | -| `module.direct_callback.plain_rename` | WAL bytes | 1783 | 1999 | 216 | +12.1% | -| `module.complete_model_save.structural_creation` | SQL calls | 172 | 183 | 11 | +6.4% | -| `module.complete_model_save.structural_creation` | Planner cost | 2478.22 | 2278.82 | -199.40 | -8.0% | -| `module.complete_model_save.structural_creation` | Shared hits | 752 | 790 | 38 | +5.1% | -| `module.complete_model_save.structural_creation` | Shared reads | 13 | 0 | -13 | -100.0% | -| `module.complete_model_save.structural_creation` | WAL bytes | 11613 | 12820 | 1207 | +10.4% | -| `module.direct_callback.structural_creation` | SQL calls | 119 | 94 | -25 | -21.0% | -| `module.direct_callback.structural_creation` | Planner cost | 1430.53 | 757.00 | -673.53 | -47.1% | -| `module.direct_callback.structural_creation` | Shared hits | 560 | 369 | -191 | -34.1% | -| `module.direct_callback.structural_creation` | Shared reads | 1 | 0 | -1 | -100.0% | -| `module.direct_callback.structural_creation` | WAL bytes | 15235 | 8670 | -6565 | -43.1% | -| `module.complete_model_save.existing_family` | SQL calls | 333 | 288 | -45 | -13.5% | -| `module.complete_model_save.existing_family` | Planner cost | 4186.01 | 2802.85 | -1383.16 | -33.0% | -| `module.complete_model_save.existing_family` | Shared hits | 1720 | 1280 | -440 | -25.6% | -| `module.complete_model_save.existing_family` | Shared reads | 13 | 18 | 5 | +38.5% | -| `module.complete_model_save.existing_family` | WAL bytes | 23266 | 26508 | 3242 | +13.9% | -| `module.direct_callback.existing_family` | SQL calls | 180 | 168 | -12 | -6.7% | -| `module.direct_callback.existing_family` | Planner cost | 2001.68 | 1278.46 | -723.22 | -36.1% | -| `module.direct_callback.existing_family` | Shared hits | 769 | 555 | -214 | -27.8% | -| `module.direct_callback.existing_family` | Shared reads | 4 | 0 | -4 | -100.0% | -| `module.direct_callback.existing_family` | WAL bytes | 12651 | 10024 | -2627 | -20.8% | -| `module.complete_model_save.reconciliation` | SQL calls | 432 | 349 | -83 | -19.2% | -| `module.complete_model_save.reconciliation` | Planner cost | 6015.69 | 4091.82 | -1923.87 | -32.0% | -| `module.complete_model_save.reconciliation` | Shared hits | 1914 | 1720 | -194 | -10.1% | -| `module.complete_model_save.reconciliation` | Shared reads | 14 | 0 | -14 | -100.0% | -| `module.complete_model_save.reconciliation` | WAL bytes | 33638 | 36448 | 2810 | +8.4% | -| `module.direct_callback.reconciliation` | SQL calls | 279 | 257 | -22 | -7.9% | -| `module.direct_callback.reconciliation` | Planner cost | 3884.15 | 2950.82 | -933.33 | -24.0% | -| `module.direct_callback.reconciliation` | Shared hits | 1164 | 1021 | -143 | -12.3% | -| `module.direct_callback.reconciliation` | Shared reads | 0 | 0 | 0 | n/a | -| `module.direct_callback.reconciliation` | WAL bytes | 18941 | 17804 | -1137 | -6.0% | -| `vc.complete_model_save.reapply_1` | SQL calls | 59 | 46 | -13 | -22.0% | -| `vc.complete_model_save.reapply_1` | Planner cost | 637.31 | 391.27 | -246.04 | -38.6% | -| `vc.complete_model_save.reapply_1` | Shared hits | 356 | 234 | -122 | -34.3% | -| `vc.complete_model_save.reapply_1` | Shared reads | 9 | 0 | -9 | -100.0% | -| `vc.complete_model_save.reapply_1` | WAL bytes | 4504 | 4736 | 232 | +5.2% | -| `vc.direct_callback.reapply_1` | SQL calls | 41 | 29 | -12 | -29.3% | -| `vc.direct_callback.reapply_1` | Planner cost | 496.02 | 229.32 | -266.70 | -53.8% | -| `vc.direct_callback.reapply_1` | Shared hits | 205 | 133 | -72 | -35.1% | +| `module.direct_callback.plain_rename` | WAL bytes | 1891 | 1999 | 108 | +5.7% | +| `module.complete_model_save.structural_creation` | SQL calls | 183 | 183 | 0 | +0.0% | +| `module.complete_model_save.structural_creation` | Planner cost | 2607.50 | 2601.31 | -6.19 | -0.2% | +| `module.complete_model_save.structural_creation` | Shared hits | 775 | 778 | 3 | +0.4% | +| `module.complete_model_save.structural_creation` | Shared reads | 8 | 0 | -8 | -100.0% | +| `module.complete_model_save.structural_creation` | WAL bytes | 12684 | 12866 | 182 | +1.4% | +| `module.direct_callback.structural_creation` | SQL calls | 113 | 113 | 0 | +0.0% | +| `module.direct_callback.structural_creation` | Planner cost | 1399.57 | 1371.42 | -28.15 | -2.0% | +| `module.direct_callback.structural_creation` | Shared hits | 540 | 510 | -30 | -5.6% | +| `module.direct_callback.structural_creation` | Shared reads | 0 | 0 | 0 | n/a | +| `module.direct_callback.structural_creation` | WAL bytes | 9841 | 9841 | 0 | +0.0% | +| `module.complete_model_save.existing_family` | SQL calls | 436 | 350 | -86 | -19.7% | +| `module.complete_model_save.existing_family` | Planner cost | 6237.99 | 4162.68 | -2075.31 | -33.3% | +| `module.complete_model_save.existing_family` | Shared hits | 2011 | 1563 | -448 | -22.3% | +| `module.complete_model_save.existing_family` | Shared reads | 10 | 0 | -10 | -100.0% | +| `module.complete_model_save.existing_family` | WAL bytes | 33352 | 30107 | -3245 | -9.7% | +| `module.direct_callback.existing_family` | SQL calls | 254 | 168 | -86 | -33.9% | +| `module.direct_callback.existing_family` | Planner cost | 3254.31 | 1612.16 | -1642.15 | -50.5% | +| `module.direct_callback.existing_family` | Shared hits | 1245 | 564 | -681 | -54.7% | +| `module.direct_callback.existing_family` | Shared reads | 3 | 0 | -3 | -100.0% | +| `module.direct_callback.existing_family` | WAL bytes | 11532 | 10204 | -1328 | -11.5% | +| `module.complete_model_save.reconciliation` | SQL calls | 437 | 439 | 2 | +0.5% | +| `module.complete_model_save.reconciliation` | Planner cost | 5739.47 | 5315.88 | -423.59 | -7.4% | +| `module.complete_model_save.reconciliation` | Shared hits | 2090 | 1759 | -331 | -15.8% | +| `module.complete_model_save.reconciliation` | Shared reads | 10 | 0 | -10 | -100.0% | +| `module.complete_model_save.reconciliation` | WAL bytes | 34055 | 34189 | 134 | +0.4% | +| `module.direct_callback.reconciliation` | SQL calls | 255 | 257 | 2 | +0.8% | +| `module.direct_callback.reconciliation` | Planner cost | 3303.65 | 3105.99 | -197.66 | -6.0% | +| `module.direct_callback.reconciliation` | Shared hits | 1203 | 941 | -262 | -21.8% | +| `module.direct_callback.reconciliation` | Shared reads | 5 | 0 | -5 | -100.0% | +| `module.direct_callback.reconciliation` | WAL bytes | 26227 | 18202 | -8025 | -30.6% | +| `vc.complete_model_save.reapply_1` | SQL calls | 62 | 61 | -1 | -1.6% | +| `vc.complete_model_save.reapply_1` | Planner cost | 598.53 | 540.00 | -58.53 | -9.8% | +| `vc.complete_model_save.reapply_1` | Shared hits | 299 | 268 | -31 | -10.4% | +| `vc.complete_model_save.reapply_1` | Shared reads | 24 | 0 | -24 | -100.0% | +| `vc.complete_model_save.reapply_1` | WAL bytes | 4793 | 4827 | 34 | +0.7% | +| `vc.direct_callback.reapply_1` | SQL calls | 37 | 36 | -1 | -2.7% | +| `vc.direct_callback.reapply_1` | Planner cost | 361.24 | 310.81 | -50.43 | -14.0% | +| `vc.direct_callback.reapply_1` | Shared hits | 192 | 147 | -45 | -23.4% | | `vc.direct_callback.reapply_1` | Shared reads | 0 | 0 | 0 | n/a | -| `vc.direct_callback.reapply_1` | WAL bytes | 1749 | 2086 | 337 | +19.3% | -| `vc.complete_model_save.reapply_8` | SQL calls | 303 | 200 | -103 | -34.0% | -| `vc.complete_model_save.reapply_8` | Planner cost | 3625.18 | 1739.10 | -1886.08 | -52.0% | -| `vc.complete_model_save.reapply_8` | Shared hits | 1453 | 978 | -475 | -32.7% | -| `vc.complete_model_save.reapply_8` | Shared reads | 2 | 0 | -2 | -100.0% | -| `vc.complete_model_save.reapply_8` | WAL bytes | 16354 | 19365 | 3011 | +18.4% | -| `vc.direct_callback.reapply_8` | SQL calls | 286 | 183 | -103 | -36.0% | -| `vc.direct_callback.reapply_8` | Planner cost | 3624.89 | 1423.26 | -2201.63 | -60.7% | -| `vc.direct_callback.reapply_8` | Shared hits | 1427 | 857 | -570 | -39.9% | -| `vc.direct_callback.reapply_8` | Shared reads | 4 | 0 | -4 | -100.0% | -| `vc.direct_callback.reapply_8` | WAL bytes | 13992 | 16787 | 2795 | +20.0% | +| `vc.direct_callback.reapply_1` | WAL bytes | 1857 | 1965 | 108 | +5.8% | +| `vc.complete_model_save.reapply_8` | SQL calls | 279 | 264 | -15 | -5.4% | +| `vc.complete_model_save.reapply_8` | Planner cost | 2651.25 | 2491.08 | -160.17 | -6.0% | +| `vc.complete_model_save.reapply_8` | Shared hits | 1214 | 1028 | -186 | -15.3% | +| `vc.complete_model_save.reapply_8` | Shared reads | 34 | 0 | -34 | -100.0% | +| `vc.complete_model_save.reapply_8` | WAL bytes | 17718 | 18700 | 982 | +5.5% | +| `vc.direct_callback.reapply_8` | SQL calls | 254 | 239 | -15 | -5.9% | +| `vc.direct_callback.reapply_8` | Planner cost | 2413.90 | 2137.50 | -276.40 | -11.5% | +| `vc.direct_callback.reapply_8` | Shared hits | 990 | 783 | -207 | -20.9% | +| `vc.direct_callback.reapply_8` | Shared reads | 2 | 0 | -2 | -100.0% | +| `vc.direct_callback.reapply_8` | WAL bytes | 15076 | 15720 | 644 | +4.3% | ## Machine time | Scenario | Metric | Before | After | Change | Share | | --- | --- | ---: | ---: | ---: | ---: | -| `module.complete_model_save.no_matching_rule` | Wall median (ms) | 130.84 | 224.93 | 94.09 | +71.9% | -| `module.complete_model_save.no_matching_rule` | Wall p95 (ms) | 134.84 | 246.45 | 111.61 | +82.8% | -| `module.complete_model_save.no_matching_rule` | CPU median (ms) | 95.20 | 166.77 | 71.57 | +75.2% | -| `module.direct_callback.no_matching_rule` | Wall median (ms) | 16.84 | 20.59 | 3.75 | +22.3% | -| `module.direct_callback.no_matching_rule` | Wall p95 (ms) | 22.19 | 22.83 | 0.64 | +2.9% | -| `module.direct_callback.no_matching_rule` | CPU median (ms) | 13.43 | 16.50 | 3.08 | +22.9% | -| `module.complete_model_save.plain_rename` | Wall median (ms) | 225.88 | 304.30 | 78.42 | +34.7% | -| `module.complete_model_save.plain_rename` | Wall p95 (ms) | 243.82 | 353.81 | 109.98 | +45.1% | -| `module.complete_model_save.plain_rename` | CPU median (ms) | 166.73 | 234.66 | 67.93 | +40.7% | -| `module.direct_callback.plain_rename` | Wall median (ms) | 110.54 | 125.02 | 14.47 | +13.1% | -| `module.direct_callback.plain_rename` | Wall p95 (ms) | 122.77 | 142.71 | 19.94 | +16.2% | -| `module.direct_callback.plain_rename` | CPU median (ms) | 84.19 | 94.15 | 9.97 | +11.8% | -| `module.complete_model_save.structural_creation` | Wall median (ms) | 356.12 | 421.89 | 65.77 | +18.5% | -| `module.complete_model_save.structural_creation` | Wall p95 (ms) | 375.38 | 483.33 | 107.95 | +28.8% | -| `module.complete_model_save.structural_creation` | CPU median (ms) | 263.61 | 318.68 | 55.07 | +20.9% | -| `module.direct_callback.structural_creation` | Wall median (ms) | 239.88 | 229.88 | -9.99 | -4.2% | -| `module.direct_callback.structural_creation` | Wall p95 (ms) | 271.19 | 249.31 | -21.88 | -8.1% | -| `module.direct_callback.structural_creation` | CPU median (ms) | 178.60 | 175.31 | -3.29 | -1.8% | -| `module.complete_model_save.existing_family` | Wall median (ms) | 763.76 | 912.45 | 148.69 | +19.5% | -| `module.complete_model_save.existing_family` | Wall p95 (ms) | 780.53 | 959.24 | 178.71 | +22.9% | -| `module.complete_model_save.existing_family` | CPU median (ms) | 572.30 | 680.83 | 108.52 | +19.0% | -| `module.direct_callback.existing_family` | Wall median (ms) | 469.17 | 489.86 | 20.70 | +4.4% | -| `module.direct_callback.existing_family` | Wall p95 (ms) | 512.32 | 541.66 | 29.34 | +5.7% | -| `module.direct_callback.existing_family` | CPU median (ms) | 368.63 | 387.96 | 19.32 | +5.2% | -| `module.complete_model_save.reconciliation` | Wall median (ms) | 1057.15 | 1290.72 | 233.57 | +22.1% | -| `module.complete_model_save.reconciliation` | Wall p95 (ms) | 1122.91 | 1427.90 | 304.99 | +27.2% | -| `module.complete_model_save.reconciliation` | CPU median (ms) | 800.11 | 1007.95 | 207.84 | +26.0% | -| `module.direct_callback.reconciliation` | Wall median (ms) | 793.48 | 538.18 | -255.30 | -32.2% | -| `module.direct_callback.reconciliation` | Wall p95 (ms) | 850.50 | 651.43 | -199.07 | -23.4% | -| `module.direct_callback.reconciliation` | CPU median (ms) | 604.29 | 428.69 | -175.60 | -29.1% | -| `vc.complete_model_save.reapply_1` | Wall median (ms) | 148.06 | 146.47 | -1.59 | -1.1% | -| `vc.complete_model_save.reapply_1` | Wall p95 (ms) | 158.04 | 160.69 | 2.65 | +1.7% | -| `vc.complete_model_save.reapply_1` | CPU median (ms) | 110.50 | 111.90 | 1.41 | +1.3% | -| `vc.direct_callback.reapply_1` | Wall median (ms) | 126.86 | 99.00 | -27.86 | -22.0% | -| `vc.direct_callback.reapply_1` | Wall p95 (ms) | 134.68 | 105.57 | -29.11 | -21.6% | -| `vc.direct_callback.reapply_1` | CPU median (ms) | 94.07 | 75.96 | -18.12 | -19.3% | -| `vc.complete_model_save.reapply_8` | Wall median (ms) | 870.67 | 588.21 | -282.46 | -32.4% | -| `vc.complete_model_save.reapply_8` | Wall p95 (ms) | 913.07 | 630.19 | -282.88 | -31.0% | -| `vc.complete_model_save.reapply_8` | CPU median (ms) | 647.91 | 468.48 | -179.43 | -27.7% | -| `vc.direct_callback.reapply_8` | Wall median (ms) | 822.68 | 536.22 | -286.46 | -34.8% | -| `vc.direct_callback.reapply_8` | Wall p95 (ms) | 852.62 | 583.24 | -269.38 | -31.6% | -| `vc.direct_callback.reapply_8` | CPU median (ms) | 619.16 | 424.54 | -194.62 | -31.4% | +| `module.complete_model_save.no_matching_rule` | machine time | not measured | not measured | not measured | n/a | +| `module.direct_callback.no_matching_rule` | machine time | not measured | not measured | not measured | n/a | +| `module.complete_model_save.plain_rename` | machine time | not measured | not measured | not measured | n/a | +| `module.direct_callback.plain_rename` | machine time | not measured | not measured | not measured | n/a | +| `module.complete_model_save.structural_creation` | machine time | not measured | not measured | not measured | n/a | +| `module.direct_callback.structural_creation` | machine time | not measured | not measured | not measured | n/a | +| `module.complete_model_save.existing_family` | machine time | not measured | not measured | not measured | n/a | +| `module.direct_callback.existing_family` | machine time | not measured | not measured | not measured | n/a | +| `module.complete_model_save.reconciliation` | machine time | not measured | not measured | not measured | n/a | +| `module.direct_callback.reconciliation` | machine time | not measured | not measured | not measured | n/a | +| `vc.complete_model_save.reapply_1` | machine time | not measured | not measured | not measured | n/a | +| `vc.direct_callback.reapply_1` | machine time | not measured | not measured | not measured | n/a | +| `vc.complete_model_save.reapply_8` | machine time | not measured | not measured | not measured | n/a | +| `vc.direct_callback.reapply_8` | machine time | not measured | not measured | not measured | n/a | ## Statement-count regressions -- `module.complete_model_save.no_matching_rule` SQL calls: 60 to 77 -- `module.complete_model_save.structural_creation` SQL calls: 172 to 183 +- `module.complete_model_save.plain_rename` SQL calls: 106 to 108 +- `module.direct_callback.plain_rename` SQL calls: 36 to 38 +- `module.complete_model_save.reconciliation` SQL calls: 437 to 439 +- `module.direct_callback.reconciliation` SQL calls: 255 to 257 ### Where those statements come from @@ -149,21 +124,19 @@ Each raised scenario is broken down by the table its statements touch, so the wo | Scenario | Table | Before | After | Change | | --- | --- | ---: | ---: | ---: | -| `module.complete_model_save.no_matching_rule` | `RELEASE` | 0 | 2 | +2 | -| `module.complete_model_save.no_matching_rule` | `SAVEPOINT` | 0 | 2 | +2 | -| `module.complete_model_save.no_matching_rule` | `core_objecttype` | 13 | 19 | +6 | -| `module.complete_model_save.no_matching_rule` | `dcim_interface` | 2 | 3 | +1 | -| `module.complete_model_save.no_matching_rule` | `dcim_module` | 2 | 3 | +1 | -| `module.complete_model_save.no_matching_rule` | `extras_cachedvalue` | 0 | 3 | +3 | -| `module.complete_model_save.no_matching_rule` | `extras_customfield` | 11 | 13 | +2 | -| `module.complete_model_save.structural_creation` | `RELEASE` | 4 | 3 | -1 | -| `module.complete_model_save.structural_creation` | `SAVEPOINT` | 4 | 3 | -1 | -| `module.complete_model_save.structural_creation` | `core_objecttype` | 40 | 46 | +6 | -| `module.complete_model_save.structural_creation` | `dcim_device` | 12 | 11 | -1 | -| `module.complete_model_save.structural_creation` | `dcim_interface` | 34 | 37 | +3 | -| `module.complete_model_save.structural_creation` | `dcim_interfacetemplate` | 5 | 6 | +1 | -| `module.complete_model_save.structural_creation` | `dcim_module` | 8 | 9 | +1 | -| `module.complete_model_save.structural_creation` | `dcim_moduletype` | 3 | 2 | -1 | -| `module.complete_model_save.structural_creation` | `dcim_site` | 3 | 2 | -1 | -| `module.complete_model_save.structural_creation` | `extras_cachedvalue` | 2 | 5 | +3 | -| `module.complete_model_save.structural_creation` | `extras_customfield` | 26 | 28 | +2 | +| `module.complete_model_save.plain_rename` | `RELEASE` | 3 | 4 | +1 | +| `module.complete_model_save.plain_rename` | `SAVEPOINT` | 3 | 4 | +1 | +| `module.complete_model_save.plain_rename` | `dcim_interface` | 8 | 9 | +1 | +| `module.complete_model_save.plain_rename` | `dcim_moduletype` | 3 | 2 | -1 | +| `module.direct_callback.plain_rename` | `RELEASE` | 1 | 2 | +1 | +| `module.direct_callback.plain_rename` | `SAVEPOINT` | 1 | 2 | +1 | +| `module.direct_callback.plain_rename` | `dcim_interface` | 5 | 6 | +1 | +| `module.direct_callback.plain_rename` | `dcim_moduletype` | 2 | 1 | -1 | +| `module.complete_model_save.reconciliation` | `RELEASE` | 19 | 20 | +1 | +| `module.complete_model_save.reconciliation` | `SAVEPOINT` | 19 | 20 | +1 | +| `module.complete_model_save.reconciliation` | `dcim_interface` | 71 | 72 | +1 | +| `module.complete_model_save.reconciliation` | `dcim_moduletype` | 3 | 2 | -1 | +| `module.direct_callback.reconciliation` | `RELEASE` | 17 | 18 | +1 | +| `module.direct_callback.reconciliation` | `SAVEPOINT` | 17 | 18 | +1 | +| `module.direct_callback.reconciliation` | `dcim_interface` | 40 | 41 | +1 | +| `module.direct_callback.reconciliation` | `dcim_moduletype` | 2 | 1 | -1 | From 16504039255f0c30aa65e5fc4f916d1bad797d92 Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sat, 29 Aug 2026 09:21:57 +0200 Subject: [PATCH 47/74] docs: report the database work behind the raised statement counts The narrative reported the two raised scenarios as a cost without saying what they cost. Planner cost and buffer hits fall in every scenario, including those two: plain rename is -2.4% planner cost and -6.7% shared hits for its two extra statements, and reconciliation is -6.0% and -21.8%. Shared reads reach zero everywhere. The two statements are the per-family savepoint pair and the locked revalidation read. They replace one read that joined dcim_device and ordered by a collated name, which is why two reads cost less planner work than the one they replaced. --- performance/README.md | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/performance/README.md b/performance/README.md index 30cc6a2..64b7d38 100644 --- a/performance/README.md +++ b/performance/README.md @@ -68,11 +68,28 @@ One scenario improves substantially: naming a module into a family that already fewer statements, a third of the callback's work. Virtual-chassis reapplication is slightly cheaper. Two scenarios cost two statements more. -Those two increases are this refactor's, not the environment's. The per-table breakdown gives the -same shape for each: one more `SAVEPOINT` and `RELEASE`, one more `dcim_interface` read, and one -fewer `dcim_moduletype` read. That is the locked family executor: it opens a savepoint per family -and re-reads the rows it locked before it writes them. The plugin buys stale-plan revalidation and -per-family rollback for two statements on a rename. +Count the statements, but read the work. Planner cost and buffer hits fall in **every** scenario, +including the two whose statement count rose: + +| Scenario | SQL calls | Planner cost | Shared hits | +| --- | ---: | ---: | ---: | +| `plain_rename` | +5.6% | -2.4% | -6.7% | +| `reconciliation` | +0.8% | -6.0% | -21.8% | +| `existing_family` | -33.9% | -50.5% | -54.7% | +| `vc.reapply_8` | -5.9% | -11.5% | -20.9% | + +Shared reads reach zero everywhere, so no scenario goes to disk. + +The two extra statements are one `SAVEPOINT` and `RELEASE` pair, from the transaction the executor +opens per family, plus one `dcim_interface` read: the `... WHERE id IN (...) FOR UPDATE` that locks +and revalidates the planned rows. They replace a single read that joined `dcim_device` and ordered +by a collated name, which is why the two newer reads together cost less planner work than the one +they replaced. The plugin buys stale-plan revalidation and per-family rollback for two round trips +and 108 bytes of WAL on a rename. + +That revalidation is the part to keep. This callback runs after commit, so another actor, including +another plugin, can rename an interface between the moment a family is planned and the moment it is +written. The locked re-read is what detects that. Read the deltas at the `direct_callback` layer. Every scenario's `complete_model_save` delta equals its `direct_callback` delta exactly, which says NetBox's own per-save bookkeeping costs the same on From 632c1da97d9c990d206c83266548ad638a16786b Mon Sep 17 00:00:00 2001 From: Marcin Zieba Date: Sun, 30 Aug 2026 09:41:35 +0200 Subject: [PATCH 48/74] fix: harden family planning and performance evidence --- ...04-use-immutable-family-plan-boundaries.md | 2 +- .../family/prospective.py | 1 + netbox_interface_name_rules/models.py | 33 ++++++++++- netbox_interface_name_rules/naming.py | 47 ++++++++++------ .../tests/signal_performance.py | 16 +++++- .../tests/test_engine.py | 10 ++-- .../tests/test_engine_advanced.py | 17 +++--- .../tests/test_performance_compare.py | 8 ++- .../tests/test_prospective_families.py | 17 ++++++ .../tests/test_regex.py | 1 + performance/README.md | 15 +++-- performance/baselines/existing-feature.md | 2 +- performance/baselines/family-package.md | 2 +- performance/compare.py | 20 ++++--- .../comparisons/family-package-vs-existing.md | 56 ++++++++++++++----- 15 files changed, 181 insertions(+), 66 deletions(-) diff --git a/docs/adr/0004-use-immutable-family-plan-boundaries.md b/docs/adr/0004-use-immutable-family-plan-boundaries.md index d85006b..0419804 100644 --- a/docs/adr/0004-use-immutable-family-plan-boundaries.md +++ b/docs/adr/0004-use-immutable-family-plan-boundaries.md @@ -4,4 +4,4 @@ status: accepted # Use immutable family-plan boundaries -The interface-family module exposes immutable installed and prospective plan sets. Each set contains exactly one plan per family. The installed adapter owns bulk ORM loading, family discovery, and row snapshots. The prospective adapter owns rowless template inputs. Callers provide semantic operation roots instead of querysets or discovered members. Only installed plans can execute, and execution returns explicit family and member outcomes. Existing engine entry points remain thin adapters to this boundary. +The interface-family module exposes immutable installed and prospective plan sets. Each set contains exactly one plan per family. The installed adapter owns bulk ORM loading, family discovery, and row snapshots. The prospective adapter owns rowless template inputs. Callers provide semantic operation roots instead of querysets or discovered members. Only plans that carry live row snapshots can execute, and execution returns explicit family and member outcomes. Existing engine entry points remain thin adapters to this boundary. diff --git a/netbox_interface_name_rules/family/prospective.py b/netbox_interface_name_rules/family/prospective.py index 3ecdd64..6172fe1 100644 --- a/netbox_interface_name_rules/family/prospective.py +++ b/netbox_interface_name_rules/family/prospective.py @@ -43,6 +43,7 @@ class ProspectiveInterface: def describe_interfaces(interfaces) -> tuple[ProspectiveInterface, ...]: """Describe live interface rows for prospective planning.""" + interfaces = tuple(interfaces) names_by_pk = {interface.pk: interface.name for interface in interfaces} return tuple( ProspectiveInterface( diff --git a/netbox_interface_name_rules/models.py b/netbox_interface_name_rules/models.py index ae741da..0f2f716 100644 --- a/netbox_interface_name_rules/models.py +++ b/netbox_interface_name_rules/models.py @@ -77,10 +77,41 @@ def _parsed_subpatterns(argument): yield from _parsed_subpatterns(item) +def _leading_literals(node): + """Return known literal first characters and whether *node* can be empty.""" + for opcode, argument in node: + if opcode is _re_constants.AT: + continue + if opcode is _re_constants.LITERAL: + return frozenset({argument}), False + if opcode is _re_constants.IN: + literals = frozenset(value for item_opcode, value in argument if item_opcode is _re_constants.LITERAL) + if len(literals) != len(argument): + return None, False + return literals, False + if opcode is _re_constants.SUBPATTERN: + return _leading_literals(argument[-1]) + return None, False + return frozenset(), True + + +def _branch_matches_ambiguously(branches): + """Return True unless every alternative starts with a distinct literal.""" + seen = set() + for branch in branches: + literals, empty = _leading_literals(branch) + if literals is None or empty or seen.intersection(literals): + return True + seen.update(literals) + return False + + def _matches_ambiguously(node): """Return True when *node* can match one string in more than one way.""" for opcode, argument in node: - if opcode in _BACKTRACKING_REPEATS or opcode is _re_constants.BRANCH: + if opcode in _BACKTRACKING_REPEATS: + return True + if opcode is _re_constants.BRANCH and _branch_matches_ambiguously(argument[1]): return True if any(_matches_ambiguously(child) for child in _parsed_subpatterns(argument)): return True diff --git a/netbox_interface_name_rules/naming.py b/netbox_interface_name_rules/naming.py index b5e38df..5471d37 100644 --- a/netbox_interface_name_rules/naming.py +++ b/netbox_interface_name_rules/naming.py @@ -3,8 +3,36 @@ """Build naming variables and evaluate interface-name templates.""" import ast +import operator import re +_BINARY_OPERATORS = { + ast.Add: operator.add, + ast.Sub: operator.sub, + ast.Mult: operator.mul, + ast.FloorDiv: operator.floordiv, +} +_UNARY_OPERATORS = { + ast.UAdd: operator.pos, + ast.USub: operator.neg, +} + + +def _evaluate_arithmetic(node): + """Evaluate one validated integer arithmetic syntax tree without executing code.""" + if isinstance(node, ast.Expression): + return _evaluate_arithmetic(node.body) + if isinstance(node, ast.Constant) and type(node.value) is int: + return node.value + if isinstance(node, ast.BinOp) and type(node.op) in _BINARY_OPERATORS: + return _BINARY_OPERATORS[type(node.op)]( + _evaluate_arithmetic(node.left), + _evaluate_arithmetic(node.right), + ) + if isinstance(node, ast.UnaryOp) and type(node.op) in _UNARY_OPERATORS: + return _UNARY_OPERATORS[type(node.op)](_evaluate_arithmetic(node.operand)) + raise ValueError(f"Unsafe AST node in expression: {type(node).__name__}") + def _extract_trailing_digits(value: str) -> str: r"""Return the trailing digit run of *value* without regex backtracking. @@ -109,24 +137,7 @@ def _eval_expr(match): raise ValueError(f"Unsafe expression in name template: {expr}") try: node = ast.parse(expr, mode="eval") - for child in ast.walk(node): - if not isinstance( - child, - ( - ast.Expression, - ast.BinOp, - ast.UnaryOp, - ast.Constant, - ast.Add, - ast.Sub, - ast.Mult, - ast.FloorDiv, - ast.USub, - ast.UAdd, - ), - ): - raise ValueError(f"Unsafe AST node in expression: {type(child).__name__}") - return str(int(eval(compile(node, "